postgres@iZj6cap7v4yegopod1l4atZ:/root$ service postgresql restart
* Restarting PostgreSQL 9.3 database server * The PostgreSQL server failed to start. Please check the log output:
2017-04-09 22:15:38 CST FATAL: data directory “/var/lib/postgresql/9.3/main” has group or world access
2017-04-09 22:15:38 CST DETAIL: Permissions should be u=rwx (0700).
解决办法
chmod -R 700 /var/lib/postgresql/9.3/main