
我有一個奇怪的問題。當我嘗試啟動 xampp 時,它失敗並顯示訊息:
XAMPP: Another web server daemon is already running.
當我嘗試使用以下命令找出哪個伺服器正在運行時:
netstat -tunap | grep LISTEN
結果:
tcp 0 0 127.0.1.1:53 0.0.0.0:* LISTEN 1955/dnsmasq
tcp 0 0 127.0.0.1:631 0.0.0.0:* LISTEN 1262/cupsd
tcp 0 0 0.0.0.0:17500 0.0.0.0:* LISTEN 2353/dropbox
tcp 0 0 0.0.0.0:20414 0.0.0.0:* LISTEN 2297/skype
tcp6 0 0 :::80 :::* LISTEN 1366/apache2
tcp6 0 0 ::1:631 :::* LISTEN 1262/cupsd
在這裡我看到 apache 正在運行,為了驗證它是否安裝,我執行了以下命令:
dpkg -s apache2
結果:
dpkg-query: package 'apache2' is not installed and no information is available
每次我都必須在啟動xampp之前殺死apache2,這非常令人惱火。我使用的是 Ubuntu 12.04,
答案1
Apache2 是一個元包,您需要 apache2 的特定“worker”(mpm 安裝在我的上),然後在必要時提供 apache2 依賴項。
dpkg -l|grep apache
可能會找到您想要找到的東西。
您始終可以停止它的啟動,而不是完全刪除它。