unable to bind listening socket for address '127.0.0.1:9000': Address already in use

启动php-fpm报错:

[root@localhost init.d]# /usr/sbin/php-fpm
[16-Jun-2017 14:09:15] ERROR: unable to bind listening socket for address '127.0.0.1:9000': Address already in use (98)
[16-Jun-2017 14:09:15] ERROR: FPM initialization failed

原因是9000端口已经被占用。

1、查看占用9000端口的程序:

[root@localhost init.d]# netstat -lntup | grep 9000
tcp        0      0 127.0.0.1:9000          0.0.0.0:*               LISTEN      3043/php-fpm: maste

2、停止原先的php-fpm:

[root@localhost init.d]# killall php-fpm
[root@localhost init.d]# service php-fpm start

或者直接reload一下,一般是重新加载配置文件php.ini:

service php-fpm reload

你可能感兴趣的:(unable to bind listening socket for address '127.0.0.1:9000': Address already in use)