Coder Social home page Coder Social logo

Comments (3)

shenxf1205 avatar shenxf1205 commented on June 18, 2024

nginx的部分 配置内容如下 ,再后面是网站的配置就不贴上来了:

`error_log "pipe:rollback /opt/logs/error.log interval=1d baknum=14 maxsize=1G";

pid /opt/logs/nginx.pid;
worker_rlimit_nofile 51200;

events {
use epoll;
worker_connections 51200;
multi_accept on;
}

http {
include mime.types;
default_type application/octet-stream;
log_format main '{"remote_addr":"$remote_addr","remote_user":"$remote_user","time_local":"$time_iso8601","request":"$request","status":"$status","body_bytes_sent":"$body_bytes_sent","http_referer":"$http_referer","http_user_agent":"$http_user_agent","http_x_forwarded_for":"$http_x_forwarded_for","server_name":"$server_name","upstream_addr":"$upstream_addr","upstream_response_time":"$upstream_response_time","upstream_status":"$upstream_status","http_host":"$http_host","request_time":"$request_time"}';
access_log "pipe:rollback /opt/logs/access.log interval=1d baknum=7 maxsize=10G" main;
charset utf-8;
rewrite_log on;

root /home/www/;

check_shm_size  40m;
client_max_body_size 800m;
server_names_hash_bucket_size 128;
client_header_buffer_size 32k;
large_client_header_buffers 4 32k;
sendfile        on;
tcp_nopush     on;
keepalive_timeout 60;
tcp_nodelay on;

server_tag off;
server_info off;

gzip  on;
gzip_min_length 1k;
gzip_buffers 4 16k;
gzip_http_version 1.0;
gzip_comp_level 6;
gzip_types text/plain application/javascript text/css application/json application/x-javascript application/xml image/jpeg image
gzip_disable "MSIE [1-6]\.";
gzip_vary off;`

from tengine.

lianglli avatar lianglli commented on June 18, 2024

建议升级最新版本 3.1.0

from tengine.

lianglli avatar lianglli commented on June 18, 2024

在main里显示地设置 worker_shutdown_timeout (例如 worker_shutdown_timeout 300s ;),确保上一次old processes全部优雅退出后,再执行下一次reload。

from tengine.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.