我运行了apt-get install php5-gd
命令,现在我的网站中没有任何网站会加载。我看到了502 Bad Gateway nginx / 1.1.19。
我尝试在Nginx配置文件/etc/nginx/nginx.conf中添加两行,但仍然无法加载:
http {
...
fastcgi_buffers 8 16k;
fastcgi_buffer_size 32k;
...
}
错误日志:
[31-Jul-2014 05:39:42] NOTICE: Finishing ...
[31-Jul-2014 05:39:42] NOTICE: exiting, bye-bye!
[31-Jul-2014 05:40:15] NOTICE: configuration file /etc/php5/fpm/php-fpm.conf test is successful
[31-Jul-2014 05:40:15] NOTICE: fpm is running, pid 8808
[31-Jul-2014 05:40:15] NOTICE: ready to handle connections
[31-Jul-2014 05:44:11] NOTICE: Finishing ...
[31-Jul-2014 05:44:11] NOTICE: exiting, bye-bye!
[31-Jul-2014 05:44:11] NOTICE: fpm is running, pid 8933
[31-Jul-2014 05:44:11] NOTICE: ready to handle connections
[31-Jul-2014 05:49:43] NOTICE: Finishing ...
[31-Jul-2014 05:49:43] NOTICE: exiting, bye-bye!
[31-Jul-2014 05:49:43] NOTICE: fpm is running, pid 8976
[31-Jul-2014 05:49:43] NOTICE: ready to handle connections
[31-Jul-2014 05:52:38] NOTICE: Finishing ...
[31-Jul-2014 05:52:38] NOTICE: exiting, bye-bye!
[31-Jul-2014 05:52:38] NOTICE: fpm is running, pid 9013
[31-Jul-2014 05:52:38] NOTICE: ready to handle connections
[31-Jul-2014 06:03:00] NOTICE: configuration file /etc/php5/fpm/php-fpm.conf test is successful
[31-Jul-2014 06:09:58] NOTICE: Finishing ...
[31-Jul-2014 06:09:58] NOTICE: exiting, bye-bye!
[31-Jul-2014 06:10:00] NOTICE: fpm is running, pid 9156
[31-Jul-2014 06:10:00] NOTICE: ready to handle connections
[31-Jul-2014 06:10:37] WARNING: [pool www] server reached max_children setting (10), consider raising it
[31-Jul-2014 06:11:52] NOTICE: Finishing ...
[31-Jul-2014 06:11:52] NOTICE: exiting, bye-bye!
[31-Jul-2014 06:11:57] ALERT: [pool www] user has not been defined
[31-Jul-2014 06:11:57] ERROR: failed to post process the configuration
[31-Jul-2014 06:11:57] ERROR: FPM initialization failed
[31-Jul-2014 06:12:32] NOTICE: fpm is running, pid 9217
[31-Jul-2014 06:12:32] NOTICE: ready to handle connections