无法在本地azure实例中重新启动Apache2

时间:2014-08-03 04:19:34

标签: mysql apache azure terminal

昨天我看到我的mysql,azure实例中的apache(在终端中)没有运行。

所以我尝试了以下命令

sudo service mysql start

然后mysql开始

我试过apache后

sudo service apache2 start,我尝试sudo service apache2 stopsudo service apache2 start,我也试过sudo service apache2 restart

显示以下消息

apache2: Could not reliably determine the server's fully qualified domain name, using 10.102.170.55 for ServerName
apache2: Could not reliably determine the server's fully qualified domain name, using 10.102.170.55 for ServerName
(98)Address already in use: make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down
Unable to open logs
Action 'start' failed.
The Apache error log may have more information.
 * Restarting web server apache2  

这个我的实例的becoz不起作用。请帮助我

输出netstat -antp | grep 80

(No info could be read for "-p": geteuid()=1001 but you should be root.)
tcp        0      0 0.0.0.0:80              0.0.0.0:*               LISTEN      -               
tcp      273      0 10.102.170.55:80        66.249.65.15:38639      ESTABLISHED -               
tcp      166      0 10.102.170.55:80        144.76.155.8:38193      CLOSE_WAIT  -               
tcp        1      0 10.102.170.55:80        27.7.166.147:35458      CLOSE_WAIT  -               
tcp      273      0 10.102.170.55:80        66.249.65.95:35499      ESTABLISHED -               
tcp      273      0 10.102.170.55:80        66.249.65.95:33186      ESTABLISHED -               
tcp      273      0 10.102.170.55:80        66.249.65.87:54108      ESTABLISHED -               
tcp        0      0 10.102.170.55:36292     10.102.170.180:80       TIME_WAIT   -               
tcp      425      0 10.102.170.55:80        98.229.145.37:37758     CLOSE_WAIT  -               
tcp      273      0 10.102.170.55:80        66.249.65.15:51530      ESTABLISHED -               
tcp     1605      0 10.102.170.55:80        117.216.230.182:61774   CLOSE_WAIT  -               
tcp        0      0 10.102.170.55:36291     10.102.170.180:80       TIME_WAIT   -               
tcp      274      0 10.102.170.55:80        66.249.65.95:60162      CLOSE_WAIT  -               
tcp      273      0 10.102.170.55:80        66.249.65.15:59441      ESTABLISHED -               
tcp      274      0 10.102.170.55:80        66.249.65.15:48622      CLOSE_WAIT  -               
tcp      725      0 10.102.170.55:80        27.7.166.147:35457      ESTABLISHED -               
tcp     1605      0 10.102.170.55:80        117.216.230.182:61775   CLOSE_WAIT  -               
tcp      274      0 10.102.170.55:80        66.249.65.87:62910      CLOSE_WAIT  -               
tcp      191      0 10.102.170.55:443       66.249.65.9:36805       CLOSE_WAIT  -               
tcp      273      0 10.102.170.55:80        66.249.65.87:63705      ESTABLISHED -  

0 个答案:

没有答案