php-fpm : 启动成功,但是 9000端口没有启动问题
修改php-fpm.conf 配置文件 ; listen 配置 sock 改成监听 9000端口
[global]
;pid = /usr/local/php/var/run/php-fpm.pid
error_log = /usr/local/php/var/log/php-fpm.log
log_level = warning
[www]
;listen = /tmp/php-cgi.sock
listen = 127.0.0.1:9000
;listen.backlog = -1
listen.backlog = 8192
listen.allowed_clients = 127.0.0.1
listen.owner = www
listen.group = www
listen.mode = 0666
user = www
group = www
pm = dynamic
pm.max_children = 512
pm.start_servers = 64
pm.min_spare_servers = 64
pm.max_spare_servers = 512
pm.max_requests = 2048
pm.process_idle_timeout = 10s
request_terminate_timeout = 60
request_slowlog_timeout = 1
slowlog = /home/wwwlogs/php/$pool.log.slow
nginx 配置文件:
2. 重启nginx,访问 网站 报 FastCGI sent in stderr: "PHP message: PHP Warning: require(): open_basedir restriction in 错误