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