- 积分
- 16
- 威望
-
- 金钱
-
- 注册时间
- 2014-8-31
- 在线时间
- 小时
- 最后登录
- 1970-1-1
|
遇到两次灵异的502,找不到原因,php为5.4,出现问题后把php升级到5.5(同时卸载了memcache和opcache)还是不行,只能重装服务器
PS:弄了一晚上,重装了一次系统,重新装了几次lnmp,每次配置完正常运行,但是一reboot服务器就502了,是不是系统有问题啊?
贴出错误日志,求大神指点
php-fmp.log:- [05-Sep-2014 02:06:38] NOTICE: fpm is running, pid 31635
- [05-Sep-2014 02:06:38] NOTICE: ready to handle connections
- [05-Sep-2014 02:07:19] NOTICE: Finishing ...
- [05-Sep-2014 02:07:19] NOTICE: exiting, bye-bye!
- [05-Sep-2014 02:07:21] NOTICE: fpm is running, pid 31677
- [05-Sep-2014 02:07:21] NOTICE: ready to handle connections
- [05-Sep-2014 02:11:32] NOTICE: Finishing ...
- [05-Sep-2014 02:11:32] NOTICE: exiting, bye-bye!
- [05-Sep-2014 02:11:33] NOTICE: fpm is running, pid 9466
- [05-Sep-2014 02:11:33] NOTICE: ready to handle connections
- [05-Sep-2014 02:13:55] NOTICE: Finishing ...
- [05-Sep-2014 02:13:55] NOTICE: exiting, bye-bye!
- [05-Sep-2014 02:13:57] NOTICE: fpm is running, pid 9517
- [05-Sep-2014 02:13:57] NOTICE: ready to handle connections
- [05-Sep-2014 02:26:39] NOTICE: Finishing ...
- [05-Sep-2014 02:26:39] NOTICE: exiting, bye-bye!
- [05-Sep-2014 02:28:10] NOTICE: fpm is running, pid 12538
- [05-Sep-2014 02:28:10] NOTICE: ready to handle connections
- [05-Sep-2014 02:34:15] NOTICE: Finishing ...
- [05-Sep-2014 02:34:15] NOTICE: exiting, bye-bye!
- [05-Sep-2014 02:34:18] NOTICE: fpm is running, pid 12581
- [05-Sep-2014 02:34:18] NOTICE: ready to handle connections
复制代码 php-fpm.conf:- [global]
- pid = /usr/local/php/var/run/php-fpm.pid
- error_log = /usr/local/php/var/log/php-fpm.log
- log_level = notice
- [www]
- listen = /tmp/php-cgi.sock
- listen.backlog = -1
- 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 = 20
- pm.start_servers = 2
- pm.min_spare_servers = 1
- pm.max_spare_servers = 6
- request_terminate_timeout = 100
- request_slowlog_timeout = 0
- slowlog = var/log/slow.log
复制代码 nginx.conf:- user www www;
- worker_processes auto;
- error_log /home/wwwlogs/nginx_error.log crit;
- pid /usr/local/nginx/logs/nginx.pid;
- #Specifies the value for maximum file descriptors that can be opened by this process.
- worker_rlimit_nofile 51200;
- events
- {
- use epoll;
- worker_connections 51200;
- multi_accept on;
- }
- http
- {
- include mime.types;
- default_type application/octet-stream;
- server_names_hash_bucket_size 128;
- client_header_buffer_size 32k;
- large_client_header_buffers 4 32k;
- client_max_body_size 50m;
- sendfile on;
- tcp_nopush on;
- keepalive_timeout 60;
- tcp_nodelay on;
- fastcgi_connect_timeout 300;
- fastcgi_send_timeout 300;
- fastcgi_read_timeout 300;
- fastcgi_buffer_size 64k;
- fastcgi_buffers 4 64k;
- fastcgi_busy_buffers_size 128k;
- fastcgi_temp_file_write_size 256k;
- gzip on;
- gzip_min_length 1k;
- gzip_buffers 4 16k;
- gzip_http_version 1.0;
- gzip_comp_level 2;
- gzip_types text/plain application/x-javascript text/css application/xml;
- gzip_vary on;
- gzip_proxied expired no-cache no-store private auth;
- gzip_disable "MSIE [1-6]\.";
- #limit_conn_zone $binary_remote_addr zone=perip:10m;
- ##If enable limit_conn_zone,add "limit_conn perip 10;" to server section.
- server_tokens off;
- #log format
- log_format access '$remote_addr - $remote_user [$time_local] "$request" '
- '$status $body_bytes_sent "$http_referer" '
- '"$http_user_agent" $http_x_forwarded_for';
- server
- {
- listen 80 default;
- #listen [::]:80 default ipv6only=on;
- return 500;
- }
- include vhost/*.conf;
- }
复制代码
[ 本帖最后由 rewalax 于 2014-9-5 07:23 编辑 ] |
|