lia*_*idu 4 python django nginx uwsgi
这是uwsgi配置:
[uwsgi]
uid = 500
listen=200
master = true
profiler = true
processes = 8
logdate = true
socket = 127.0.0.1:8000
module = www.wsgi
pythonpath = /root/www/
pythonpath = /root/www/www
pidfile = /root/www/www.pid
daemonize = /root/www/www.log
enable-threads = true
memory-report = true
limit-as = 6048
Run Code Online (Sandbox Code Playgroud)
这是Nginx配置:
server{
listen 80;
server_name 119.254.35.221;
location / {
uwsgi_pass 127.0.0.1:8000;
include uwsgi_params;
}
}
Run Code Online (Sandbox Code Playgroud)
django工作正常,但除非我重新启动uwsgi,否则无法看到修改后的页面.(更重要的是,当我配置8个工作进程时,我可以看到修改后的页面,当我按住ctrl + f5一段时间后,似乎只能确定worker可以读取并响应修改后的页面,但是其他人只显示旧的,缓存旧页面的内容?我没有配置任何有关缓存的内容)
我没有配置django,它适用于"python manager runserver ...",但在使用nginx + uwsgi时遇到了这个问题.
(nginx和uwsgi都是新安装,我相信这里没有任何其他内容......)
| 归档时间: |
|
| 查看次数: |
3763 次 |
| 最近记录: |