apache2ctl
命令手册The CLI tool to administrate HTTP web server Apache. This command comes with Debian based OSes, for RHEL based ones see
httpd
.
sudo apache2ctl start
sudo apache2ctl stop
sudo apache2ctl restart
sudo apache2ctl -t
sudo apache2ctl -M