1、编写脚本selinux.sh,实现开启或禁用SELinux功能#!/bin/bash[$#-ne1]&&echo"Usage:bash$0<off|on>"&&exit10if["$1"="on"];thensed-is/SELINUX=disabled/SELINUX=enforcing//etc/selinux/config[$?-eq0]&am
分类:
其他好文 时间:
2020-03-03 17:49:20
阅读次数:
104
初始化系统的基本操作 永久关闭selinux selinux提高系统安全性,但会造成很多麻烦,一般关闭 [root@localhost ~]# vim /etc/selinux/config 将SELINUX=enforcing改为SELINUX=disabled,保存后退出,重启生效 [root@ ...
分类:
系统相关 时间:
2020-03-03 14:57:08
阅读次数:
81
最近在捣鼓ng,发现每次更新配置文件后,就会502 nginx -s reload 解决办法: 1:永久关闭selinux [root@localhost ~]# vim /etc/sysconfig/selinux SELINUX=enforcing 改为 SELINUX=disabled 2:我 ...
分类:
其他好文 时间:
2020-03-03 14:39:44
阅读次数:
116
[Solution] Update firewall policy 1) Disabled docker rules of iptables docker will create rules of iptables automatically. # vim /etc/docker/daemon.js ...
分类:
其他好文 时间:
2020-02-27 18:57:17
阅读次数:
113
disabled 属性规定应该禁用 input 元素,被禁用的 input 元素,不可编辑,不可复制,不可选择,不能接收焦点,后台也不会接收到传值。设置后文字的颜色会变成灰色。disabled 属性无法与 <input type="hidden"> 一起使用。 示例:<input type="tex ...
分类:
其他好文 时间:
2020-02-25 17:50:18
阅读次数:
58
[root@localhost ~]# getenforce getenforce查看selinux的状态 状态:开启(Enforcing),关闭(Permissive) [root@localhost ~]#vim /etc/selinux/conf SELINUX=enforcing#此项定义s ...
分类:
系统相关 时间:
2020-02-25 11:20:15
阅读次数:
143
1 /*菜单树下拉,禁止选择当前项及其子项,以防止死循环*/ 2 /*item表示递归树,compID表示比对的需要禁止选择的项ID*/ 3 // 实例:编辑情况下,禁止选择当前节点及其子节点 4 export function diGuiTreeEdit(item, compID) { 5 con ...
分类:
其他好文 时间:
2020-02-24 10:00:38
阅读次数:
62
PHP Warning: putenv() has been disabled for security reasons in phar://C:/ProgramData/ComposerSetup/bin/composer.phar/vendor/composer/xdebug-handler/s ...
分类:
其他好文 时间:
2020-02-24 00:43:34
阅读次数:
141
[toc] 1、设置静态ip和DNS 该教程使用虚拟机进行安装,安装前设置虚拟机静态ip和DNS。教程: "虚拟机安装centos7教程" 2、关闭防火墙 3、设置主机名 4、关闭selinux 查看selinux状态。enforceing代表开启,permissive代表警告,disabled代表 ...
分类:
其他好文 时间:
2020-02-22 00:05:25
阅读次数:
111
安装yum install rsync 客户端和服务端一下操作1、关闭SELINUXvi /etc/selinux/config #编辑防火墙配置文件#SELINUX=enforcing #注释掉#SELINUXTYPE=targeted #注释掉SELINUX=disabled #增加 seten ...
分类:
其他好文 时间:
2020-02-20 16:45:26
阅读次数:
76