ubuntu下apache服务的启动和重启

1、启动apache服务
sudo /etc/init.d/apache2 start
service apache2 start

2、重启apache服务
sudo /etc/init.d/apache2 restart
service apache2 restart

3、停止apache服务
sudo /etc/init.d/apache2 stop
service apache2 stop