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

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

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

报告相同问题?

悬赏问题

  • ¥20 iOS绕地区网络检测
  • ¥15 python验证码滑块图像识别
  • ¥15 根据背景及设计要求撰写设计报告
  • ¥15 QT6颜色选择对话框显示不完整
  • ¥20 能提供一下思路或者代码吗
  • ¥15 用twincat控制!
  • ¥15 请问一下这个运行结果是怎么来的
  • ¥15 单通道放大电路的工作原理
  • ¥30 YOLO检测微调结果p为1
  • ¥15 DS18B20内部ADC模数转换器