Ubuntu Nginx在安装php pear并更新memcache后失败
在运行这两个命令之前,Nginx工作正常:Ubuntu Nginx在安装php pear并更新memcache后失败,ubuntu,nginx,memcached,pear,php,Ubuntu,Nginx,Memcached,Pear,Php,在运行这两个命令之前,Nginx工作正常: sudo apt get安装php pear php5 dev sudopecl安装memcache-3.0.8 我想将memcache更新到最新版本。现在我有一个问题: *21771 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: 127.0.0.1, server: , request: "GET /
*21771 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: 127.0.0.1, server: , request: "GET / HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "netcorner"
我杀死了php fpm,但现在当我尝试启动它时,我得到:
ALERT: [pool www] user has not been defined
ERROR: failed to post process the configuration
ERROR: FPM initialization failed
编辑:问题是实际的,第一次重新启动帮助,但当我第二次重新启动服务器时,我无法运行php fpm。您使用名为
www
的php fpm池配置没有用户
条目。通常,池
配置看起来与此类似:
[php-fpm-1]
listen = /run/php-fpm-1.sock
catch_workers_output = 1
chdir = /var/www
group = www-data
listen.backlog = 32000
listen.group = www-data
listen.mode = 0600
listen.owner = www-data
pm = dynamic
pm.max_children = 9
pm.max_spare_servers = 4
pm.min_spare_servers = 2
pm.start_servers = 3
request_terminate_timeout = 0
rlimit_core = unlimited
rlimit_files = 308506
security.limit_extensions = .php
user = www-data
您的池配置似乎缺少最后一条指令。可能是您的PHP更新过程改变了您的PHP配置,现在包含了一些以前没有包含的池定义。仔细检查您的php fpm配置,您应该很容易找到问题。这一次我遇到了问题,我不小心注释掉了用户条目,我认为listener.user就足够了。