
shell
YangTG5号
基于优快云恶心程度,无限期停更
展开
-
转载:spring boot shell启停脚本(二)
#!/bin/bash## Author LinkinStar## UPDATE 2019-01-05version="1.0.1";cd `dirname $0`appName=$2if [ -z $appName ];then appName=`ls -t |grep .jar |head -n1`fifunction start(){ count=`ps -ef |grep java|grep $appName|wc -l` if [ $count != 0 ];t.翻译 2020-06-02 09:25:19 · 259 阅读 · 0 评论 -
shell 检测文件大小
# 文件路径filePath=${1}#文件名称fileName=${2};#查看文件大小count=`cat ${filePath}/*.txt|wc -l`if [ $count -eq 0 ]; then echo "file size $count" ##rm -rf $filePath/*.txtelseecho "file size $count"fi##执行命令 sh cheakFile.sh 文件路径 文件名称...原创 2020-05-20 09:24:35 · 1101 阅读 · 0 评论 -
CentOS spring-boot启动shell脚本
--------原作者https://blog.youkuaiyun.com/dream_ll/article/details/79593078#!bin/bashAPP_NAME=integral-0.0.1-SNAPSHOT.jar##用来提示输入参数usage(){ echo "Usage sh执行脚本.sh [start|stop|restart|status]" ex...翻译 2019-05-17 23:59:49 · 1001 阅读 · 2 评论