网站服务程序

Apache服务介绍:part1_服务程序


Apache服务介绍:part1_linux_02



1.Apache 服务对应的软件包名称:httpd

2.安装方式:yum/dnf install httpd -y 

3.启动httpd:systemctl start httpd

4.设置为开机启动:systemctl enable httpd 

配置服务文件参数

Apache服务介绍:part1_服务程序_03


Apache服务介绍:part1_开机启动_04

1.主配置文件:保存的是最重要的服务参数,一般保存到/etc目录中,名字为 服务名称.conf,例如httpd的主配置文件路径:/etc/httpd/conf/httpd.conf.

SElinux安全子系统

1.​SElinux三种配置模式:Apache服务介绍:part1_服务程序_05

Apache服务介绍:part1_开机启动_06



Apache服务介绍:part1_apache_07


2.semanage命令 

Apache服务介绍:part1_开机启动_08


实例

Apache服务介绍:part1_开机启动_09