ShuiBo'blog

人生若只如初见

嗨,我是水波 (@saber).


君以国士待我,我必国士报之。

关于Nginx偶尔闪现502的简单解决办法。。

  1. 增加内存
  2. 修改nginx配置 ``` server_names_hash_bucket_size 256; client_header_buffer_size 256k; large_client_header_buffers 4 256k; #size limits client_max_body_size 50m; client_body_buffer_size 256k; client_header_timeout 3m; client_body_timeout 3m; send_timeout 3m;

proxy_buffer_size 128k; proxy_buffers 32 32k; proxy_busy_buffers_size 128k;

fastcgi_buffer_size 128k; fastcgi_buffers 4 256k; fastcgi_busy_buffers_size 256k; ``` 最重要的是去看nginx报错日志为啥会报502。。。。。。这次是header头过大

最近的文章

es2.3.3+ik1.9.3安装

安装es2.3.3wget https://download.elastic.co/elasticsearch/release/org/elasticsearch/distribution/tar/elasticsearch/2.3.3/elasticsearch-2.3.3.tar.gztar -zxvf elasticsearch-2.3.3.tar.gz./bin/elasticsearch //加上 -d为后台运行安装ikes2.3.3对应的ik版本是1.9.3wget https...…

继续阅读
更早的文章

记一次nginx 403错误

server { charset utf-8; client_max_body_size 128M; listen 80; access_log /var/log/nginx/xcx.log; error_log /var/log/nginx/xcx_error.log; server_name xcx.com www.xcx.com root /home/code/xcx/...…

继续阅读