0

私はラズベリーPI 3でpostgresql 9.4を実行しようとしていますが、成功しません。 /etc/postgresql/9.4/main/postgresql.confポート5432はラズベリーPIをリッスンしません

マイ /etc/postgresql/9.4/main/pg_hba.conf

host all  all  10.0.1.0/24  md5 

そして、これは私がサービスを開始し、ステータスを取得する場合:私はsshのポートを取得しています

[email protected]:~ $ sudo service postgresql start 
[email protected]:~ $ sudo service postgresql status 
● postgresql.service - PostgreSQL RDBMS 
    Loaded: loaded (/lib/systemd/system/postgresql.service; enabled) 
    Active: active (exited) since Thu 2017-03-02 22:51:27 UTC; 29s ago 
    Process: 2840 ExecStart=/bin/true (code=exited, status=0/SUCCESS) 
Main PID: 2840 (code=exited, status=0/SUCCESS) 

Mar 02 22:51:27 raspberrypi systemd[1]: Started PostgreSQL RDBMS. 

を:

私のMacから
[email protected]:~ $ sudo netstat -anpt | grep LISTEN 
tcp  0  0 0.0.0.0:22    0.0.0.0:*    LISTEN  577/sshd 
tcp6  0  0 :::22     :::*     LISTEN  577/sshd 

私が接続しよう:

❯ psql -h 10.0.1.4 jdmclub_development pguser 
psql: could not connect to server: Connection refused 
    Is the server running on host "10.0.1.4" and accepting 
    TCP/IP connections on port 5432? 

私は誰が私を助けることができる、私が間違ってやっているのか分からないのですか?

PostgreSQLはログに記録EDITは言う:

2017-03-02 23:18:06 UTC [3993-1] LOG: invalid value for parameter "lc_messages": "en_GB.UTF-8" 
2017-03-02 23:18:06 UTC [3993-2] LOG: invalid value for parameter "lc_monetary": "en_GB.UTF-8" 
2017-03-02 23:18:06 UTC [3993-3] LOG: invalid value for parameter "lc_numeric": "en_GB.UTF-8" 
2017-03-02 23:18:06 UTC [3993-4] LOG: invalid value for parameter "lc_time": "en_GB.UTF-8" 
2017-03-02 23:18:06 UTC [3993-5] FATAL: configuration file "/etc/postgresql/9.4/main/postgresql.conf" contains errors 
+0

postgresqlデータベースのメモリ設定はどのようになっていますか?ラズベリーでそのようなデータベースを動かすことは、デバイスに対する過剰な攻撃です。 –

+0

postgresqlログはどうですか?彼らは何を伝えますか? –

+0

2017-03-02 23:18:06 UTC [3993-1] LOG:パラメータ "lc_messages"の値が無効です: "en_GB.UTF-8" 2017-03-02 23:18:06 UTC [3993-2 ] LOG:パラメータ "lc_monetary": "en_GB.UTF-8"の無効な値 2017-03-02 23:18:06 UTC [3993-3] LOG:パラメータ "lc_numeric"の値が無効です: "en_GB.UTF- 8 " 2017-03-02 23:18:06 UTC [3993-4] LOG:パラメータ" lc_time "の値が無効:" en_GB.UTF-8 " 2017-03-02 23:18:06 UTC [3993 -5]致命的:設定ファイル "/etc/postgresql/9.4/main/postgresql.conf"にエラーがあります – murb83

答えて

0

は、次のステップでそれを修正するには:

sudo raspi-config 
  1. 4ローカライズオプション
  2. 選択
  3. I1変更ロケール
  4. 選択
  5. チェックen_GB.UTF-8 UTF8
  6. OK C.UTF-8
  7. OK

そして再びpostgresのサービスを開始してみてください。

これは私のために働いた。

関連する問題