实验环境:
centos7(192.168.98.66)
实验步骤:
1、LAMP环境搭建
关闭防火墙并禁止开机启动
[root@localhost ~]# systemctl disable --now firewalld
注: disable #禁止开机自启动。
--now #立即生效,添加该参数会立即停止
firewalld 防火墙服务。 等效于下面两条命令:
[root@localhost ~]# systemctl disable firewalld
[root@localhost ~]# systemctl stop firewalld
临时关闭selinux,防止后期影响我们环境中的权限配置
[root@localhost ~]# setenforce 0