- 论坛徽章:
- 0
|
使用netstat -npl 看到 php-fpm.conf端口是9000
但vi php-fpm.conf配置,根本找不到有设置端口的,真是奇怪
环境:centos7.2 + php5.5.38 + mysql5.5.54+nginx1.10.3
顺便看一下 nginx中的default.conf配置是否正确
- server {
- listen 80;
- server_name localhost;
- root /home/wwwroot/erpbs;
- index index.html index.php default.html default.php;
- #charset koi8-r;
- #access_log /var/log/nginx/log/host.access.log main;
- location / {
-
- }
- #error_page 404 /404.html;
- # redirect server error pages to the static page /50x.html
- #
- error_page 500 502 503 504 /50x.html;
- location = /50x.html {
- #root /home/wwwroot/erpbs;
- }
- # proxy the PHP scripts to Apache listening on 127.0.0.1:80
- #
- #location ~ \.php$ {
- # proxy_pass http://127.0.0.1;
- #}
- # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
- #
- location ~ \.php$ {
- try_files $uri =404;
- fastcgi_pass 127.0.0.1:80;
- fastcgi_index index.php;
- fastcgi_param SCRIPT_FILENAME /scripts$fastcgi_script_name;
- include fastcgi_params;
- }
- # deny access to .htaccess files, if Apache's document root
- # concurs with nginx's one
- #
- #location ~ /\.ht {
- # deny all;
- #}
- }
复制代码
- ;;;;;;;;;;;;;;;;;;;;;
- ; FPM Configuration ;
- ;;;;;;;;;;;;;;;;;;;;;
- ; All relative paths in this configuration file are relative to PHP's install
- ; prefix.
- ; Include one or more files. If glob(3) exists, it is used to include a bunch of
- ; files from a glob(3) pattern. This directive can be used everywhere in the
- ; file.
- include=/etc/php-fpm.d/*.conf
- ;;;;;;;;;;;;;;;;;;
- ; Global Options ;
- ;;;;;;;;;;;;;;;;;;
- [global]
- ; Pid file
- ; Default Value: none
- pid = /run/php-fpm/php-fpm.pid
- ; Error log file
- ; Default Value: /var/log/php-fpm.log
- error_log = /var/log/php-fpm/error.log
- ; Log level
- ; Possible Values: alert, error, warning, notice, debug
- ; Default Value: notice
- ;log_level = notice
- ; If this number of child processes exit with SIGSEGV or SIGBUS within the time
- ; interval set by emergency_restart_interval then FPM will restart. A value
- ; of '0' means 'Off'.
- ; Default Value: 0
- ;emergency_restart_threshold = 0
- ; Interval of time used by emergency_restart_interval to determine when
- ; a graceful restart will be initiated. This can be useful to work around
- ; accidental corruptions in an accelerator's shared memory.
- ; Available Units: s(econds), m(inutes), h(ours), or d(ays)
- ; Default Unit: seconds
- ; Default Value: 0
- ;emergency_restart_interval = 0
- ; Time limit for child processes to wait for a reaction on signals from master.
- ; Available units: s(econds), m(inutes), h(ours), or d(ays)
- ; Default Unit: seconds
- ; Default Value: 0
- ;process_control_timeout = 0
- ; Send FPM to background. Set to 'no' to keep FPM in foreground for debugging.
- ; Default Value: yes
- daemonize = no
- ;;;;;;;;;;;;;;;;;;;;
- ; Pool Definitions ;
- ;;;;;;;;;;;;;;;;;;;;
- ; See /etc/php-fpm.d/*.conf
复制代码
|
|