我已经通过命令
在solaris 11中安装了php5.6pkg install php-56
并通过命令
安装nginxpkgutil -i -y nginx
现在我想配置/etc/php/5.6/php-fpm.conf以启用php-fpm按端口指令监听:
127.0.0.1:9000
listen.allowed_clients = 127.0.0.1
但是当我重新启动nginx服务器时,我发现端口9000没有听
# netstat -an -f inet
UDP: IPv4
Local Address Remote Address State
-------------------- -------------------- ----------
*.* Unbound
*.* Unbound
*.* Unbound
*.* Unbound
*.631 Idle
*.111 Idle
*.* Unbound
*.62866 Idle
*.111 Idle
*.* Unbound
*.52142 Idle
*.* Unbound
*.68 Idle
*.546 Idle
TCP: IPv4
Local Address Remote Address Swind Send-Q Rwind Recv-Q State
-------------------- -------------------- ------- ------ ------- ------ -----------
127.0.0.1.5999 *.* 0 0 128000 0 LISTEN
127.0.0.1.631 *.* 0 0 128000 0 LISTEN
*.111 *.* 0 0 128000 0 LISTEN
*.* *.* 0 0 128000 0 IDLE
*.111 *.* 0 0 128000 0 LISTEN
*.* *.* 0 0 128000 0 IDLE
*.22 *.* 0 0 128000 0 LISTEN
*.22 *.* 0 0 128000 0 LISTEN
127.0.0.1.25 *.* 0 0 128000 0 LISTEN
127.0.0.1.587 *.* 0 0 128000 0 LISTEN
127.0.0.1.4999 *.* 0 0 128000 0 LISTEN
*.3306 *.* 0 0 128000 0 LISTEN
127.0.0.1.44881 *.* 0 0 128000 0 LISTEN
192.168.0.60.22 192.168.0.8.49263 131008 0 128872 0 ESTABLISHED
我发现nginx没有正确处理php。 谁能告诉我如何在solaris 11中启动php-fpm?任何建议都应该受到赞赏!
答案 0 :(得分:0)
问题解决了! Solaris使用spawn-fcgi而不是php-fpm,例如
#/usr/bin/spawn-fcgi -a 127.0.0.1 -p 9000 -u nobody -f /usr/bin/php-cgi