摘要: 何为Logrotate? Logrotate是一个实用的日志管理工具,旨在简化对系统上生成大量的日志文件进行管理。 Logrotate允许自动旋转压缩,删除和邮寄日志文件,从而节省宝贵的磁盘空间。 Logrotate可以设置为每天、每周、每月或当日志文件达到一定的大小时处理日志文件。还可以完全控制日 阅读全文
posted @ 2018-02-07 18:01 Oops!# 阅读(2432) 评论(0) 推荐(0) 编辑
摘要: NFS 就是 network file system 网络文件系统 在网络上共享文件 服务端 yum install -y nfs-utils rpcbind vim /etc/exports /mnt 192.168.1.105(rw,sync) # 192.168.1.* 可表示整个网段 /et 阅读全文
posted @ 2018-02-07 10:02 Oops!# 阅读(217) 评论(0) 推荐(0) 编辑
摘要: 执行格式 : networksetting.sh -i 192.168.*.* -g 192.168.*.1 -n 255.255.255.0 -I 192.168.*.* -G 192.168.*.1 -N 255.255.255.0 阅读全文
posted @ 2018-02-07 09:57 Oops!# 阅读(1270) 评论(0) 推荐(0) 编辑
摘要: ##############################Deploy go enviroment######################## echo "start deploy go enviroment" cd /usr/local tar -zxvf $PACKAGE_DIR/go1.8.4.linux-amd64.tar.gz exists_path=`cat /etc/pr... 阅读全文
posted @ 2018-02-07 09:49 Oops!# 阅读(507) 评论(0) 推荐(0) 编辑
摘要: ##############################Deploy nfs######################## echo "start deploy nfs-server" cat $basepath/package/exports > /etc/exports systemctl restart rpcbind systemctl enable rpcbind syst... 阅读全文
posted @ 2018-02-07 09:45 Oops!# 阅读(696) 评论(0) 推荐(0) 编辑
摘要: ##############################Deploy ansible client shell######################## echo "start deploy ansible client shell" ansible_DIR="/data/sh/" rm -rf /data/sh/* if [ ! -e $ansible_DIR ];then ... 阅读全文
posted @ 2018-02-07 09:42 Oops!# 阅读(330) 评论(0) 推荐(0) 编辑