linux下Apache的简单操作

来源:互联网 发布:天津淘宝托管 编辑:程序博客网 时间:2024/05/18 01:12

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

方法其实很简单,有需要的同学可以备案一下。

0 0
原创粉丝点击