基本的操作方法:
本文假设你的 apahce 安装目录为/usr/local/apache2,这些方法适合任何情况
apahce 启动命令:
推荐/usr/local/apache2/bin/apachectl start apaceh 启动
apache 停止命令
/usr/local/apache2/bin/apachectl stop   停止
apache 重新启动命令:
/usr/local/apache2/bin/apachectl restart 重启
要在重启 Apache 站群服务器时不中断当前的连线,则应执行:
/usr/local/sbin/apachectl graceful
如果 apache 安装成为 linux 的服务的话,可以用以下命令操作:
service httpd start 启动
service httpd restart 重新启动
service httpd stop 停止服务
 
Linux 系统为 Ubuntu
一、 Start Apache 2 Server /启动 apache 服务
# /etc/init.d/apache2 start
or
$ sudo /etc/init.d/apache2 start
二、 Restart Apache 2 Server /重启 apache 服务
# /etc/init.d/apache2 restart
or
$ sudo /etc/init.d/apache2 restart
三、 Stop Apache 2 Server /停止 apache 服务
# /etc/init.d/apache2 stop
 
 
原博客网站连线:http://xiaofengjava.iteye.com/blog/2316380