会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
tengfei520
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
3
4
5
6
7
8
9
10
下一页
2018年1月10日
depth深度
摘要: du、tree、find
阅读全文
posted @ 2018-01-10 15:16 tengfei520
阅读(140)
评论(0)
推荐(0)
2018年1月9日
kvm.install
摘要: virtio.iso文件可以留言找我要取,也可以去官网进行下载。
阅读全文
posted @ 2018-01-09 12:29 tengfei520
阅读(192)
评论(0)
推荐(0)
2018年1月2日
repo搭建
摘要: [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
阅读(306)
评论(0)
推荐(0)
2017年12月29日
apache故障处理
摘要: 注意:修改虚拟机主机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
阅读(787)
评论(0)
推荐(0)
2017年12月1日
lograted日志切割脚本
摘要: 注意: 1、内容时间顺序很重要。 2、copytruncate 参数在置空的时候只是把文件变成空文件,文件大小不会立即改变,再拷贝文件的时候会把空白文件也拷贝,压缩的时候也会把空白文件压缩。我一个旧日志400G,在切割压缩的时候就把本机的IO直接打满1个小时。(个人感觉,有点鸡肋额,不如直接写脚本进
阅读全文
posted @ 2017-12-01 09:58 tengfei520
阅读(449)
评论(0)
推荐(0)
2017年11月30日
mysql备份脚本
摘要: #!/bin/bash ############功能说明部分####################################### #脚本功能是按照每天对mysql数据库中所有表进行备份,备份文件为:数据库名-表名.sql #实例:backup/2016-08-25/uic-test.sql #测试数据还原实例:mysql -uroot -pxxx uic ${backfile}.gz...
阅读全文
posted @ 2017-11-30 14:09 tengfei520
阅读(2797)
评论(0)
推荐(0)
2017年11月16日
并行rsync
摘要: #!/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
阅读(582)
评论(0)
推荐(0)
并行cmd
摘要: #!/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
阅读(410)
评论(0)
推荐(0)
mount
摘要: #!/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
阅读(274)
评论(0)
推荐(0)
2017年9月20日
ftp 只需上传禁止下载
摘要: 一、首先在ftp / 主目录下给所有用户授予读写权限 二、给子目录授予写入权限,不允许读取
阅读全文
posted @ 2017-09-20 19:36 tengfei520
阅读(2098)
评论(0)
推荐(0)
上一页
1
···
3
4
5
6
7
8
9
10
下一页
公告