Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/joomla/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
nginx+;php fpm+;覆盆子皮朵拉(软呢帽)_Nginx_Fedora_Php - Fatal编程技术网

nginx+;php fpm+;覆盆子皮朵拉(软呢帽)

nginx+;php fpm+;覆盆子皮朵拉(软呢帽),nginx,fedora,php,Nginx,Fedora,Php,我想进行主题中提到的配置。 如果启动nginx,我会在/var/log/nginx/error.log中看到此错误消息 *1连接到unix:127.0.0.1:9000失败(2:没有这样的文件或目录),同时连接到上游 我试着用插座固定。我得到以下错误 *1 connect() failed (111: Connection refused) while connecting to upstream, unix:/var/run/php5-fpm.sock失败(2:没有这样的文件或目录) 似乎n

我想进行主题中提到的配置。 如果启动nginx,我会在/var/log/nginx/error.log中看到此错误消息

*1连接到unix:127.0.0.1:9000失败(2:没有这样的文件或目录),同时连接到上游

我试着用插座固定。我得到以下错误

*1 connect() failed (111: Connection refused) while connecting to upstream,
unix:/var/run/php5-fpm.sock失败(2:没有这样的文件或目录)

似乎nginx需要一个文件,或者路径不正确。确切地说,我不明白该怎么解决它

这是我的nginx设置

location ~ \.php$ {
try_files $uri =404;
fastcgi_pass unix:127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_split_path_info ^(.+\.php)(/.+)$;
include /etc/nginx/fastcgi_params; }
当我尝试使用套接字时,我使用了这个(fastcgi_pass unix:/var/run/php fpm/php5 fpm.sock;)

我在/etc/php fpm/www.conf中更改了只有“listen”属性依赖于fastcgi_pass

有人知道我该怎么解决吗

更新: 我将fastcgi_pass unix:127.0.0.1:9000更改为fastcgi_pass 127.0.0.1:9000 在这种情况下,我得到了以下错误

*1 connect() failed (111: Connection refused) while connecting to upstream,
当我启动php fpm时,下面的消息

Oct 17 09:30:31 raspi php-fpm[6605]: [17-Oct-2013 09:30:31] ALERT: [pool www] user has not been defined
Oct 17 09:30:31 raspi php-fpm[6605]: [17-Oct-2013 09:30:31] ERROR: failed to post process the configuration
Oct 17 09:30:31 raspi php-fpm[6605]: [17-Oct-2013 09:30:31] ERROR: FPM initialization failed
Oct 17 09:30:31 raspi systemd[1]: php-fpm.service: main process exited, code=exited, status=78/n/a
Oct 17 09:30:31 raspi systemd[1]: Unit php-fpm.service entered failed state
解决

我必须在php fpm中设置以下用户

Oct 17 09:30:31 raspi php-fpm[6605]: [17-Oct-2013 09:30:31] ALERT: [pool www] user has not been defined
Oct 17 09:30:31 raspi php-fpm[6605]: [17-Oct-2013 09:30:31] ERROR: failed to post process the configuration
Oct 17 09:30:31 raspi php-fpm[6605]: [17-Oct-2013 09:30:31] ERROR: FPM initialization failed
Oct 17 09:30:31 raspi systemd[1]: php-fpm.service: main process exited, code=exited, status=78/n/a
Oct 17 09:30:31 raspi systemd[1]: Unit php-fpm.service entered failed state
使用者 组 听着,老板 听一听