Cockpit

Centos:

yum -y install cockpit
yum -y install cockpit-*          //install all modules
#yum install cockpit-docker (cockpit-storaged, cockpit-kubernetes,cockpit-ws)
systemctl start cockpit
systemctl enable cockpit (systemctl enable –now cockpit.socket)
systemctl stop firewalld

systemctl disable firewalld Continue reading “Cockpit”

fail2ban

yum -y install epel-release
yum -y install fail2ban

fail2ban 结构
/etc/fail2ban ## fail2ban 服务配置目录
/etc/fail2ban/action.d ## iptables 、mail 等动作文件目录
/etc/fail2ban/filter.d ## 条件匹配文件目录,过滤日志关键内容
/etc/fail2ban/jail.conf ## fail2ban 防护配置文件
/etc/fail2ban/fail2ban.conf ## fail2ban 配置文件,定义日志级别、日志、sock 文件位置等

这时客户端尝试登陆本机,故意输入五次密码,就会看到如下日志:
tail -1 /var/log/fail2ban.log

shell > cat /var/log/secure ## 系统登陆日志

VirtualBox centos7 extend HD

磁盘格式为vdi,则可直接在win终端中执行如下命令:
VBoxManage modifyhd “CentOS7-1511.vdi” –resize 20480(单位为M)
如果磁盘格式为vmdk,则需要先转换为vdi格式,执行如下命令:
VBoxManage clonehd “CentOS7-1511_Dev.vmdk” “CentOS7-1511.vdi” –format vdi
VBoxManage modifyhd “CentOS7-1511.vdi” –resize 20480(单位为M)
可以在克隆的目录下查看文件是否克隆成功。 Continue reading “VirtualBox centos7 extend HD”

CentOS 7 x86_64 EPEL安装源

yum install epel-release

[root@BWH conf.d]# cd /etc/yum.repos.d/
[root@BWH conf.d]# ls -l
-rw-r–r– 1 root root 1664 May 17 21:53 CentOS-Base.repo
-rw-r–r– 1 root root 1309 May 17 21:53 CentOS-CR.repo
-rw-r–r– 1 root root 649 May 17 21:53 CentOS-Debuginfo.repo
-rw-r–r– 1 root root 630 May 17 21:53 CentOS-Media.repo
-rw-r–r– 1 root root 1331 May 17 21:53 CentOS-Sources.repo
-rw-r–r– 1 root root 4768 May 17 21:53 CentOS-Vault.repo
-rw-r–r– 1 root root 314 May 17 21:53 CentOS-fasttrack.repo
-rw-r–r– 1 root root 1050 Oct 3 2017 epel-testing.repo
-rw-r–r– 1 root root 951 Oct 3 2017 epel.repo Continue reading “CentOS 7 x86_64 EPEL安装源”