【发布时间】:2013-06-04 10:21:39
【问题描述】:
当我尝试启动 Apache2 时收到以下消息:
* Restarting web server apache2
(98)Address already in use: make_sock: could not bind to address 0.0.0.0:2080
no listening sockets available, shutting down
Unable to open logs
Action 'start' failed.
The Apache error log may have more information.
uwsgi 正在监听那个端口:
sudo netstat -ltnp | grep ':2080'
tcp 0 0 0.0.0.0:2080 0.0.0.0:* LISTEN 884/uwsgi
在此之前我手动安装了 wsgi
sudo apt-get install libapache2-mod-wsgi
因为我在尝试启动 Apache 时收到此消息:
Syntax error on line 25 of /etc/apache2/sites-enabled/graphite:
Invalid command 'WSGIDaemonProcess', 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!
杀死进程不起作用,因为它会自动重新启动。我可以用命令禁用它
sudo a2dismod wsgi
但随后我再次收到“无效命令 'WSGIDaemonProcess' 消息。
apache error.log 不包含任何相关信息。
知道什么可以解决这个问题吗?因为现在我有点陷入僵局。
【问题讨论】:
标签: apache ubuntu apache2 mod-wsgi wsgi