会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
Tigergao's Notes Record💻
NoBug💻
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
17
18
19
20
21
22
23
24
25
···
27
下一页
2020年12月25日
搭建sublime.txt环境结合使用python
摘要: { "cmd": ["python3", "-u", "$file"] }
阅读全文
posted @ 2020-12-25 22:21 tigergaonotes
阅读(76)
评论(0)
推荐(0)
2020年12月24日
rsync.sh
摘要: #!/bin/bash file1=`du -sm /var/www/vhosts/|awk '{print $1}'` ps=`ps -C rsync --no-header|wc -l` if [ "$file" = "11517" ];then echo "files downloaded!"
阅读全文
posted @ 2020-12-24 22:11 tigergaonotes
阅读(108)
评论(0)
推荐(0)
python脚本
摘要: #!/usr/bin/python #coding = utf-8 import os files = os.listdir('/opt') for file in files: print file
阅读全文
posted @ 2020-12-24 22:09 tigergaonotes
阅读(64)
评论(0)
推荐(0)
expect.sh
摘要: #!/usr/bin/expect spawn /usr/bin/ssh root@192.168.43.43 -p 22 expect "password:" send "tigergao\r" expect efo interact
阅读全文
posted @ 2020-12-24 22:08 tigergaonotes
阅读(61)
评论(0)
推荐(0)
ES_AutoCheck.sh
摘要: #!/bin/bash #@es_check #@date 2019/11/26 #@auth tigergao status=`curl -s GET "http://172.16.71.100:10290/_cat/health?" | awk '{print $4}'` if [ $statu
阅读全文
posted @ 2020-12-24 22:07 tigergaonotes
阅读(80)
评论(0)
推荐(0)
a-b转换A-B
摘要:
阅读全文
posted @ 2020-12-24 22:05 tigergaonotes
阅读(124)
评论(0)
推荐(0)
2020年12月22日
db2日志模式、备份归档、恢复解析
摘要: DB2的日志分为两种模式,日志循环与归档日志,也就是非归档和归档模式。下面就具体介绍一下这两种方式以及和备份归档设置的关系。 一、日志循环 这是默认方式,也就是非归档模式,这种模式只支持(backup offline)脱机备份,在备份过程中需要DB2停止服务。 在DB2中查看数据库设置,如发现如下信
阅读全文
posted @ 2020-12-22 22:29 tigergaonotes
阅读(2111)
评论(0)
推荐(0)
shell脚本中if的“-e,-d,-f”
摘要: -e filename 如果 filename存在,则为真 -d filename 如果 filename为目录,则为真 -f filename 如果 filename为常规文件,则为真 -L filename 如果 filename为符号链接,则为真 -r filename 如果 filename
阅读全文
posted @ 2020-12-22 22:14 tigergaonotes
阅读(371)
评论(0)
推荐(0)
shell循环ping ip的写法
摘要: #!/bin/bash for i in `seq 1 20` do if ping -w 2 -c 1 192.168.43.$i | grep "100%" > /dev/null;then echo "192.168.43.$i is not reachable" else echo "192
阅读全文
posted @ 2020-12-22 22:12 tigergaonotes
阅读(1982)
评论(0)
推荐(0)
liunx查看哪个ip连接最多
摘要: [root@centos6 /]# netstat -na|grep ESTABLISHED|awk '{print $5}'|awk -F: '{print $1}'|sort|uniq -c|sort -r 6 192.168.43.1
阅读全文
posted @ 2020-12-22 22:11 tigergaonotes
阅读(327)
评论(0)
推荐(0)
上一页
1
···
17
18
19
20
21
22
23
24
25
···
27
下一页
公告