問題:unix:///var/run/supervisor/supervisor.sock refused connection
解決方法:
注意事項(xiàng):如果是用root啟動(dòng)的程序瞎惫,執(zhí)行以下命令時(shí)記得加sudo
1、supervisord -c /etc/supervisord.conf 啟動(dòng)supervisor服務(wù)局扶;
2拘泞、如果發(fā)現(xiàn)提示如下錯(cuò)誤(端口被占用):Error: Another program is already listening on a port that one of our HTTP servers is configured to use. Shut this program down first before starting supervisord.
3纷纫、查看哪個(gè)程序占用了端口:lsof -i : 9009,9009是端口號(hào)陪腌;
4辱魁、殺死該進(jìn)程:kill -9 pid (程序的pid)
5、supervisord -c /etc/supervisord.conf啟動(dòng)supervisor服務(wù)诗鸭,這個(gè)時(shí)候服務(wù)就啟動(dòng)起來了染簇;
6、如果**/supervisor.sock no such file問題强岸,那去找找/etc/supervisor.conf文件中的采用如下方法解決