LNAMP下很奇怪的一个apache端口问题
apache什么都没改动 重启一下就变成监听80端口了打开/usr/local/apache/conf/httpd.conf 查看确定这里设置的端口监听是88端口
Listen 127.0.0.1:88
再打开虚拟主机配置,确定都是88端口~怀疑自己眼花了 把虚拟主机文件备份后全部删除一遍依旧是不能启动提示:
# lnmp httpd start
+-------------------------------------------+
| Manager for LNMP, Written by Licess |
+-------------------------------------------+
| https://lnmp.org |
+-------------------------------------------+
Starting httpd: (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
回复 1# 的帖子
解决了~留给有缘人配置文件不知道为什么变成 这个了 /etc/httpd/conf/httpd.conf
直接用/usr/local/apache/bin/apachectl start 启动
[ 本帖最后由 loony 于 2017-12-2 03:21 编辑 ]
回复 2# 的帖子
出现/etc/httpd/conf/httpd.conf 应该是你通过apt-get或者yum安装上了另外一个apache、同时启动脚本都被覆盖造成的
页:
[1]