Server端 第一步:启动Cobbler服务 第二步:进行Cobbler错误检查,执行cobbler check命令 第三步:进行配置同步,执行cobbler sync命令 第四步:复制相关启动文件到TFTP目录中 第五步:启动DHCP服务,提供地址分配 第六步:DHCP服务分配IP地址 第七步: ...
分类:
其他好文 时间:
2020-03-04 14:51:54
阅读次数:
64
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
补:在客户端登录时,lftp无法列出资源,可能是vsftpd服务没有打开或者火墙没有关闭selinux功能selinux关闭状态:selinux状态安全上下文seboolsetrouble
分类:
系统相关 时间:
2020-03-01 00:45:49
阅读次数:
79
1、病毒现象 对外DOS攻击 2、病毒处置 删除:/tmp/gates.lod删除:/tmp/moni.lod删除:/etc/init.d/DbSecuritySpt删除:/etc/init.d/selinux 删除被篡改的命令文件(篡改大小后均为1.2M):rm -f /usr/sbin/lsof ...
分类:
其他好文 时间:
2020-02-28 18:39:33
阅读次数:
73
运行环境 系统版本:CentOS Linux release 7.3.1611 (Core) 软件版本:Gitlab ce 11.10.1 硬件要求:最低2核4GB,建议4核8GB 安装过程 1、安装依赖 2、基础配置 3、添加YUM Gitlab源 我们使用清华大学提供的YUM源,以提高下载速度。 ...
分类:
其他好文 时间:
2020-02-28 15:42:45
阅读次数:
56
1.安装Docker准备两台虚拟机,IP为10.10.11.10和10.10.11.20安装docker-engine 和 docker-engine-selinux关闭防火墙 1.1 配置yum源 1)配置第三方yum源(真机操作)]# mkdir /var/ftp/docker]# mv doc ...
分类:
其他好文 时间:
2020-02-26 20:36:15
阅读次数:
55
公众号登录地址:https://mp.weixin.qq.com/debug/cgi-bin/sandboxinfo?action=showinfo&t=sandbox/index 微信接口调试地址:https://mp.weixin.qq.com/debug/cgi-bin/apiinfo 公众号 ...
分类:
微信 时间:
2020-02-25 14:36:54
阅读次数:
146
[root@localhost ~]# getenforce getenforce查看selinux的状态 状态:开启(Enforcing),关闭(Permissive) [root@localhost ~]#vim /etc/selinux/conf SELINUX=enforcing#此项定义s ...
分类:
系统相关 时间:
2020-02-25 11:20:15
阅读次数:
143