doudui5753 2016-06-10 10:19
浏览 90
已采纳

php-fpm不会在solaris 11中侦听端口9000

I have installed php5.6 in solaris 11 by command

pkg install php-56

and installed nginx by command

pkgutil -i -y nginx

Now I want to configure /etc/php/5.6/php-fpm.conf to enable php-fpm listening on port by directive:

127.0.0.1:9000
listen.allowed_clients = 127.0.0.1

But when I restart nginx server,I found that port 9000 does't listen

# 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

And I found that nginx does't process php correctly. Could any one tell me how to start php-fpm in solaris 11?Any suggestions should be appreciated!

  • 写回答

1条回答 默认 最新

  • dongyan5641 2016-06-12 05:47
    关注

    Problem resolved! Solaris use spawn-fcgi instead php-fpm,for example

    #/usr/bin/spawn-fcgi -a 127.0.0.1 -p 9000 -u nobody -f /usr/bin/php-cgi
    

    Please refer to nginx-php-solaris-10

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 请提供一个符合要求的网页链接。
  • ¥20 用HslCommunication 连接欧姆龙 plc有时会连接失败。报异常为“未知错误”
  • ¥15 网络设备配置与管理这个该怎么弄
  • ¥20 机器学习能否像多层线性模型一样处理嵌套数据
  • ¥20 西门子S7-Graph,S7-300,梯形图
  • ¥50 用易语言http 访问不了网页
  • ¥50 safari浏览器fetch提交数据后数据丢失问题
  • ¥15 matlab不知道怎么改,求解答!!
  • ¥15 永磁直线电机的电流环pi调不出来
  • ¥15 用stata实现聚类的代码