当前位置: 首页 > 工具软件 > mod_wsgi > 使用案例 >

linux redhat下mod wsgi设置(daemon mode)

林烨烨
2023-12-01

WSGIScriptAlias / /sampleWeb/pyweb/pyweb/wsgi.py
WSGIDaemonProcess processName python-home="/usr" python-path=/sampleWeb/pyweb/ processes=2 threads=40

WSGIProcessGroup processName
WSGISocketPrefix /var/run/wsgi

<Directory /sampleWeb/pyweb/>
<Files wsgi.py>
Require all granted
</Files>
</Directory>

 

 

touch file for reload

touch /sampleWeb/pyweb/pyweb/wsgi.py

 类似资料: