< 2017-05-03 03:59:32.167 UTC > FATAL: could not create lock file "/tmp/.s.PGSQL.5432.lock": Permission denied
< 2017-05-03 03:59:32.168 UTC > LOG: database system is shut down
修改tmp文件夾的權限
[vagrant@vagrant-centos65 /]$ su - postgres
Password:
su: incorrect password
忘記配置密碼了
passwd postgres
重新登錄
[root@vagrant-centos65 /]# su - postgres
-bash-4.1$