gunicorn参数说明英文及译文

-h, --helpshow this help message and exit 
-h、 “救命显示此帮助消息并退出
-v, --versionshow program's version number and exit 
-v、 --版本显示程序的版本号并退出
-c CONFIG, --config CONFIGThe Gunicorn config file. [./gunicorn.conf.py] 
-c配置,-CONFIG配置Gunicorn配置文件。[/gunicorn.conf.py]
-b ADDRESS, --bind ADDRESSThe socket to bind. [['127.0.0.1:8000']] 
-b地址——绑定地址要绑定的套接字。[['127.0.0.1:8000']] 
--backlog INTThe maximum number of pending connections. [2048] 
--待办事项挂起连接的最大数量。[2048]
-w INT, --workers INTThe number of worker processes for handling requests. [1]
-w INT,-工人INT处理请求的工作进程数。[1]
-k STRING, --worker-class STRINGThe type of workers to use. [sync] 
-k字符串,-工人类字符串要使用的工人类型。[同步]
--threads INTThe number of worker threads for handling requests. [1]
--线程INT处理请求的工作线程数。[1]
--worker-connections INTThe maximum number of simultaneous clients. [1000] 
--工作连接INT最大同时客户端数。[1000] 
--max-requests INTThe maximum number of requests a worker will process before restarting. [0]
--最大请求整数工作程序在重新启动前将处理的最大请求数。[0]
--max-requests-jitter INTThe maximum jitter to add to the *max_requests* setting. [0]
--最大请求抖动整数要添加到*max_requests*设置的最大抖动。[0]
-t INT, --timeout INTWorkers silent for more than this many seconds are killed and restarted. [30]
-t INT,-timeout INT静默超过此数秒的工人将被杀死并重新启动。[30]
--graceful-timeout INTTimeout for graceful workers restart. [30] 
--优雅超时整数正常工作程序重新启动超时。[30] 
--keep-alive INTThe number of seconds to wait for requests on a Keep- Alive connection. [2]
--保持活动整数在保持活动连接上等待请求的秒数。[2]
--limit-request-line INTThe maximum size of HTTP request line in bytes. [4094] 
--限制请求行INTHTTP请求行的最大大小(字节)。[4094] 
--limit-request-fields INTLimit the number of HTTP headers fields in a request. [100]
--限制请求字段INT限制请求中HTTP头字段的数量。[100]
--limit-request-field_size INTLimit the allowed size of an HTTP request header field. [8190]
--limit-request-field_size INT限制HTTP请求头字段的允许大小。[8190]
--reloadRestart workers when code changes. [False] 
--装填代码更改时重新启动工作程序。[假]
--reload-engine STRINGThe implementation that should be used to power :ref:`reload`. [auto]
--重新加载发动机串应用于供电的实现:ref:'reload'。[自动]
--reload-extra-file FILESExtends :ref:`reload` option to also watch and reload on additional files [[]]
--重新加载额外文件文件扩展:ref:`reload`选项,也可以监视和重新加载其他文件[[]]
--spewInstall a trace function that spews every line executed by the server. [False]
--喷出安装一个跟踪函数,它输出服务器执行的每一行。[假]
--check-configCheck the configuration and exit. The exit status is 0 if the [False]
--检查配置检查配置并退出。如果[False],则退出状态为0
--print-configPrint the configuration settings as fully resolved. Implies :ref:`check-config`. [False]
--打印配置打印完全解析的配置设置。这意味着:ref:'检查配置'。[假]
--preloadLoad application code before the worker processes are forked. [False]
--预加载在分支工作进程之前加载应用程序代码。[假]
--no-sendfileDisables the use of ``sendfile()``. [None] 
--没有发送文件禁用“sendfile()”的使用。[无]
--reuse-portSet the ``SO_REUSEPORT`` flag on the listening socket. [False]
--再利用港口在侦听套接字上设置“SO_REUSEPORT”标志。[假]
--chdir CHDIRChange directory to specified directory before loading apps. [/root]
--chdir chdir加载应用程序之前,请将目录更改为指定目录。[/root]
-D, --daemonDaemonize the Gunicorn process. [False] 
-D、 --守护进程将Gunicorn进程后台化。[假]
-e ENV, --env ENVSet environment variables in the execution environment. [[]]
-e环境,-ENV环境在执行环境中设置环境变量。[[]]
-p FILE, --pid FILEA filename to use for the PID file. [None] 
-p文件,-pid文件用于PID文件的文件名。[无]
--worker-tmp-dir DIRA directory to use for the worker heartbeat temporary file. [None]
--工人tmp目录目录目录用于工作心跳临时文件的目录。[无]
-u USER, --user USERSwitch worker processes to run as this user. [0] 
-u用户,-用户用户用户将工作进程切换为此用户运行。[0]
-g GROUP, --group GROUPSwitch worker process to run as this group. [0] 
-g群,-群群将工作进程切换为此组运行。[0] 
-m INT, --umask INTA bit mask for the file mode on files written by Gunicorn. [0]
-m整数,-umask整数Gunicorn写入文件的文件模式的位掩码。[0]
--initgroupsIf true, set the worker process's group access list with all of the [False]
--初始组如果为true,则将工作进程的组访问列表设置为所有[False]
--forwarded-allow-ips STRINGFront-end's IPs from which allowed to handle set secure headers. [127.0.0.1]
--转发允许ips字符串前端的IP,允许处理设置的安全头。[127.0.0.1]
--access-logfile FILEThe Access log file to write to. [None] 
--访问日志文件文件要写入的访问日志文件。[无]
--disable-redirect-access-to-syslogDisable redirect access logs to syslog. [False] 
--禁用对syslog的重定向访问禁用将访问日志重定向到syslog。[假]
--access-logformat STRINGThe access log format. [%(h)s %(l)s %(u)s %(t)s "%(r)s" %(s)s %(b)s "%(f)s" "%(a)s"]
--访问日志格式字符串访问日志格式。[(h)s%(l)s%(u)s%(t)s“%(r)s”%(s)s%(b)s“%(f)s”和(a)s”]
--error-logfile FILE, --log-file FILEThe Error log file to write to. [-] 
--错误日志文件文件,-日志文件文件文件要写入的错误日志文件。[-]
--log-level LEVELThe granularity of Error log outputs. [info] 
--日志级别错误日志输出的粒度。[信息]
--capture-outputRedirect stdout/stderr to specified file in :ref:`errorlog`. [False]
--捕获输出将stdout/stderr重定向到:ref:'errorlog'中的指定文件。[假]
--logger-class STRINGThe logger you want to use to log events in Gunicorn. [gunicorn.glogging.Logger]
--记录器类字符串要用于记录Gunicorn中事件的记录器。〔gunicorn.glogg.Logger〕
--log-config FILEThe log config file to use. [None] 
--日志配置文件要使用的日志配置文件。[无]
--log-syslog-to SYSLOG_ADDRAddress to send syslog messages. [udp://localhost:514] 
--将syslog记录到syslog_ADDR发送系统日志消息的地址。[udp://localhost:514] 
--log-syslogSend *Gunicorn* logs to syslog. [False] 
--日志系统日志将*Gunicorn*日志发送到syslog。[假]
--log-syslog-prefix SYSLOG_PREFIXMakes Gunicorn use the parameter as program-name in the syslog entries. [None]
--日志syslog前缀syslog_prefix使Gunicorn在syslog条目中使用该参数作为程序名。[无]
--log-syslog-facility SYSLOG_FACILITYSyslog facility name [user] 
--日志syslog设施syslog_facility系统日志设施名称[用户]
-R, --enable-stdio-inheritanceEnable stdio inheritance. [False] 
-R、 --启用stdio继承启用stdio继承。[假]
--statsd-host STATSD_ADDR``host:port`` of the statsd server to log to. [None] 
--statsd主机statsd_ADDR``主机:要登录的statsd服务器的端口`.[无]
--dogstatsd-tags DOGSTATSD_TAGSA comma-delimited list of datadog statsd (dogstatsd) tags to append to []
--dogstatsd标签DOGSTASTD_tags要附加到[]的datadog statsd(dogstatsd)标记的逗号分隔列表
--statsd-prefix STATSD_PREFIXPrefix to use when emitting statsd metrics (a trailing ``.`` is added, []
--statsd前缀statsd_prefix在发出statsd度量时使用的前缀(添加了尾随的`.`,[]
-n STRING, --name STRINGA base to use with setproctitle for process naming. [None]
-n字符串,-名称字符串与setproctitle一起用于进程命名的基。[无]
--pythonpath STRINGA comma-separated list of directories to add to the Python path. [None]
--蟒蛇线要添加到Python路径的以逗号分隔的目录列表。[无]
--paste STRING, --paster STRINGLoad a PasteDeploy config file. The argument may contain a ``#`` [None]
--粘贴字符串,-粘贴字符串加载PasteDeploy配置文件。参数可能包含`#`[无]
--proxy-protocolEnable detect PROXY protocol (PROXY mode). [False] 
--代理协议启用检测代理协议(代理模式)。[假]
--proxy-allow-from PROXY_ALLOW_IPSFront-end's IPs from which allowed accept proxy requests (comma separate). [127.0.0.1]
--代理允许来自proxy_allow_IPS允许接受代理请求的前端IP(逗号分隔)。[127.0.0.1]
--keyfile FILESSL key file [None] 
--密钥文件SSL密钥文件[无]
--certfile FILESSL certificate file [None] 
--证书文件SSL证书文件[无]
--ssl-version SSL_VERSIONSSL version to use. [_SSLMethod.PROTOCOL_TLS] 
--ssl版本ssl_version要使用的SSL版本。[_SSLMethod.PROTOCOL_TLS]
--cert-reqs CERT_REQSWhether client certificate is required (see stdlib ssl module's) [VerifyMode.CERT_NONE]
--证书要求证书_要求是否需要客户端证书(参见stdlib ssl模块)[VerifyMode.CERT_NONE]
--ca-certs FILECA certificates file [None] 
--ca证书文件CA证书文件[无]
--suppress-ragged-eofsSuppress ragged EOFs (see stdlib ssl module's) [True] 
--抑制参差不齐的EOF抑制参差不齐的EOF(参见stdlib ssl模块)[True]
--do-handshake-on-connectWhether to perform SSL handshake on socket connect (see stdlib ssl module's) [False]
--连接时握手是否在套接字连接上执行SSL握手(请参阅stdlib SSL模块)[False]
--ciphers CIPHERSSSL Cipher suite to use, in the format of an OpenSSL cipher list. [None]
--密码要使用的SSL密码套件,格式为OpenSSL密码列表。[无]
--paste-global CONFSet a PasteDeploy global config variable in ``key=value`` form. [[]]
--粘贴全局配置以“key=value”形式设置PasteDeploy全局配置变量。[[]]
--strip-header-spacesStrip spaces present between the header name and the the ``:``. [False]
--条标题空间标题名称和`:``之间存在的带空格。[假]
  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值