gun的发音怎么读,gunn怎么读

  gun的发音怎么读,gunn怎么读

  Gunicorn使用起来很简单。打开服务命令:gunicorn-w 4-B127.0.0.1: 5000-D管理器:app参数详解:-w: worker代表打开的worker的数量,可以理解为一个进程(通常情况下,worker的数量是CPU数量的2-4倍)-b: bind代表打开服务绑定的地址-D:代表在后台管理器中运行gunicorn程序:app代表在gunicorn管理器中使用app应用配置文件使用配置文件。

  # guni corn . py import logging import logging . handlers from logging . handlers import watchedfilehandler import OSI import多处理* * * Bind= 127 . 0 . 0 . 1:8000 # Bind IP和端口号backlog=512 # listen queue * * * chdir=/home/Ubuntu/python/project # time out=30 # Worker _ class= gevent #使用ge vent模式或sync模式。默认为同步模式workers=multiprocessing。CPU _ count () * 21 #进程数daemon=false# daemon,将进程交给管理线程的主管=2 #指定每个进程打开的线程数loglevel=info # Log level,指的是错误日志的级别。access _ log _ format= %(t)s %(p)s %(h)s %(r)s %(s)s %(l)s %(b)s %(f)s %(a)s #设置不能在访问日志级别设置。错误日志无法使用每个选项的以下含义设置 :h远程地址l -u当前-,可能是请求者状态行的未来发布日期的用户名(例如“get/HTTP/1.1 ` ”) s status b响应长度或-f referera用户代理请求时间(秒)请求时间(微秒)请求时间(十进制秒)sp进程Id * * * access log=/home/python/project/log/guni corn _ access . log # access log file * * * error log=/home/log

  打开服务命令:guni corn-c guni corn . py manager:app参数详解:-c: config表示指定配置文件的路径。

gun的发音怎么读,gunn怎么读