当我启动时包以下的错
/usr/local/apache2/bin/apachectl start
(98)Address already in use: make_sock: could not bind to address [::]:80
(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
然后我用这条命令查看了一下当前80端口的状态
netstat -tulnp |grep 80
tcp 0 0 0.0.0.0:3306 0.0.0.0:* LISTEN 1880/mysqld
tcp 0 0 :::80 :::* LISTEN 1478/httpd
于是发现问题的所在 有一个pid 1478 的在占用80端口
问题找到了接下我们在用kill 将它杀掉kill 1478
然后再在用netstat -tulnp | grep 80 时 已经看不到了
etstat -tulnp |grep 80
tcp 0 0 0.0.0.0:3306 0.0.0.0:* LISTEN 1880/mysqld
然后在从新启动apache 就可以了
/usr/local/apache2/bin/apachectl start
(98)Address already in use: make_sock: could not bind to address [::]:80
(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
然后我用这条命令查看了一下当前80端口的状态
netstat -tulnp |grep 80
tcp 0 0 0.0.0.0:3306 0.0.0.0:* LISTEN 1880/mysqld
tcp 0 0 :::80 :::* LISTEN 1478/httpd
于是发现问题的所在 有一个pid 1478 的在占用80端口
问题找到了接下我们在用kill 将它杀掉kill 1478
然后再在用netstat -tulnp | grep 80 时 已经看不到了
etstat -tulnp |grep 80
tcp 0 0 0.0.0.0:3306 0.0.0.0:* LISTEN 1880/mysqld
然后在从新启动apache 就可以了
编辑回复