XAMPP:另一个Web服务器守护程序已经在运行? [英] XAMPP: Another web server daemon is already running?
问题描述
如果我有另一个运行着所有这些命令的apache/web-server实例,我已经痛苦地分析了昨天的全部情况
I have painfully analyzed all of yesterday if I had another apache/web-server instance running, with all of these commands
ps aux
ps -e
lsof
netstat tunap
我没有在端口8080上运行的Apache实例或任何其他服务器.
I DO NOT have another instance of Apache or ANY OTHER server running at port 8080.
但是,XAMPP给了我这个:
Yet, XAMPP gives me this:
XAMPP: Another web server daemon is already running
我该怎么办?
我还将httpd.conf编辑为LISTEN到端口9876,并且仍然相同.
I also edited httpd.conf to LISTEN to port 9876, and still the same.
推荐答案
如果:
lsof -Pi |grep 8080 returns no results
netstat -na |grep 8080 returns no results
ps -ef shows no web server processes
那么,也许启动公司正在检查的周围有一个锁定文件?这些通常在/var/run下找到,但不一定必须找到.在这一点上,我通常会运行strace看看发生了什么事情:
Then maybe there's a lockfile lying around that the startup is checking against? Those are typically found under /var/run but don't necessarily have to. At this point I would usually run strace to see what's going on:
strace -e read = all -e write = all -f -o strace.out 您的启动命令
strace -e read=all -e write=all -f -o strace.out your_startup_command
然后打开strace.out,在输出中搜索"..已经在运行"字符串,然后开始查看其上方的行以查看失败的原因.
Then open up strace.out, search for the "..is already running" string in the output, and starting looking at lines above it to see what is failing.
这篇关于XAMPP:另一个Web服务器守护程序已经在运行?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!