1
jerry74 2014-07-17 17:46:39 +08:00 1
我猜應該是port 1024以下權限不足
加user=root [program:httpd] command=/usr/sbin/httpd user=root numprocs=1 autostart=true autorestart=true startretries=10 stopsignal=KILL stopwaitsecs=10 redirect_stderr=true stdout_logfile=/home/http.log 在不行的話貼log吧... |
2
fxl12345 OP @jerry74
supervisord.log : 2014-07-17 18:28:40,731 INFO spawned: 'httpd' with pid 25023 2014-07-17 18:28:40,733 INFO spawned: 'py' with pid 25024 2014-07-17 18:28:40,767 INFO exited: httpd (exit status 1; not expected) 2014-07-17 18:28:40,777 INFO gave up: httpd entered FATAL state, too many start retries too quickly httpd.log: (98)Address already in use: make_sock: could not bind to address [::]:80 (98)Address already in use: make_sock: could not bind to address 0.0.0.0:80 no listening sockets available, shutting down Unable to open logs |
3
fxl12345 OP |
4
fityme 2014-07-17 18:54:08 +08:00 1
@fxl12345 supervisor本身会创建一个进程,然后保存这个pid来作后续的操作,所以在开始用supervisor管理之前需要先手动把现存的进程全杀掉。不知道你是不是这种情况。然后,我还遇到过的情况是,用uwsgi启动Django进程,用配置文件就多开了好几个,用命令行参数就没问题。。。具体原因没找到。。。
|
5
fxl12345 OP @fityme
1.试过在supervisor管理之前kill掉,启动supervisord会启动我监控的进程,ps-ef里可以看到,但还是出现标题的报错。 2.我也同样遇到你说的那个问题,监控系统管理进程,出现大量一样的进程,原因也没有找到。 3.监控/sbin/mingetty /dev/tty1 RUNNING pid 26842, uptime 0:00:05 |
6
raptium 2014-07-17 20:16:51 +08:00 via Android 3
httpd 是个 daemon
supervisord 是用来跑前台程序的 |
7
raptium 2014-07-17 20:19:50 +08:00 via Android 2
command 写 httpd -D FOREGROUND 应该就好了
|
10
superchaowen 2016-01-02 23:05:39 +08:00
我也遇到这个问题,启动进程没起来,不断的启动后台进程
|
11
superchaowen 2016-01-02 23:10:15 +08:00
我是跑在虚拟机上面的,而且是以 shell 方式跑 java 进程啊
|
12
xx19941215 2018-10-09 10:15:15 +08:00
entered FATAL state, too many start retries too quickly
我 user 改成 root 之后可以了 |