質問:
「PostgreSQLデータベースサーバーの起動に失敗しました–UNIXプロセス用の未登録の認証エージェント」というエラーが発生しました ‘CentOSマシンでPostgreSQLサーバーを起動しているとき。このエラーは、UNIXプロセスの認証エージェントが未登録であるためにサービスが失敗したことを示しており、 polkitdによって報告されます。 サービス。 polkitd はシステムデーモンであり、その認証エージェントはアクションを実行する前にユーザーのIDを確認します。コマンド「journalctl-xe」および/var / log / secure 同じことを明らかにします。
完全なエラーメッセージは次のとおりです。
# service postgresql start ::::::::::::::::::::::::::::::::::::: test.in systemd[1]: Unit postgresql.service entered failed state. test.in systemd[1]: postgresql.service failed. test.in polkitd[18278]: Unregistered Authentication Agent for unix-process:22928:182581476 (system bus name :1.1038, object path test.in chronyd[513]: Source 45.125.255.54 replaced with 123.108.200.124 test.in polkitd[18278]: Registered Authentication Agent for unix-process:22988:182656818 (system bus name :1.1039 [/usr/bin/pktty test.in systemd[1]: Starting PostgreSQL database server...
問題を解決する方法は?
解決策:
私は同様のエラーに直面しましたが、以下の手順で修正されました。
ステップ1 : postgresに切り替えます ユーザー
# su - postgres
ステップ2: データベースサーバーを初期化します
$ initdb The files belonging to this database system will be owned by user "postgres". This user must also own the server process. ::::::::::::::::::::::::::::::::::::::::::: WARNING: enabling "trust" authentication for local connections You can change this by editing pg_hba.conf or using the option -A, or --auth-local and --auth-host, the next time you run initdb. Success. You can now start the database server using: postgres -D /var/lib/pgsql/data or pg_ctl -D /var/lib/pgsql/data -l logfile startを使用してデータベースサーバーを起動できます。
ステップ3:
$ exit
ステップ4: PostgreSQLサーバーを起動します
# service postgresql start Loaded: loaded (/usr/lib/systemd/system/postgresql.service; disabled; vendor Active: active (running) since Wed 2016-08-31 17:43:58 IST; 10s ago Process: 23144 ExecStart=/usr/bin/pg_ctl start -D ${PGDATA} -s -o -p ${PGPORT Process: 23138 ExecStartPre=/usr/bin/postgresql-check-db-dir ${PGDATA} (code= Main PID: 23147 (postgres)
そして、このリンクによると、 polkitdを無視することができます エラーメッセージ。
OpenStack用にQCOW2形式でKaliLinuxイメージを作成するにはどうすればよいですか?
Metasploitエラーを修正する方法–バンドラーgemをインストールする必要がありますか? [解決済み]