PS:今天突然发现我的ubuntu装了Apache2,占用了80端口。好奇怪,我貌似没有装啊。。。。
一、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
OR
sudo /etc/init.d/apache2 stop
四、安装和配置文件目录:在/etc/apache2
下
方法其实很简单,有需要的同学可以备案一下。