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

时间:2023-03-09 03:06:42
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

解决方法:

find / -name supervisor.sock

unlink /name/supervisor.sock

2. www-data 用户是干什么用的

3.如何通过supervisor启动openerp

编辑/etc/supervisor/supervisord.conf

添加如下代码可以在网页端访问supervisor服务

[inet_http_server]

port =127.0.0.1:9001

username=admin

password = 123456

[program:openerp]
;oe启动脚本
command=python /var/www/openerp/openerp-8.0/./openerp-server --addons-path='./openerp/addons' -r openerp
;oe目录
directory=/var/www/openerp/openerp-8.0
;是否随系统启动
autostart=true
;自动重启
autorestart=true
;启动时间,如果超过这个时间没有挂,说明启动成功
startsecs=
;启动用户
user=openerp
redirect_stderr=true
;log 文件
stdout_logfile=/var/www/openerp/openerp-8.0/openerp-server.log
stdout_logfile_maxtype=500MB
stdout_logfile_backups=
stdout_capture_maxbytes=1MB
stdout_events_enable=false
loglevel=warn

4.openerp 用户没有shell 权限

sudo su -openerp -s bin/bash