• 用法:/etc/init.d/apache2 {start | stop | graceful-stop | restart | reload | force-reload | start-htcacheclean | stop-htcacheclean | status} root @ computer:〜#sudo service apache2 stop

  • 停止Web服务器apache2

  • apache2 configtest失败,所以我们试图手动杀死它 . 这几乎肯定不是最理想的,所以请确保您的系统正常运行,因为'd expect now! ... waiting [ OK ] root@computer:~# sudo service apache2 restart apache2: Syntax error on line 237 of /etc/apache2/apache2.conf: Could not open configuration file /etc/apache2/sites-enabled/wordpress: No such file or directory Action ' configtest'失败了 . Apache错误日志可能包含更多信息 . ...失败!根@电脑:〜#

附: Wordpress在上述目录中 .