Ubuntu supervisor failed

报错内容如下

error: <class ‘socket.error’>, [Errno 2] No such file or directory: file: /usr/lib/python2.7/socket.py line: 228

如果尝试service supervisord start,则会有如下报错信息。

Failed to start supervisord.service: Unit supervisord.service not found.

你可以尝试

systemctl start supervisor && service supervisord start

supervisorctl reload #这样就可以启动supervisor了