9000 端口 php-fpm,php-fpm无法启动 提示端口9000被占用

把所有php-fpm子进程停掉, 见下文

报错信息:[root@i-qmb8tkgd test]# /usr/local/php/sbin/php-fpm

[18-Oct-2015 21:54:04] ERROR: unable to bind listening socket for address '127.0.0.1:9000': Address already in use (98)

[18-Oct-2015 21:54:04] ERROR: FPM initialization failed

解决方案:[root@i-qmb8tkgd test]# netstat -ntlp | grep 9000

tcp        0      0 127.0.0.1:9000          0.0.0.0:*               LISTEN      5229/php-fpm: maste

[root@i-qmb8tkgd test]# ps -aux|grep pool

phpz      8824  4.7  0.4 298276 16316 ?        S    21:39   0:54 php-fpm: pool www

phpz      9020  5.1  0.4 227220 19064 ?        S    21:47   0:35 php-fpm: pool www

phpz      9224  5.5  0.3 222156 14064 ?        S    21:55   0:11 php-fpm: pool www

root      9313  0.0  0.0 112640   932 pts/0    S+   21:59   0:00 grep --color=auto pool

[root@i-qmb8tkgd test]# kill 5229

[root@i-qmb8tkgd test]# kill 8824

[root@i-qmb8tkgd test]# kill 9020

[root@i-qmb8tkgd test]# kill 9224

启动php-fpm[root@i-qmb8tkgd test]# /usr/local/php/sbin/php-fpm

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值