voilet / cmdb

cmdb saltstack
GNU Affero General Public License v3.0
1.06k stars 593 forks source link

访问cmdb报错 no python application found, #6

Open realhawk1978 opened 7 years ago

realhawk1978 commented 7 years ago

--- no python application found, check your startup logs for errors --- [pid: 16532|app: -1|req: -1/1] 127.0.0.1 () {32 vars in 340 bytes} [Tue Dec 13 10:00:59 2016] GET / => generated 21 bytes in 0 msecs (HTTP/1.1 500) 2 headers in 83 bytes (0 switches on core 0)

请问这个是怎么回事,谢谢!!

godfery commented 7 years ago

我用pip install uwsgi 安装了一遍就可以使用了。

godfery commented 7 years ago

我用pip install uwsgi 安装了一遍就可以使用了。

R1hug0 commented 6 years ago

pip install uwsgi

cmdb

vi uwsgi #修改DAEMON=/usr/local/bin/uwsgi

init.d

cp uwsgi /etc/init.d/uwsgi /etc/init.d/uwsgi stop && /etc/init.d/uwsgi start 重启uwsgi, 用yum装的不行,因为centos6是Py2.6,这个项目需要2.7,2.7一般都是源码安装路径不一样, 估计centos7下是可以直接用的.