質問をすることでしか得られない、回答やアドバイスがある。

15分調べてもわからないことは、質問しよう!

新規登録して質問してみよう
ただいま回答率
85.48%
PostgreSQL

PostgreSQLはオープンソースのオブジェクトリレーショナルデータベース管理システムです。 Oracle Databaseで使われるPL/SQLを参考に実装されたビルトイン言語で、Windows、 Mac、Linux、UNIX、MSなどいくつものプラットフォームに対応しています。

Q&A

解決済

2回答

8331閲覧

Postgresql9.6を使っているのですがpg_ctlコマンドが見つかりません

kalon

総合スコア198

PostgreSQL

PostgreSQLはオープンソースのオブジェクトリレーショナルデータベース管理システムです。 Oracle Databaseで使われるPL/SQLを参考に実装されたビルトイン言語で、Windows、 Mac、Linux、UNIX、MSなどいくつものプラットフォームに対応しています。

0グッド

1クリップ

投稿2019/05/29 02:08

皆様いつもお世話になっております。

利用環境は以下の通りです
CentOS Linux release 7.6.1810 (Core)
psql (PostgreSQL) 9.6.13

PostgreSQLはこちらの方法でインストールしました。

googleでも検索して分からなかったのですが、pg_ctlコマンドが見つかりませんと表示されてしまいます。
どうしたらpg_ctlコマンドを使えるように出来るでしょうか?

アドバイスとご教授のほどよろしくお願いします。

気になる質問をクリップする

クリップした質問は、後からいつでもMYページで確認できます。

またクリップした質問に回答があった際、通知やメールを受け取ることができます。

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

退会済みユーザー

退会済みユーザー

2019/05/29 02:12 編集

/usr/pgsql-9.6/bin/ にいませんか? いないんですね?
guest

回答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
CHERRY

総合スコア25171

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

0

そういえばうちのサーバーだと
/opt/rh/rh-postgresql96/root/usr/bin/pg_ctl
にいたりしますね。

投稿2019/05/29 02:13

退会済みユーザー

退会済みユーザー

総合スコア0

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

CHERRY

2019/05/29 02:26

centos-sclo-rh リポジトリからのインストールですかね?
退会済みユーザー

退会済みユーザー

2019/05/29 02:34

記録に残してないけど、たぶんそうかも。 質問者さんの状況と合ってないかもしれない。
guest

あなたの回答

tips

太字

斜体

打ち消し線

見出し

引用テキストの挿入

コードの挿入

リンクの挿入

リストの挿入

番号リストの挿入

表の挿入

水平線の挿入

プレビュー

15分調べてもわからないことは
teratailで質問しよう!

ただいまの回答率
85.48%

質問をまとめることで
思考を整理して素早く解決

テンプレート機能で
簡単に質問をまとめる

質問する

関連した質問