开启php-fpm老是启动不了,提示端口被占用了。
[root@localhost john]# service php-fpm start
Starting php-fpm: [31-Mar-2013 09:31:43] ERROR: unable to bind listening socket for address '127.0.0.1:9000': Address already in use (98)
[31-Mar-2013 09:31:43] ERROR: FPM initialization failed
[FAILED]
先找到占用9000端口的 软件ZendStudio,然后kill掉它的进程就可以了。
[root@localhost john]# netstat -anp|grep 9000
tcp 0 0 :::9000 :::* LISTEN 3396/ZendStudio
tcp 1062 0 ::ffff:127.0.0.1:9000 ::ffff:127.0.0.1:48060 CLOSE_WAIT 3396/ZendStudio
[root@localhost john]# ps -aux|grep ZendStudio
Warning: bad syntax, perhaps a bogus '-'? See /usr/share/doc/procps-3.2.8/FAQ
john 3396 4.0 11.5 1034384 222912 ? Sl 09:12 0:49 /home/john/bin/zendstudio/ZendStudio/ZendStudio
root 3912 0.0 0.0 4336 748 pts/1 S+ 09:32 0:00 grep ZendStudio
[root@localhost john]# kill 3396
[root@localhost john]# service php-fpm start
Starting php-fpm: [ OK ]