Apache服务器配置和管理(Linux版本)
发布时间
阅读量:
阅读量
一、安装、启动与停止Apache服务
1、安装Apache服务软件
yum install -y httpd
2、启动Apache服务
systemctl start httpd
systemctl的其他功能选项
start:用于初始化运行
stop:执行终止操作
restart:进行重新启动
enable:配置系统启动时自动激活
disable:取消服务的开机启动配置,将其从启动列表中删除
status:查询当前服务的运行状况
3、关闭selinux
#setenforce 0
4、关闭防火墙
systemctl stop firewalld
5、测试
(1)部署火狐浏览器
#yum install -y firefox
(2)访问指定网址
#firefox http://127.0.0.1
若显示如下界面(Apache默认主页),则表明 httpd 服务已成功运行

全部评论 (0)
还没有任何评论哟~
