一时疏忽 因为把测试网址弄错 误以为是环境出了问题 重装了mod_wsgi重启apache的时候报了
$ service apache2 restart
Syntax error on line 1 of /etc/apache2/sites-enabled/webapp:
Invalid command 'WSGISocketPrefix', perhaps misspelled or defined by a module not included in the server configuration
Action 'configtest' failed.
The Apache error log may have more information.
...fail!
此类的错误
最后的是通过吧 /etc/apache2/mods-available下的wsgi.load wsgi.conf复制到 /etc/apache2/mods-enabled 解决的
还有一个错误:
/usr/sbin/apache2ctl: 87: ulimit: error setting limit (Operation not permitted)
解决方法 修改 /user/sbin/apache2ctl 将ULIMITE_MAX_FILES=""即可