#概述
@H_404_2@如果想在自己的服务器上挂自己的个人网站,如果是静态的页面的话,可能就会配置一个Web静态页面服务器。静态页面服务器有很多,用的比较多的就是 Apache
,最快的就要属 Nginx
。在这里给大家介绍一下 在CentOS 7
下面怎么配置启动 Apache 2.4
#安装 Apache 2.4
@H_404_2@在CentOS 7
上面安装 Apache 2.4
推荐使用 yum
安装。 既方便有快捷,使用如下命令: yum -y install httpd
#启动 Apache 2.4
@H_404_2@下面总结了一些启动 Apache
的命令:
systemctl start httpd.service
//启动apache
systemctl stop httpd.service
//停止apache
systemctl restart httpd.service
//重启apache
systemctl enable httpd.service
//设置apache开机启动
#更改Apache配置文件
@H_404_2@