一键重启shell脚本
来源:互联网 发布:红蜘蛛软件破解网络 编辑:程序博客网 时间:2024/06/05 08:42
#!/bin/sh#/myRestart.shecho [INFO] ===========1.cd bin目录============cd /usr/weblogic/user_projects/shenzhen/shenzhen/binpwdsleep 2echo [INFO] ===========2.赋值进程ID号============i=`ps -ef|grep -v grep|grep weblogic|grep jdk|awk '{print $2}'`echo $isleep 2echo "[INFO] ==========3.杀进程============"kill -9 ${i}sleep 2echo "[INFO] ==========4.清缓存============"rm -rf /usr/weblogic/user_projects/shenzhen/shenzhen/servers/AdminServer/tmp/_WL_*echo "delete successfule!!!!!!"sleep 2echo [INFO] ===========5.开机start============nohup ./startWebLogic.sh &
阅读全文
0 0
- 一键重启shell脚本
- shell脚本
- shell脚本
- shell脚本
- shell脚本
- shell脚本
- shell脚本
- shell脚本
- shell 脚本
- SHELL 脚本
- shell脚本
- shell脚本
- shell 脚本
- shell脚本
- shell脚本
- shell脚本
- shell脚本
- shell脚本
- JavaSE IO、NIO
- sed流式编辑器
- [NOIP模拟赛]棋子游戏
- ARM实例一
- C指针学习分享之“了解指针”
- 一键重启shell脚本
- mybatis maven generator 插件自动生成代码
- AndroidUI——HorizontalListView实现水平滑动
- leetcode 101. Symmetric(对称的) Tree
- 数组(array)应用
- 词频统计(一):C++使用Vector做词频统计
- HDU 1370 Biorhythms
- JavaScript数组的常用方法
- TCP/IP协议简介