uwsgi uwsgi_syscmd_docker.ini
# 1. 获取配置信息
[uWSGI] getting INI configuration from uwsgi_syscmd_docker.ini
# 2. 启动信息:日志显示 uWSGI 的版本信息、编译信息、运行环境信息等
*** Starting uWSGI 2.0.22 (64bit) on [Fri May 17 09:22:13 2024] ***
compiled with version: 10.2.1 20210110 on 07 September 2023 02:09:43
os: Linux-5.4.242-1.el7.elrepo.x86_64 #1 SMP Tue Apr 25 09:46:07 EDT 2023
nodename: ab3cd084217a
machine: x86_64
clock source: unix
pcre jit disabled
detected number of CPU cores: 4
current working directory: /data/syscmd
detected binary path: /usr/local/bin/uwsgi
# 3. 警告信息:警告提示您正在以 root 用户身份运行 uWSGI,建议您使用 --uid 选项指定非 root 用户。
uWSGI running as root, you can use --uid/--gid/--chroot options
*** WARNING: you are running uWSGI as root !!! (use the --uid flag) ***
your processes number limit is 24096
your memory page size is 4096 bytes
detected max file descriptor number: 655350
lock engine: pthread robust mutexes
thunder lock: disabled (you can enable it with --thunder-lock)
# 4. 启动服务:uWSGI 绑定了 HTTP 服务端口和套接字
uWSGI http bound on 0.0.0.0:9000 fd 4
uwsgi socket 0 bound to TCP address 127.0.0.1:45065 (port auto-assigned) fd 3
uWSGI running as root, you can use --uid/--gid/--chroot options
# 5. Python 版本信息:显示了 Python 的版本信息
Python version: 3.6.15 (default, Dec 21 2021, 12:03:22) [GCC 10.2.1 20210110]
Python main interpreter initialized at 0x55baaf53b040
# 6. 线程支持:显示 Python 线程支持已启用
python threads support enabled
your server socket listen backlog is limited to 100 connections
your mercy for graceful operations on workers is 60 seconds
mapped 218760 bytes (213 KB) for 2 cores
# 7. 操作模式:uWSGI 的操作模式被设置为 preforking
*** Operational MODE: preforking ***
# 8. 配置文件路径
Overall Configure file path is: ./conf/config.ini
# 9. 日志配置文件路径
Default log configure file is: /data/syscmd/utilspy/log/conf/logger.ini
# a. 代码相关日志
... ...
# b. WSGI应用程序准备就绪
# WSGI 应用程序 0 在解释器地址 0x55baaf53b040 上准备就绪,启动花费了 134 秒,进程ID是 5611,使用的是默认的应用程序。
WSGI app 0 (mountpoint='') ready in 134 seconds on interpreter 0x55baaf53b040 pid: 5611 (default app)
# c. 运行在多个解释器模式下:uWSGI 正在以多个解释器模式运行
# uWSGI 默认以多解释器模式启动,这允许在每个工作进程中托管多个服务
# 可以通过 single-interpreter = true 改为单解释器
*** uWSGI is running in multiple interpreter mode ***
spawned uWSGI master process (pid: 5611)
spawned uWSGI worker 1 (pid: 5622, cores: 1)
spawned uWSGI worker 2 (pid: 5623, cores: 1)
# d. 启用统计服务器
*** Stats server enabled on 127.0.0.1:1717 fd: 35 ***
# e. 产生uWSGI HTTP进程
spawned uWSGI http 1 (pid: 5624)