[email protected] ~ / systemctl disable now firewalld 注: disable / 禁止开机自启动。 now / 立即生效,添加该参数会...">

当前位置:网站首页>PHP 开发环境搭建及数据库增删改查

PHP 开发环境搭建及数据库增删改查

2022-06-12 06:19:00 Cwillchris

实验环境:

centos7(192.168.98.66)

实验步骤:

1、LAMP环境搭建

关闭防火墙并禁止开机启动

[[email protected] ~]# systemctl disable --now firewalld

注: disable #禁止开机自启动。

--now #立即生效,添加该参数会立即停止

firewalld 防火墙服务。 等效于下面两条命令:

[[email protected] ~]# systemctl disable firewalld

[[email protected] ~]# systemctl stop firewalld

临时关闭selinux,防止后期影响我们环境中的权限配置

[[email protected] ~]# setenforce 0

永久关闭selinux

[[email protected] ~]# sed -i 's/SELINUX=enforcing/SELINUX=disabled/g' /etc/selinux/config

原网站

版权声明
本文为[Cwillchris]所创,转载请带上原文链接,感谢
https://blog.csdn.net/weixin_59679023/article/details/125029445