ビジネスサポートポータルアカウントでログイン
Red Hat Enterprise Linux 7 の環境で psql コマンドを実行できない  

Red Hat Enterprise Linux 7 の環境で psql コマンドを実行できない

    • 更新日:
    • 11 Oct 2018
    • 製品/バージョン:
    • InterScan Messaging Security Suite 7.1
    • InterScan Messaging Security Suite 9.1
    • OS:
    • Linux すべて
概要

Red Hat Enterprise Linux 7 の環境で PostgreSQL のデータベースに接続するために psql をコマンドを実行したところ、エラーでデータベースに接続できません。

# /opt/trend/imss/PostgreSQL/bin/psql imss sa
psql: could not connect to server: そのようなファイルやディレクトリはありません
        Is the server running locally and accepting
        connections on Unix domain socket "/tmp/.s.PGSQL.5432"?
詳細
Public

Red Hat Enterprise Linux 7 の環境において、psql や pg_dump などの PostgreSQL のコマンドを実行するには、例えば以下のように、コマンド (例では psql) のあとに "-h 127.0.0.1 -p 5432" のオプションを追加して、ホストとポートを指定してください。

# /opt/trend/imss/PostgreSQL/bin/psql -h 127.0.0.1 -p 5432 imss sa
Premium
Internal
Partner
評価:
カテゴリ:
動作トラブル; 操作方法/設定
Solution Id:
1117046
ご提案/ご意見
このソリューションはお役に立ちましたか?

フィードバックありがとうございました!


*こちらに技術的なご質問などをいただきましてもご返答する事ができません.

何卒ご了承いただきますようお願いいたします.


To help us improve the quality of this article, please leave your email here so we can clarify further your feedback, if neccessary:
We will not send you spam or share your email address.

*This form is automated system. General questions, technical, sales, and product-related issues submitted through this form will not be answered.


ユーザーガイド