摘要: https://github.com/hhyo/Archery 阅读全文
posted @ 2021-09-07 15:07 Cyanxxx 阅读(19) 评论(0) 推荐(0)
摘要: 参考博客 https://www.cnblogs.com/xuweiweiwoaini/p/13884112.html 阅读全文
posted @ 2021-08-30 18:02 Cyanxxx 阅读(20) 评论(0) 推荐(0)
摘要: 参考博客: https://www.cnblogs.com/xiao987334176/p/9930517.html 阅读全文
posted @ 2021-08-30 18:00 Cyanxxx 阅读(43) 评论(0) 推荐(0)
摘要: #!/bin/bash# 获取当前服务所在目录project_path=$(cd `dirname $0`; pwd)project_name="${project_path##*/}"BASE_HOME=/home/apple/testPID=${BASE_HOME}/.pid# 查看当前服务状态 阅读全文
posted @ 2021-08-30 12:04 Cyanxxx 阅读(451) 评论(0) 推荐(0)
摘要: 写脚本的时候会经常引用当前文件夹名,这里笔者分享我在实际项目中这么去获取当前文件夹名称。 Linux Shell 脚本获取当前目录和文件夹名 #!/bin/bash project_path=$(cd `dirname $0`; pwd) project_name="${project_path## 阅读全文
posted @ 2021-08-30 11:09 Cyanxxx 阅读(1341) 评论(0) 推荐(0)
摘要: 最近写了一个start、stop、restart、status的通用启动服务的脚本,需要把该脚本发到60几个后端服务的目录下,cp命令逐个费时又费力,研究了这么遍历所有文件夹然后逐一复制。 命令如下 ll | grep 'drwxrwxr' | awk '{print $9}' | xargs -n 阅读全文
posted @ 2021-08-30 10:46 Cyanxxx 阅读(365) 评论(0) 推荐(0)