安装软件

  1. yum install -y unzip curl wget bash-completion bzip2

设置Selinux

vi /etc/selinux/config    

# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
#     enforcing - SELinux security policy is enforced.
#     permissive - SELinux prints warnings instead of enforcing.
#     disabled - No SELinux policy is loaded.
SELINUX=permissive            ##修改
# SELINUXTYPE= can take one of three values:
#     targeted - Targeted processes are protected,
#     minimum - Modification of targeted policy. Only selected processes are protected.
#     mls - Multi Level Security protection.
SELINUXTYPE=targeted

安装httpd并设置

yum install httpd.x86_64 httpd-devel.x86_64 -y

image.png