【发布时间】:2019-11-07 11:13:54
【问题描述】:
我有一个使用 gunicorn 运行 python 服务的 docker 容器。这就是服务的启动方式:
gunicorn --bind 0.0.0.0:6435 --certfile=cert.pem --keyfile=key.pem --ssl-version=5 --ciphers=EECDH+AESGCM:EDH+AESGCM:AES256+EECDH:AES256+EDH app:app -w=5 --timeout=500 --daemon
但是,我找不到 5 名工人的日志文件。查找这些日志文件的默认路径是什么?
我尝试使用 find 命令find / -type f -name "hs_err_pid",因为这些是 gunicorn 保存日志文件的默认文件名。但这给了我以下权限错误:
find: ‘/proc/1/map_files’: Operation not permitted
find: ‘/proc/16/map_files’: Operation not permitted
find: ‘/proc/89/map_files’: Operation not permitted
有什么方法可以找到日志文件?
【问题讨论】:
标签: python-3.x docker gunicorn