Unable to open logs

Apache不能启动: Unable to open logs
很难从给出的信息中发现有用的东西,
让你不知道是哪除了问题,幸好通常你不会是第一个碰到这个问题的人,又幸好有google。
今天一开机,Apache就不能启动了,结果在Event Viewer中看到说: Unable to open logs
不知道是什么意思。
经过一番搜索,才知道,如果Apache默认的80端口被占用才会报这个错,
只是不明白Apache为什么不直接告诉我:80端口被占用。
解决的办法很简单:
用netstat -ano查看Local Address中Listening 80的应用的PID, 去任务管理器中找到对应的进程,关闭此进程即可。
systemctl status httpd. service Chttpd. service The Apache HTTP Server Loaded: loaded (/us/lib/systemd/system/httpd.service; disabled; vendor preset: disabled) Active: failed (Result: exit-code) since = 2023-05-24 19:48:16 CST; 1min 40s ago Docs: man: httpd(8) man: apachectl(8) Process: 14126 Execstop=/bin/ KiLL- WINCH $IMAINPID} (code-exited, status-1 /FAILURE) Process: 13507 ExecReload=/usr/ sbin/httpd $OPTIONS - k graceful (code exited. status-O/SUCCESS) Process: 14124 Execstart=/usr/ sbin/httpd $OPTIONS -DFOREGROUND ( code-exited, status-1 /FAILURE) Main PID: 14124 (code exited, status1/FAILURE) 24 19: 48:16 localhost. localdomain httpd(14124): AH00548: NameVirtualHost has no effect and will be removed in the next release /etc/httpd/conf/httpd. conf:1 24 19:48:16 localhost. localdomain httpd/14124] : AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using localhost. localdomain. Set th... his message 24 19:48:16 localhost. localdomain http(14124] : no listening sockets available, shutting down 24 19:48:16 localhost. Localdomain http 14124) : AH00015: Unable to open logs 24 19: 48:16 localhost. localdomain systemd(1): httpd, service: main process exited, code exited, status -1 /FAILURE 24 19: 48:16 localhost. localdomain kill|14126| : kill: cannot find process 24 19: 48:16 localhost. localdomain systemd(1]: httpd. service: control process exited, code exited status 1 24 19:48:16 localhost. localdomain systemd(1]: Failed to start The Apache HTTP Server 24 19:48:16 localhost. Localdomain systemd(1): Unit httpd. service entered failed state. 59 24 19:48:16 localhost. localdomain systemd(1|: httpd. service failed. Hint: some lines were eLlipsized, use - L to show in Tull
05-25
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值