上一页 1 2 3 4 5 6 ··· 13 下一页
摘要: 关闭防火墙systemctl stop firewalldsystemctl disable firewalld关闭selinuxsetenforce 0s/SELINUX=enforcing/SELINUX=disabled/g" /etc/sysconfig/selinux关闭swapswapo 阅读全文
posted @ 2019-09-04 14:33 BicycleBoy 阅读(286) 评论(0) 推荐(0) 编辑
摘要: #!/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... 阅读全文
posted @ 2019-08-15 11:02 BicycleBoy 阅读(329) 评论(0) 推荐(0) 编辑
摘要: 1、管理节点配置增加主机解析vi /etc/hosts192.168.2.121 master192.168.2.122 node1192.168.2.123 node2 停止防火墙systemctl stop firewalldsystemctl disable firewalld 配置yum源c 阅读全文
posted @ 2019-08-08 22:40 BicycleBoy 阅读(720) 评论(0) 推荐(0) 编辑
摘要: 编制脚本并给予执行权限,增加服务脚本vi /usr/lib/systemd/system/my.service [Unit]Description=this is my self start serviceAfter=network.target remote-fs.target nss-looku 阅读全文
posted @ 2019-08-07 10:25 BicycleBoy 阅读(1115) 评论(0) 推荐(0) 编辑
摘要: master配置: 安装应用yum install etcd docker kubernetes flannel -y关闭防火墙systemctl stop firewalld.service关闭selinuxsetenforce 0 vim /etc/etcd/etcd.confETCD_NAME 阅读全文
posted @ 2019-08-02 14:28 BicycleBoy 阅读(439) 评论(0) 推荐(0) 编辑
摘要: 配置jenkins安装下载源wget -O /etc/yum.repos.d/jenkins.repo https://pkg.jenkins.io/redhat-stable/jenkins.reporpm --import https://pkg.jenkins.io/redhat-stable 阅读全文
posted @ 2019-08-02 08:38 BicycleBoy 阅读(103) 评论(0) 推荐(0) 编辑
摘要: 文件存储服务器配置: 安装NFSyum install -y rpcbind nfs-utils创建共享目录mkdir /root/sharefile修改目录权限chmod 0755 -R sharefile修改NFS配置文件vi /etc/exports /root/sharefile/ 192. 阅读全文
posted @ 2019-07-28 23:43 BicycleBoy 阅读(1919) 评论(0) 推荐(0) 编辑
摘要: 修改rsync配置文件vi /etc/rsyncd.conf uid = nobodygid = nobodyuse chroot = yesmax connections = 4pid file = /var/run/rsyncd.pidlog file = /var/log/rsyncexclu 阅读全文
posted @ 2019-07-28 15:39 BicycleBoy 阅读(229) 评论(0) 推荐(0) 编辑
摘要: pyevn安装依赖库安装#yum install zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel readline-devel tk-devel gdbm-devel libpcap-devel xz-develuser 阅读全文
posted @ 2019-07-23 13:18 BicycleBoy 阅读(147) 评论(0) 推荐(0) 编辑
摘要: 修改系统日志时间格式vi /etc/rsyslog.conf$template CustomFormat,"%$NOW% %TIMESTAMP:8:15% %HOSTNAME% %syslogtag% %msg%\n"$ActionFileDefaultTemplate CustomFormat 将 阅读全文
posted @ 2019-07-16 00:07 BicycleBoy 阅读(374) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 13 下一页