linux
Leeong_
这个作者很懒,什么都没留下…
展开
-
linux下SpringBoot优雅更新、停机、发布
#!/bin/bash# 定义变量today=`date +%y%m%d`pid=app=demo-servicejarFile=${app}.jarsourcePath=/home/code/springboot/#更新代码,启动带上分支可以切换到指定分支cd ${sourcePath}/demo/if [ -n "$1" ] ;then echo "you have input is $1" git checkout $1fiecho '当前分支::'git原创 2021-07-03 09:58:38 · 403 阅读 · 0 评论 -
开发人员的日常linux命令 vim/more/less/ps/netstat 基础操作
1.查找相关命令# 查找软件安装 whereis mysql# 查找关键字所在的文件,当前目录往下走,最多查找2层find . -maxdepth 2 -name "*.log" | xargs grep "error"2.vim 基础操作原创 2021-06-30 20:20:30 · 146 阅读 · 1 评论 -
linux下 截取一个时间段的日志输出到指定文件
more catalina.out | sed -n '/2021-06-15 18:48:/,/2021-06-15 18:55:/p' > info.log原创 2021-06-15 16:15:24 · 451 阅读 · 0 评论