上一页 1 ··· 3 4 5 6 7 8 9 10 下一页
摘要: du、tree、find 阅读全文
posted @ 2018-01-10 15:16 tengfei520 阅读(107) 评论(0) 推荐(0) 编辑
摘要: virtio.iso文件可以留言找我要取,也可以去官网进行下载。 阅读全文
posted @ 2018-01-09 12:29 tengfei520 阅读(182) 评论(0) 推荐(0) 编辑
摘要: [root@op-yum01]# cat /home/work/yumdata/rsync-reposync.sh #!/bin/bash #Purpose: Sync centos7 repos via rsync behind proxy #Makesure rsync port 873 is allowed outbound on the squid proxy #export RSY... 阅读全文
posted @ 2018-01-02 15:38 tengfei520 阅读(290) 评论(0) 推荐(0) 编辑
摘要: 注意:修改虚拟机主机html路径不需要修改主配置这一行。 1、Permission denied: [client 10.10.2.17:15222] AH00035: access to / denied (filesystem path '/root/tengfei') because sear 阅读全文
posted @ 2017-12-29 16:59 tengfei520 阅读(673) 评论(0) 推荐(0) 编辑
摘要: 注意: 1、内容时间顺序很重要。 2、copytruncate 参数在置空的时候只是把文件变成空文件,文件大小不会立即改变,再拷贝文件的时候会把空白文件也拷贝,压缩的时候也会把空白文件压缩。我一个旧日志400G,在切割压缩的时候就把本机的IO直接打满1个小时。(个人感觉,有点鸡肋额,不如直接写脚本进 阅读全文
posted @ 2017-12-01 09:58 tengfei520 阅读(435) 评论(0) 推荐(0) 编辑
摘要: #!/bin/bash ############功能说明部分####################################### #脚本功能是按照每天对mysql数据库中所有表进行备份,备份文件为:数据库名-表名.sql #实例:backup/2016-08-25/uic-test.sql #测试数据还原实例:mysql -uroot -pxxx uic ${backfile}.gz... 阅读全文
posted @ 2017-11-30 14:09 tengfei520 阅读(2774) 评论(0) 推荐(0) 编辑
摘要: #!/bin/bash if [ $# -le 2 ]; then echo -e "usage : \n\t$0 hostList src_file dst_path" echo -e "example: \n\t$0 hostList file.txt /home/work/opdir" exit 1 fi # concurrent number by defa... 阅读全文
posted @ 2017-11-16 13:25 tengfei520 阅读(572) 评论(0) 推荐(0) 编辑
摘要: #!/bin/bash if [ $# -le 1 ]; then echo -e "usage : \n\t$0 hostList REMOTE_CMD" echo -e "example: \n\t$0 hostList \"docker images | grep hive\"" exit 1 fi # concurrent number by default... 阅读全文
posted @ 2017-11-16 13:24 tengfei520 阅读(386) 评论(0) 推荐(0) 编辑
摘要: #!/bin/bash if [ $# -le 1 ]; then echo -e "usage : \n\t$0 sdx mount_point" echo -e "example: \n\t$0 sdb /data1" exit 1 fi disk=/dev/$1 homedisk_num=$(df -h | awk '{print $NF}' | grep ... 阅读全文
posted @ 2017-11-16 11:21 tengfei520 阅读(260) 评论(0) 推荐(0) 编辑
摘要: 一、首先在ftp / 主目录下给所有用户授予读写权限 二、给子目录授予写入权限,不允许读取 阅读全文
posted @ 2017-09-20 19:36 tengfei520 阅读(1943) 评论(0) 推荐(0) 编辑
上一页 1 ··· 3 4 5 6 7 8 9 10 下一页