2017-06-27 83 views
3

私はUbuntu 16.04にpgagentをインストールしました。PostgresqlのPgAgentでジョブを実行できません

私が実行:

CREATE EXTENSION pgagent; 
CREATE LANGUAGE plpgsql; 

このよる:https://www.pgadmin.org/docs/pgadmin4/1.x/pgagent_install.htm

私は

/usr/bin/pgagent hostaddr=127.0.0.1 user=my_user password=***** 

を実行し、私の仕事作成:

Jobs print

しかし、実行しようとすると何も起こりません。エラー、メッセージ、何もありません。機能は実行されません。

私は解決を開始する場所がわからないこの

+0

ニュースはありますか? Windowsサーバー2012で同じ問題が発生しました –

答えて

0

私はそれは古いスレッドです知っているが、この問題を有する他の人々を助けるのために、ここで提案です:私はよく分からない

pgAgentがこのようなパスワードを受け入れると、単純なps auxコマンドでパスワードを見ることができます。代わりに、pgpassファイルを使用する必要があります。

$ sudo su - postgres 
$ cd ~ 
$ nano .pgpass 

# Insert the following text and save the document: 
localhost:5432:*:postgres:[postgres_password] 

$ chmod 0600 .pgpass 

$ pgagent hostaddr=localhost dbname=postgres user=postgres 
関連する問題