Quantcast
Viewing all articles
Browse latest Browse all 2722

postgresDB initdbコマンド実行時「bash: initdb: コマンドが見つかりませんでした...」と出力される

環境 Oracle Linux7.9 Postgres 11.15  事象 [postgres@OL79 ~]$ initdb -D /home/postgres/data --no-locale bash: initdb: コマンドが見つかりませんでした... 英語なら"command not found"と出力される事象。 対策 インストールユーザ(postgresユーザ)で下記コマンドを実行してパスを通す export PATH=/usr/pgsql-11/bin:$PATH または上記内容をpostgresユーザの.bash_profileに追記し、sourceコマンドで反映させる [postgres@OL79 ~]$ vi ./.bash_profile [postgres@OL79 ~]$ source ./.bash_profile 参考 ・Linux入門 ~「パスを通す」とは~ https://qiita.com/Naggi-Goishi/items/2c49ea50602ea80bf015

Viewing all articles
Browse latest Browse all 2722

Trending Articles