摘要:
port=8081 #根据端口号查询对应的pid pid=$(netstat -nlp | grep :$port | awk '{print $7}' | awk -F"/" '{ print $1 }'); #杀掉对应的进程,如果pid不存在,则不执行 if [ -n "$pid" ]; the 阅读全文
摘要:
#!/bin/bash # jar文件位置 jarPath="/data/api" # 拉取源代码存放的位置 originCode="/data/api/originCode" # 备份jar文件位置 backPath="/data/api/back" # 按时间区分 data=`date +"%Y 阅读全文
摘要:
1.创建文件目录 2. git init 3.修改.git目录下的config文件: [core] repositoryformatversion = 0 filemode = true bare = false logallrefupdates = true ignorecase = true p 阅读全文