我在Centos VPS上运行带有mod_wsgi的Django 1.11.4和带有virtualenv Python3.4环境的Apache2.4。在虚拟hostrunnig中配置mod_wsgi
并运行apachectl restart
后,我得到:
(98)地址已在使用中:make_sock:无法收听 地址[::]上的连接:80(98)地址已在使用中:make_sock: 无法侦听地址0.0.0.0:80上的连接
端口80正在使用中。
这是我的虚拟主持人:
<VirtualHost *:80>
ServerAlias 91.132.233.168
ServerAdmin webmaster@localhost
DocumentRoot /opt/rh/httpd24/root/var/www/html
Alias /memit /opt/rh/httpd24/root/var/www/html/myproject
<Directory /opt/rh/httpd24/root/var/www/>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
</Directory>
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
WSGIDaemonProcess memit python-path=/opt/rh/httpd24/root/var/www/html/memit:/opt/rh/httpd24/root/va$
WSGIProcessGroup myproject
WSGIScriptAlias / /opt/rh/httpd24/root/var/www/html/myproject/myproject/wsgi.py
</VirtualHost>
我的问题:如何将Django端口更改为特殊端口?