摘要:
关闭防火墙systemctl stop firewalldsystemctl disable firewalld关闭selinuxsetenforce 0s/SELINUX=enforcing/SELINUX=disabled/g" /etc/sysconfig/selinux关闭swapswapo 阅读全文
摘要:
#!/usr/bin/env python #!coding = utf-8 import os vstip = 0 vstime = 0 iplt = {} fl = open("/var/log/nginx/access.log-20190813","r") aclogs=fl.readlines() fl.close() for aclog in aclogs: ipa=aclog... 阅读全文
摘要:
1、管理节点配置增加主机解析vi /etc/hosts192.168.2.121 master192.168.2.122 node1192.168.2.123 node2 停止防火墙systemctl stop firewalldsystemctl disable firewalld 配置yum源c 阅读全文
摘要:
编制脚本并给予执行权限,增加服务脚本vi /usr/lib/systemd/system/my.service [Unit]Description=this is my self start serviceAfter=network.target remote-fs.target nss-looku 阅读全文
摘要:
master配置: 安装应用yum install etcd docker kubernetes flannel -y关闭防火墙systemctl stop firewalld.service关闭selinuxsetenforce 0 vim /etc/etcd/etcd.confETCD_NAME 阅读全文
摘要:
配置jenkins安装下载源wget -O /etc/yum.repos.d/jenkins.repo https://pkg.jenkins.io/redhat-stable/jenkins.reporpm --import https://pkg.jenkins.io/redhat-stable 阅读全文
摘要:
文件存储服务器配置: 安装NFSyum install -y rpcbind nfs-utils创建共享目录mkdir /root/sharefile修改目录权限chmod 0755 -R sharefile修改NFS配置文件vi /etc/exports /root/sharefile/ 192. 阅读全文
摘要:
修改rsync配置文件vi /etc/rsyncd.conf uid = nobodygid = nobodyuse chroot = yesmax connections = 4pid file = /var/run/rsyncd.pidlog file = /var/log/rsyncexclu 阅读全文
摘要:
pyevn安装依赖库安装#yum install zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel readline-devel tk-devel gdbm-devel libpcap-devel xz-develuser 阅读全文
摘要:
修改系统日志时间格式vi /etc/rsyslog.conf$template CustomFormat,"%$NOW% %TIMESTAMP:8:15% %HOSTNAME% %syslogtag% %msg%\n"$ActionFileDefaultTemplate CustomFormat 将 阅读全文