摘要:
centos7 ==docker配置相关 #备份yum源 mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup #下载yum源 curl -o /etc/yum.repos.d/CentOS-Bas 阅读全文
posted @ 2022-11-01 11:09
yeahzxw
阅读(34)
评论(0)
推荐(0)
摘要:
1 计算百分比:concat(round((sum1 / sum2 * 100), 2), '%' 2 3 select if (bfb.bfb<='90.00%','92.42%',bfb.bfb) from ( SELECT concat( TRUNCATE ( t1.cnt / ( CASE 阅读全文
posted @ 2022-11-01 11:06
yeahzxw
阅读(29)
评论(0)
推荐(0)
摘要:
1 #!/bin/bash 2 echo ' ' 3 echo '注:非以下4个IP外(输入000查看其他IP),需输入俩次,首次登陆IP时弹出yesORno,选择YES即可' 4 # cc.txt中可以加入常用登陆IP,无需全部都加,也可以将IP加到脚本里; 5 # bb.txt为登陆后的常用路径 阅读全文
posted @ 2022-11-01 11:02
yeahzxw
阅读(43)
评论(0)
推荐(0)
摘要:
1 #!/bin/bash 2 3 #NO.1 4 MONTH=`date +%Y%m` #当前月份 5 MONTHDAY=`date +%Y%m%d` #当天 6 DATEONE=`date -d "1 day ago" +"%Y%m%d"` #当前一天前一天 7 NEWDIR=/home/app 阅读全文
posted @ 2022-11-01 11:02
yeahzxw
阅读(37)
评论(0)
推荐(0)
摘要:
1 [appop@VM-16-13-centos scripts]# cat riduizhang.sh 2 #!/bin/bash 3 ################################################# 4 #yeahzxw 5 #20220620 6 #月对账文件 阅读全文
posted @ 2022-11-01 10:59
yeahzxw
阅读(27)
评论(0)
推荐(0)
摘要:
1 Const HKEY_CURRENT_USER = &H80000001 2 3 4 5 strComputer = "." 6 7 8 9 Set objReg = GetObject("winmgmts:" &"{impersonationLevel=impersonate}\\"&strC 阅读全文
posted @ 2022-11-01 10:58
yeahzxw
阅读(46)
评论(0)
推荐(0)
摘要:
1 #!/bin/bash 2 ################ 3 #name:yeahzxw # 4 #date:20220301 # 5 ################ 6 7 MONTH=`date +%Y%m` #当前月份 8 MONTHDAY=`date +%Y%m%d` #当天 9 阅读全文
posted @ 2022-11-01 10:56
yeahzxw
阅读(31)
评论(0)
推荐(0)
摘要:
1 [root@VM-16-13-centos learn]# sh fun02.sh www.baidu.com 2 www.baidu.com url [ OK ] 3 4 5 [root@VM-16-13-centos learn]# cat fun02.sh 6 #!/bin/bash 7 阅读全文
posted @ 2022-11-01 10:51
yeahzxw
阅读(40)
评论(0)
推荐(0)
摘要:
ssh_key免密钥登陆 ssh-keygen -t dsa -P '' -f ~/.ssh/id_dsa 发送密钥 ssh-copy-id -i .ssh/id_dsa.pub "-p 22 root@192.168.1.50" 登录即执行这里面的脚本(注意要指定不等于root) /etc/pro 阅读全文
posted @ 2022-11-01 10:47
yeahzxw
阅读(189)
评论(0)
推荐(0)
摘要:
自动缩进,自动补全括号,显示行号等 vim /etc/vimrc set nu if has( "autocmd" ) filetype plugin indent on autocmd FileType make set tabstop=8 shiftwidth=8 softtabstop=0 n 阅读全文
posted @ 2022-11-01 10:47
yeahzxw
阅读(37)
评论(0)
推荐(0)

浙公网安备 33010602011771号