上一页 1 2 3 4 5 6 7 8 ··· 12 下一页

cmd下调用xshell登录linux服务器

摘要: "C:\Program Files (x86)\Ucenter\Xshell\Xshell.exe" -url ssh://root:123456@192.168.1.16:22 阅读全文
posted @ 2020-08-31 15:41 狄成 阅读(677) 评论(0) 推荐(1) 编辑

centos清除历史命令

摘要: 1、rm -f /root/.bash_profile 历史命令记录在此文件 2、history -c 清除缓存 会话退出后重新连接输入history可以看到历史命令清空了。两条命令的顺序不能乱 阅读全文
posted @ 2020-07-08 16:25 狄成 阅读(2511) 评论(0) 推荐(0) 编辑

yum错误Cannot retrieve metalink for repository: epel/x86_6

摘要: yum安装epel-release后yum安装软件报错 Cannot retrieve metalink for repository: epel/x86_64. Please verify its path and try again 原因是epel仓库默认使用https 解决方法: 改epel文 阅读全文
posted @ 2020-06-19 20:14 狄成 阅读(203) 评论(0) 推荐(0) 编辑

ansible-playbook

摘要: 模块帮助文档ansible-doc yum ansible命令 ansible 执行主机 -m 模块 -a '命令' handlers和tag用法 ansible-playbook -C yum.yml 检查yml文件是否有语法错误 ansible-playbook --tags=cp yum.ym 阅读全文
posted @ 2020-06-18 16:40 狄成 阅读(184) 评论(0) 推荐(0) 编辑

jdk升级到1.8

摘要: 1、下载源码包 2、解压源码包到目录 3、编辑/etc/profile文件配置环境变量 export JAVA_HOME=/usr/local/jdk1.8.0_241export PATH=$JAVA_HOME/bin:$PATHexport CLASSPATH=.:$JAVA_HOME/lib/ 阅读全文
posted @ 2020-06-16 10:57 狄成 阅读(895) 评论(0) 推荐(0) 编辑

shell瞎记录

摘要: cat access_log | awk '{print $1}' | sort |uniq -c|head -n 10 禁止登录失败2次以上的ip访问 #!/bin/bashcat /var/log/secure |grep "Failed password" |awk '{print $(NF- 阅读全文
posted @ 2020-06-12 14:05 狄成 阅读(98) 评论(0) 推荐(0) 编辑

shell 循环

摘要: while循环,条件为真时执行 i=0while [ $i -lt 10 ]do echo $i let i++done until循环,条件为假时执行 i=0until [ ! $i -lt 10 ]do echo $i let i++done case循环 echo "php|apache|my 阅读全文
posted @ 2020-06-10 16:55 狄成 阅读(152) 评论(0) 推荐(0) 编辑

终端执行for循环

摘要: i=0;for j in `df |grep dc|awk '{print $2}'`; do i=`expr $i + $j`; done;echo $i 阅读全文
posted @ 2020-06-10 15:46 狄成 阅读(387) 评论(0) 推荐(0) 编辑

linux新增swap交换空间

摘要: https://www.cnblogs.com/surplus/p/12170475.html 阅读全文
posted @ 2020-06-05 18:41 狄成 阅读(248) 评论(0) 推荐(0) 编辑

openssl生成ssl证书

摘要: https://baijiahao.baidu.com/s?id=1649462735958571118&wfr=spider&for=pc 阅读全文
posted @ 2020-06-05 18:29 狄成 阅读(152) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 ··· 12 下一页