两种方式停用Apache
停用方式一
通过查找Apache进程,然后强制杀掉Apache进程
ps -ef | grep Apache
kill -9 进程号
停用 方式二
直接通过Apache命令停用
/home/app/app_web/Apache/Apache2/bin/apachectl -f /home/app/app_web/Apache/Apache2/conf/httpd.conf -k stop
启用Apache
/home/app/app_web/Apache/Apache2/bin/apachectl -f /home/app/app_web/Apache/Apache2/conf/httpd.conf -k start