
皆様いつもお世話になっております。
利用環境は以下の通りです
CentOS Linux release 7.6.1810 (Core)
psql (PostgreSQL) 9.6.13
PostgreSQLはこちらの方法でインストールしました。
googleでも検索して分からなかったのですが、pg_ctlコマンドが見つかりませんと表示されてしまいます。
どうしたらpg_ctlコマンドを使えるように出来るでしょうか?
アドバイスとご教授のほどよろしくお願いします。
気になる質問をクリップする
クリップした質問は、後からいつでもMYページで確認できます。
またクリップした質問に回答があった際、通知やメールを受け取ることができます。
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。


回答2件
0
ベストアンサー
https://download.postgresql.org/pub/repos/yum/9.6/ のパッケージを使ったのであれば、/usr/pgsql-9.6/bin/pg_ctl
に存在しないでしょうか?
/usr/pgsql-9.6/bin/pg_ctl
がありましたら、 /usr/pgsql-9.6/bin
を PATH に追加してください。
(おまけ)
yum provides コマンド
で、パッケージ内のコマンドを検索できるので、うちのテスト環境で、パッケージ内の pg_ctl
を検索した結果をみて、上記を推測。
# yum provides */pg_ctl Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * base: ftp.iij.ad.jp * epel: mirrors.aliyun.com * epel-debuginfo: mirrors.aliyun.com * epel-source: mirrors.aliyun.com * extras: ftp.iij.ad.jp * ius: hkg.mirror.rackspace.com * remi-php72: ftp.riken.jp * remi-safe: ftp.riken.jp * updates: ftp.iij.ad.jp postgresql-server-9.2.24-1.el7_5.x86_64 : The programs needed to create and run a PostgreSQL server Repo : base Matched from: Filename : /usr/bin/pg_ctl postgresql-upgrade-9.2.24-1.el7_5.x86_64 : Support for upgrading from the previous major release of : PostgreSQL Repo : base Matched from: Filename : /usr/lib64/pgsql/postgresql-8.4/bin/pg_ctl postgresql92-postgresql-server-9.2.18-1.el7.x86_64 : The programs needed to create and run a PostgreSQL : server Repo : centos-sclo-rh Matched from: Filename : /opt/rh/postgresql92/root/usr/bin/pg_ctl postgresql92-postgresql-upgrade-9.2.18-1.el7.x86_64 : Support for upgrading from the previous major release : of PostgreSQL Repo : centos-sclo-rh Matched from: Filename : /opt/rh/postgresql92/root/usr/lib64/pgsql/postgresql-8.4/bin/pg_ctl postgresql96-server-9.6.11-1PGDG.rhel7.x86_64 : The programs needed to create and run a PostgreSQL server Repo : pgdg96 Matched from: Filename : /usr/pgsql-9.6/bin/pg_ctl postgresql96-server-9.6.12-1PGDG.rhel7.x86_64 : The programs needed to create and run a PostgreSQL server Repo : pgdg96 Matched from: Filename : /usr/pgsql-9.6/bin/pg_ctl postgresql96-server-9.6.13-1PGDG.rhel7.x86_64 : The programs needed to create and run a PostgreSQL server Repo : pgdg96 Matched from: Filename : /usr/pgsql-9.6/bin/pg_ctl rh-postgresql10-postgresql-server-10.3-2.el7.x86_64 : The programs needed to create and run a PostgreSQL : server Repo : centos-sclo-rh Matched from: Filename : /opt/rh/rh-postgresql10/root/usr/bin/pg_ctl Matched from: Filename : /opt/rh/rh-postgresql96/root/usr/bin/pg_ctl rh-postgresql96-postgresql-server-9.6.10-1.el7.x86_64 : The programs needed to create and run a PostgreSQL : server Repo : centos-sclo-rh Matched from: Filename : /opt/rh/rh-postgresql96/root/usr/bin/pg_ctl rh-postgresql96-postgresql-server-syspaths-9.6.5-2.el7.x86_64 : Convenient wrappers for the ...: rh-postgresql96-postgresql-server package; replaces the postgresql-server package Repo : centos-sclo-rh Matched from: Filename : /usr/bin/pg_ctl rh-postgresql96-postgresql-server-syspaths-9.6.10-1.el7.x86_64 : Convenient wrappers for the ...: rh-postgresql96-postgresql-server package; replaces the postgresql-server package Repo : centos-sclo-rh Matched from: Filename : /usr/bin/pg_ctl postgresql96-server-9.6.11-1PGDG.rhel7.x86_64 : The programs needed to create and run a PostgreSQL server Repo : @pgdg96 Matched from: Filename : /usr/pgsql-9.6/bin/pg_ctl
投稿2019/05/29 02:12
編集2019/05/29 02:26総合スコア25234
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
あなたの回答
tips
太字
斜体
打ち消し線
見出し
引用テキストの挿入
コードの挿入
リンクの挿入
リストの挿入
番号リストの挿入
表の挿入
水平線の挿入
プレビュー
質問の解決につながる回答をしましょう。 サンプルコードなど、より具体的な説明があると質問者の理解の助けになります。 また、読む側のことを考えた、分かりやすい文章を心がけましょう。