試圖停止的Apache2服務,但得到PID錯誤:不能停止/重新啓動的Apache2服務
#service apache2 stop
[FAIL] Stopping web server: apache2 failed!
[....] There are processes named 'apache2' running which do not match your pid file which are left untouched in the name of safety, Plea[warnview the situation by hand. ... (warning).
試圖殺死,這些過程:
#kill -9 $(ps aux | grep apache2 | awk '{print $2}')
,但他們再次獲得重新催生:
#ps aux | grep apache2
root 19279 0.0 0.0 4080 348 ? Ss 05:10 0:00 runsv apache2
root 19280 0.0 0.0 4316 648 ? S 05:10 0:00 /bin/sh /usr/sbin/apache2ctl -D FOREGROUND
root 19282 0.0 0.0 91344 5424 ? S 05:10 0:00 /usr/sbin/apache2 -D FOREGROUND
www-data 19284 0.0 0.0 380500 2812 ? Sl 05:10 0:00 /usr/sbin/apache2 -D FOREGROUND
www-data 19285 0.0 0.0 380500 2812 ? Sl 05:10 0:00 /usr/sbin/apache2 -D FOREGROUND
儘管你的進程正在運行,我無法連接到服務器上的端口80 /var/log/apache2/error.log.1有沒有新郵件磨片我做殺戮-9。 在我嘗試重新啓動所有工作之前,完美無缺。 運行在Debian:Linux的阿達拉3.2.0-4-AMD64#1 SMP的Debian 3.2.54-2 x86_64的GNU/Linux的
UPD: 也試過apache2ctl:
#/usr/sbin/apache2ctl -k stop
AH00526: Syntax error on line 76 of /etc/apache2/apache2.conf:
PidFile takes one argument, A file for logging the server process ID
Action '-k stop' failed.
The Apache error log may have more information.
但沒有PID文件在/ var/run/apache2
我是新來的linux,看起來它必須做一些啓動腳本,但無法弄清楚究竟是什麼。
殺不工作(進程再次獲得重新生成), apache2ctl -k stop需要pid文件,但缺少 –