免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2651 | 回复: 0
打印 上一主题 下一主题

[Web] centos7.2中的php-fpm.conf端口在哪配置 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2017-02-12 23:32 |只看该作者 |倒序浏览
使用netstat -npl 看到 php-fpm.conf端口是9000
vi php-fpm.conf配置,根本找不到有设置端口的,真是奇怪


环境:centos7.2 + php5.5.38 + mysql5.5.54+nginx1.10.3


顺便看一下 nginx中的default.conf配置是否正确
  1. server {
  2.     listen       80;
  3.     server_name  localhost;
  4.     root   /home/wwwroot/erpbs;
  5.      index  index.html index.php default.html default.php;
  6.     #charset koi8-r;
  7.     #access_log  /var/log/nginx/log/host.access.log  main;

  8.     location / {
  9.         
  10.     }

  11.     #error_page  404              /404.html;

  12.     # redirect server error pages to the static page /50x.html
  13.     #
  14.     error_page   500 502 503 504  /50x.html;
  15.     location = /50x.html {
  16.         #root   /home/wwwroot/erpbs;
  17.     }

  18.     # proxy the PHP scripts to Apache listening on 127.0.0.1:80
  19.     #
  20.     #location ~ \.php$ {
  21.     #    proxy_pass   http://127.0.0.1;
  22.     #}

  23.     # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
  24.     #
  25.     location ~ \.php$ {
  26.         try_files $uri =404;
  27.         fastcgi_pass   127.0.0.1:80;
  28.         fastcgi_index  index.php;
  29.         fastcgi_param  SCRIPT_FILENAME  /scripts$fastcgi_script_name;
  30.         include        fastcgi_params;
  31.     }

  32.     # deny access to .htaccess files, if Apache's document root
  33.     # concurs with nginx's one
  34.     #
  35.     #location ~ /\.ht {
  36.     #    deny  all;
  37.     #}
  38. }
复制代码




  1. ;;;;;;;;;;;;;;;;;;;;;
  2. ; FPM Configuration ;
  3. ;;;;;;;;;;;;;;;;;;;;;

  4. ; All relative paths in this configuration file are relative to PHP's install
  5. ; prefix.

  6. ; Include one or more files. If glob(3) exists, it is used to include a bunch of
  7. ; files from a glob(3) pattern. This directive can be used everywhere in the
  8. ; file.
  9. include=/etc/php-fpm.d/*.conf

  10. ;;;;;;;;;;;;;;;;;;
  11. ; Global Options ;
  12. ;;;;;;;;;;;;;;;;;;

  13. [global]
  14. ; Pid file
  15. ; Default Value: none
  16. pid = /run/php-fpm/php-fpm.pid

  17. ; Error log file
  18. ; Default Value: /var/log/php-fpm.log
  19. error_log = /var/log/php-fpm/error.log

  20. ; Log level
  21. ; Possible Values: alert, error, warning, notice, debug
  22. ; Default Value: notice
  23. ;log_level = notice

  24. ; If this number of child processes exit with SIGSEGV or SIGBUS within the time
  25. ; interval set by emergency_restart_interval then FPM will restart. A value
  26. ; of '0' means 'Off'.
  27. ; Default Value: 0
  28. ;emergency_restart_threshold = 0

  29. ; Interval of time used by emergency_restart_interval to determine when
  30. ; a graceful restart will be initiated.  This can be useful to work around
  31. ; accidental corruptions in an accelerator's shared memory.
  32. ; Available Units: s(econds), m(inutes), h(ours), or d(ays)
  33. ; Default Unit: seconds
  34. ; Default Value: 0
  35. ;emergency_restart_interval = 0

  36. ; Time limit for child processes to wait for a reaction on signals from master.
  37. ; Available units: s(econds), m(inutes), h(ours), or d(ays)
  38. ; Default Unit: seconds
  39. ; Default Value: 0
  40. ;process_control_timeout = 0

  41. ; Send FPM to background. Set to 'no' to keep FPM in foreground for debugging.
  42. ; Default Value: yes
  43. daemonize = no

  44. ;;;;;;;;;;;;;;;;;;;;
  45. ; Pool Definitions ;
  46. ;;;;;;;;;;;;;;;;;;;;

  47. ; See /etc/php-fpm.d/*.conf
复制代码


您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP