PostgreSQL service unable to stop/start/restart

牧云@^-^@ 提交于 2019-12-23 03:22:33

问题


I am on CentOS 6.5 running PostGreSQL 9.3 and when I run the command service postgresql-9.3 stop I get the [ OK ] as if it has stopped but the service is either still running or starts automatically when it is stopped because I can run the service postgresql-9.3 stop over and over again and always get the [ OK ] as if it has been stopped. Trying to start or restart gives the [FAILED] message. How can I stop this? I get an error that says FATAL: could not create any TCP/IP sockets when I try to run rake db:setup for my rails project. There is no socket file in the /tmp directory for PrestGreSQL but it seems like PG thinks there is. I had the idea to uninstall postgres and do a fresh install but I need to stop the service in order for it to work. Any help is appreciated.


回答1:


Check the stauts of the service
service postgresql-9.1 status
If service already stopped, find any zombie process and kill
ps -ef | grep postgres



来源:https://stackoverflow.com/questions/22822893/postgresql-service-unable-to-stop-start-restart

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!