Linux配置Apache服务报错could not bind to address

Linux下配置Apache服务
使用systemctl start httpd.service失败,错误信息如下

img

1203 01:03:18 localhost.localdomain systemd[1]: Starting The Apache HTTP Server...
1203 01:03:18 localhost.localdomain httpd[3607]: (99)Cannot assign requested address: AH00072: make_sock: could not bind to address 192.168.3.4:80
1203 01:03:18 localhost.localdomain httpd[3607]: no listening sockets available, shutting down
1203 01:03:18 localhost.localdomain httpd[3607]: AH00015: Unable to open logs
1203 01:03:18 localhost.localdomain systemd[1]: httpd.service: main process exited, code=exited, status=1/FAILURE
1203 01:03:18 localhost.localdomain systemd[1]: Failed to start The Apache HTTP Server.
1203 01:03:18 localhost.localdomain systemd[1]: Unit httpd.service entered failed state.
1203 01:03:18 localhost.localdomain systemd[1]: httpd.service failed.

怎么回事

你查看一下,是否有其余程序占用了80端口(netstat -lntup | grep 80)
还有,去查系统日志 /var/log/messages 看看更具体的报错信息,看看报错说啥来定位。

我给你配置啊