织梦CMS - 轻松建站从此开始!

亿万先生娱乐_www.mr007.com亿万先生娱乐官网

阿里云部署flask ,uwsgi restart fail

时间:2017-07-18 06:40来源:未知 作者:admin 点击:
要把自己的博客放到服务器上,代码是从github上pull下来的,一切就绪后,最后重启uwsgi,提示fail (venv) root@iZ11anup6kpZ:/tmp# service nginx restart * Restarting nginx nginx [ OK ] (venv) root@iZ11anup6kpZ:/t

要把自己的博客放到服务器上,代码是从github上pull下来的,一切就绪后,最后重启uwsgi,提示fail

(venv) root@iZ11anup6kpZ:/tmp# service nginx restart
 * Restarting nginx nginx                                                                                                                                                [ OK ] 
(venv) root@iZ11anup6kpZ:/tmp# service uwsgi restart
 * Restarting app server(s) uwsgi                                                                                                                                        [fail] 

看了下 uwsgi的log,显示如下

Tue Aug  9 23:55:21 2016 - *** Starting uWSGI 1.9.17.1-debian (64bit) on [Tue Aug  9 23:55:21 2016] ***
Tue Aug  9 23:55:21 2016 - compiled with version: 4.8.2 on 23 March 2014 17:15:32
Tue Aug  9 23:55:21 2016 - os: Linux-3.13.0-65-generic #106-Ubuntu SMP Fri Oct 2 22:08:27 UTC 2015
Tue Aug  9 23:55:21 2016 - nodename: iZ11anup6kpZ
Tue Aug  9 23:55:21 2016 - machine: x86_64
Tue Aug  9 23:55:21 2016 - clock source: unix
Tue Aug  9 23:55:21 2016 - pcre jit disabled
Tue Aug  9 23:55:21 2016 - detected number of CPU cores: 1
Tue Aug  9 23:55:21 2016 - current working directory: /
Tue Aug  9 23:55:21 2016 - writing pidfile to /run/uwsgi/app/myblog/pid
Tue Aug  9 23:55:21 2016 - detected binary path: /usr/bin/uwsgi-core
Tue Aug  9 23:55:21 2016 - setgid() to 33
Tue Aug  9 23:55:21 2016 - setuid() to 33
Tue Aug  9 23:55:21 2016 - your processes number limit is 15834
Tue Aug  9 23:55:21 2016 - your memory page size is 4096 bytes
Tue Aug  9 23:55:21 2016 - detected max file descriptor number: 65535
Tue Aug  9 23:55:21 2016 - VirtualHosting mode enabled.
Tue Aug  9 23:55:21 2016 - lock engine: pthread robust mutexes
Tue Aug  9 23:55:21 2016 - thunder lock: disabled (you can enable it with --thunder-lock)
Tue Aug  9 23:55:21 2016 - uwsgi socket 0 bound to UNIX address /run/uwsgi/app/myblog/socket fd 3
Tue Aug  9 23:55:21 2016 - uwsgi socket 1 bound to UNIX address /tmp/myblog.sock fd 5
Tue Aug  9 23:55:21 2016 - Python version: 2.7.6 (default, Jun 22 2015, 18:01:27)  [GCC 4.8.2]
Tue Aug  9 23:55:21 2016 - Set PythonHome to /var/www/myblog/venv
ImportError: No module named site

我的程序结构如下

├── app
│
      
      (责任编辑:admin)
织梦二维码生成器
顶一下
(0)
0%
踩一下
(0)
0%
------分隔线----------------------------
发表评论
请自觉遵守互联网相关的政策法规,严禁发布色情、暴力、反动的言论。
评价:
表情:
用户名: 验证码:点击我更换图片
栏目列表
推荐内容