我在服务器上搭建好php5.2,然后使用 php-cgi -b 192.168.2.1:9000 & 启动后,没有报错,但是不监听9000端口 root@:/var/www/html# ps -ef grep php-cgi root 22639 10364 0 21:49 pts/0 00:00:00 grep php-cgi root 23594 10364 0 19:51 pts/0 00:00:00 php-cgi -b 192.168.2.1:9000 -c /etc/php.ini 下边是查看端口的命令 root@:/tmp/log# netstat -ntlp Active Internet connections (only servers) Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name tcp 0 0 0.0.0.0:8200 0.0.0.0:* LISTEN 845/minidlnad tcp 0 0 192.168.2.1:139 0.0.0.0:* LISTEN 856/smbd tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 665/httpd tcp 0 0 0.0.0.0:81 0.0.0.0:* LISTEN 10285/nginx tcp 0 0 0.0.0.0:53 0.0.0.0:* LISTEN 586/dnsmasq tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 874/dropbear tcp 0 0 127.0.0.1:8888 0.0.0.0:* LISTEN 695/vis-dcon tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN 19173/exim4 tcp 0 0 127.0.0.1:5916 0.0.0.0:* LISTEN 997/acsd tcp 0 0 192.168.3.1:1980 0.0.0.0:* LISTEN 591/igd tcp 0 0 192.168.2.1:1980 0.0.0.0:* LISTEN 591/igd tcp 0 0 192.168.2.1:445 0.0.0.0:* LISTEN 856/smbd tcp6 0 0 :::81 :::* LISTEN 10285/nginx tcp6 0 0 :::53 :::* LISTEN 586/dnsmasq tcp6 0 0 :::22 :::* LISTEN 874/dropbear tcp6 0 0 ::1:25 :::* LISTEN 19173/exim4
版本好低啊