docker django uwsgi 报错记录

这个配置中是能够正常进行网页访问的,能够查看网页

python 复制代码
[uwsgi]
chdir = /home/luichun/lc/Pyfile/PyCursor/app
module= app.wsgi:application
plugin-dir      = /usr/lib/uwsgi/plugins
plugins = python311
env = TZ=Asia/Shanghai
socket-timeout = 60     
websocket-max-size = 1024  
lazy-apps = true
listen = 1024    
http=:10006 
socket=:8006   
master = true  
workers = 4
max-requests = 5000  
threads = 2          
enable-threads = true 
uid = www-data
gid = www-data
vacuum = true        
harakiri = 30         
post-buffering = 4096  
die-on-term = true  
chmod-socket    = 777
buffer-size = 32768   
logto = /home/luichun/lc/Logs/Uwsgi/webcursor/uwsgi.log
pidfile = /home/luichun/lc/Logs/Uwsgi/webcursor/uwsgi.pid
stats = /home/luichun/lc/Logs/Uwsgi/webcursor/uwsgi.status
log-date = true    
log-format = %(ftime) | %(msg)
loglevel = debug
log-5xx = true
log-4xx = true
static-map = /static=/home/luichun/lc/Pyfile/PyCursor/app/staticfiles

日志显示

Thu Dec 26 07:05:58 2024 - *** Starting uWSGI 2.0.28 (64bit) on [Thu Dec 26 07:05:58 2024] ***
Thu Dec 26 07:05:58 2024 - compiled with version: 12.2.0 on 25 December 2024 22:16:18
Thu Dec 26 07:05:58 2024 - os: Linux-5.15.146.1-microsoft-standard-WSL2 #1 SMP Thu Jan 11 04:09:03 UTC 2024
Thu Dec 26 07:05:58 2024 - nodename: ca9dc18ce314
Thu Dec 26 07:05:58 2024 - machine: x86_64
Thu Dec 26 07:05:58 2024 - clock source: unix
Thu Dec 26 07:05:58 2024 - pcre jit disabled
Thu Dec 26 07:05:58 2024 - detected number of CPU cores: 16
Thu Dec 26 07:05:58 2024 - current working directory: /home/luichun/lc/Pyfile/PyCursor/app
Thu Dec 26 07:05:58 2024 - writing pidfile to /home/luichun/lc/Logs/Uwsgi/webcursor/uwsgi.pid
Thu Dec 26 07:05:58 2024 - detected binary path: /usr/local/bin/uwsgi
Thu Dec 26 07:05:58 2024 - setgid() to 33
Thu Dec 26 07:05:58 2024 - setuid() to 33
Thu Dec 26 07:05:58 2024 - chdir() to /home/luichun/lc/Pyfile/PyCursor/app
Thu Dec 26 07:05:58 2024 - your memory page size is 4096 bytes
Thu Dec 26 07:05:58 2024 - detected max file descriptor number: 1048576
Thu Dec 26 07:05:58 2024 - building mime-types dictionary from file /etc/mime.types...Thu Dec 26 07:05:58 2024 - 1545 entry found
Thu Dec 26 07:05:58 2024 - lock engine: pthread robust mutexes
Thu Dec 26 07:05:58 2024 - thunder lock: disabled (you can enable it with --thunder-lock)
Thu Dec 26 07:05:58 2024 - uWSGI http bound on :10006      # 开发环境:直接访问Django fd 3
Thu Dec 26 07:05:58 2024 - uwsgi socket 0 bound to TCP address :8006    # 生产环境:通过Nginx访问 fd 6
Thu Dec 26 07:05:58 2024 - Python version: 3.12.3 (main, Apr 24 2024, 11:17:35) [GCC 12.2.0]
Thu Dec 26 07:05:58 2024 - Python main interpreter initialized at 0x7fac5ac3a668
Thu Dec 26 07:05:58 2024 - python threads support enabled
Thu Dec 26 07:05:58 2024 - your server socket listen backlog is limited to 1024 connections
Thu Dec 26 07:05:58 2024 - your mercy for graceful operations on workers is 60 seconds
Thu Dec 26 07:05:58 2024 - mapped 785520 bytes (767 KB) for 8 cores
Thu Dec 26 07:05:58 2024 - *** Operational MODE: preforking+threaded ***
Thu Dec 26 07:05:58 2024 - *** uWSGI is running in multiple interpreter mode ***
Thu Dec 26 07:05:58 2024 - spawned uWSGI master process (pid: 1)
Thu Dec 26 07:05:58 2024 - spawned uWSGI worker 1 (pid: 7, cores: 2)
Thu Dec 26 07:05:58 2024 - spawned uWSGI worker 2 (pid: 8, cores: 2)
Thu Dec 26 07:05:58 2024 - spawned uWSGI worker 3 (pid: 9, cores: 2)
Thu Dec 26 07:05:58 2024 - spawned uWSGI worker 4 (pid: 10, cores: 2)
Thu Dec 26 07:05:58 2024 - *** Stats server enabled on /home/luichun/lc/Logs/Uwsgi/webcursor/uwsgi.status fd: 18 ***
Thu Dec 26 07:05:58 2024 - spawned uWSGI http 1 (pid: 11)
Wed Dec 25 17:06:00 2024 - WSGI app 0 (mountpoint='') ready in 2 seconds on interpreter 0x7fac5ac3a668 pid: 7 (default app)
Wed Dec 25 17:06:00 2024 - WSGI app 0 (mountpoint='') ready in 2 seconds on interpreter 0x7fac5ac3a668 pid: 10 (default app)
Wed Dec 25 17:06:00 2024 - WSGI app 0 (mountpoint='') ready in 2 seconds on interpreter 0x7fac5ac3a668 pid: 8 (default app)
Wed Dec 25 17:06:00 2024 - WSGI app 0 (mountpoint='') ready in 2 seconds on interpreter 0x7fac5ac3a668 pid: 9 (default app)
25/Dec/2024:17:06:07 -0600 | -
25/Dec/2024:17:06:09 -0600 | -
25/Dec/2024:17:06:09 -0600 | -
25/Dec/2024:17:06:09 -0600 | -
25/Dec/2024:17:06:09 -0600 | -

很奇怪,我访问的页面没有日志进行记录

从这里可以确定,是出问题了

相关推荐
wssswsss2 小时前
docker容器网络配置及常用操作
网络·docker·容器
青年vs阳光4 小时前
win10把c盘docker虚拟硬盘映射迁移到别的磁盘
运维·docker·容器
土豆沒加6 小时前
ubuntu22.04使用minikube安装k8s
云原生·容器·kubernetes
MZWeiei7 小时前
Matplotlib,Streamlit,Django大致介绍
python·django·matplotlib
猫吃了源码7 小时前
KubeKey一键安装部署k8s集群和KubeSphere详细教程
云原生·容器·kubernetes
你可以叫我仔哥呀7 小时前
k8s学习记录:环境搭建(基于Kubeadmin)
学习·容器·kubernetes
容器魔方8 小时前
KubeEdge社区2025年需求征集
云原生·容器·云计算
程序媛-徐师姐9 小时前
基于 Python Django 的校园互助平台(附源码,文档)
开发语言·python·django·校园互助·校园互助平台
Abdullah al-Sa9 小时前
Docker教程(喂饭级!)
c++·人工智能·docker·容器
web2u9 小时前
Docker入门及基本概念
java·运维·服务器·spring·docker·容器