环境 centos 7 安装依赖包 yum install -y gcc gcc-c++ glibc glibc-devel pcre pcre-devel zlib zlib-devel openssl openssl-devel \unzip psmisc bash-completion lib ...
分类:
系统相关 时间:
2021-07-01 17:29:41
阅读次数:
0
环境为最小化安装初始化环境 yum install -y vim net-tools wget tree lrzsz关闭防火墙systemctl stop firewalld.servicesystemctl disable firewalld.service关闭selinuxsed -i 's/S ...
分类:
数据库 时间:
2021-06-29 15:18:17
阅读次数:
0
#进入到网卡配置文件所在的目录[root@localhost /]# cd /etc/sysconfig/network-scripts/#复制ens33的网卡作为模板。[root@localhost network-scripts]# cp ifcfg-ens33 ifcfg-ens37#修改模板 ...
分类:
其他好文 时间:
2021-06-13 10:42:58
阅读次数:
0
一、防火墙 systemctl status firewalld.service # 查看防火墙状态 systemctl stop firewalld.service # 关闭防火墙 systemctl disable firewalld.service # 禁用防火墙 二、Selinux vi / ...
分类:
系统相关 时间:
2021-06-11 18:01:38
阅读次数:
0
文件核心 属性知识 35111123 -rwx-w x. 1 root root 188 May 12 16:20 oldboy.txt 第一列 索引节点(数字) 第二列 首字符代表文件类型 中间9个字符,文件权限 .和selinux(高级安全组建)相关符号 第三列 硬链接数 第四列 文件对应的用户 ...
分类:
其他好文 时间:
2021-06-10 17:46:25
阅读次数:
0
当你将自定义文件添加到已经由SELinux策略管理的目录中时,如果自定义文件没有适当的SELinux上下文,那么将不会得到预期的结果。restorerecon命令的意思是恢复SELinux上下文。restorecon命令将文件和目录的SELinux安全上下文重置为默认值。这只会重置SELinux上下 ...
分类:
其他好文 时间:
2021-06-08 23:45:03
阅读次数:
0
IP地址的设置 在配置网络之前我们先要知道centos的网卡名称是什么,centos7不再使用 ifconfig 命令,可通过命令 ip addr 查看,如图,网卡名为ens32,是没有IP地址的 动态IP 修改网卡配置文件 vi /etc/sysconfig/network-scripts/ifc ...
分类:
其他好文 时间:
2021-06-05 17:52:05
阅读次数:
0
环境介绍 RHEL8 nginx 192.168.92.129 RHEL8 myxql 192.168.92.130 RHEL8 php 192.168.92.131 nginx配置 //关闭服务器和selinux [root@nginx ~]# systemctl disable --now fi ...
分类:
其他好文 时间:
2021-06-02 19:38:14
阅读次数:
0
环境: 应用 IP 操作系统 nginx 192.168.23.148 centos8 mysql 192.168.23.142 centos8 php 192.168.23.143 centos8 准备工作 //关闭防火墙与selinux nginx [root@nginx ]# systemct ...
分类:
其他好文 时间:
2021-06-02 17:29:58
阅读次数:
0
某些场景下并不需要打开SELinux,也就是SELinux设为Permissive,但如果程序设计不符合SELinux sepolicy, 日志中会频繁打印 如下类似avc: denied的log [ 24.018396] type=1400 audit(1622165470.867:666): a ...
分类:
移动开发 时间:
2021-06-02 14:11:59
阅读次数:
0