安装 mod_python 并更改
/etc/apache2/sites-available/default文件。当我尝试运行时出现以下错误
尾 -f /var/log/apache2/error.log
ai-System-Product-Name ws_code # tail -f /var/log/apache2/error.log
Fatal Python error: PyEval_AcquireThread: NULL new thread state
Fatal Python error: PyEval_AcquireThread: NULL new thread state
Fatal Python error: PyEval_AcquireThread: NULL new thread state
Fatal Python error: PyEval_AcquireThread: NULL new thread state
Fatal Python error: PyEval_AcquireThread: NULL new thread state
Fatal Python error: PyEval_AcquireThread: NULL new thread state
[Fri May 24 16:45:29 2013] [notice] caught SIGTERM, shutting down
[Fri May 24 16:45:30 2013] [notice] mod_python: Creating 8 session mutexes based on 150 max processes and 0 max threads.
[Fri May 24 16:45:30 2013] [notice] mod_python: using mutex_directory /tmp
[Fri May 24 16:45:30 2013] [notice] Apache/2.2.22 (Ubuntu) PHP/5.4.6-1ubuntu1.2 mod_python/3.3.1 Python/2.7.3 mod_wsgi/3.4 configured -- resuming normal operations
此外,现在每当我尝试在浏览器上运行我的代码时,它只会直接显示原始代码。如何消除错误?我正在使用 Linux Mint 14 Nadia。