Heim > Fragen und Antworten > Hauptteil
在阿里云部署,supervisord -c 启动了,进入supervisorctl报错,报错如下:
ConfigParser.ParsingError: File contains parsing errors: /etc/supervisord.conf
[line 39]: '"supervisord.conf" [readonly] 140L, 8627C\n'
[root@t01 conf.d]# chmod 777 /etc/supervisord.conf
[root@t01 conf.d]# supervisorctl
Traceback (most recent call last):
File "/usr/bin/supervisorctl", line 9, in <module>
load_entry_point('supervisor==3.2.3', 'console_scripts', 'supervisorctl')()
File "/usr/lib/python2.7/site-packages/supervisor/supervisorctl.py", line 1276, in main
options.realize(args, doc=__doc__)
File "/usr/lib/python2.7/site-packages/supervisor/options.py", line 1570, in realize
Options.realize(self, *arg, **kw)
File "/usr/lib/python2.7/site-packages/supervisor/options.py", line 306, in realize
self.process_config()
File "/usr/lib/python2.7/site-packages/supervisor/options.py", line 314, in process_config
self.process_config_file(do_usage)
File "/usr/lib/python2.7/site-packages/supervisor/options.py", line 344, in process_config_file
self.read_config(self.configfile)
File "/usr/lib/python2.7/site-packages/supervisor/options.py", line 1587, in read_config
parser.readfp(fp)
File "/usr/lib64/python2.7/ConfigParser.py", line 324, in readfp
self._read(fp, filename)
File "/usr/lib64/python2.7/ConfigParser.py", line 546, in _read
raise e
ConfigParser.ParsingError: File contains parsing errors: /etc/supervisord.conf
[line 39]: '"supervisord.conf" [readonly] 140L, 8627C\n'
我在这些只懂的东西 都改成了 chmod 777 但是还不行。而且我当前是root,求助如何解决,另外 我 kill supervisord kill不掉,是不是因为我启动supervisord的用户没权限,所以即便是 用 root 启动supervisorctl也不行呢?求助解决方法!
阿神2017-04-17 17:31:09
你是root用户,所以应该不是权限问题
要不先 echo_supervisord_conf > /etc/supervisord.conf
恢复成默认配置试试