[操作疑難] 安裝 postgresql 問題

我在 debian Jessie 安裝 postgresql. 但安裝之後 connection 不到。

打psql 出現

psql: could not connect to server: No such file or directory
        Is the server running locally and accepting
        connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"?

/etc/systemd/system/multi-user.target.wants/postgresql.service

[Unit]
Description=PostgreSQL RDBMS

[Service]
Type=oneshot
ExecStart=/bin/true
ExecReload=/bin/true
RemainAfterExit=on

[Install]
WantedBy=multi-user.target

[Service]
Type=oneshot
ExecStart=/bin/true
ExecReload=/bin/true
RemainAfterExit=on

你自己寫㗎? ExecStart 咩都冇做喎

TOP