常用命令

一、Apache

启动 Apache

sudo apachectl start

关闭 Apache

sudo apachectl stop

重启 Apache

sudo apachectl restart

查看 Apache 版本

httpd -v