单机部署tomcat的shell脚本,来自网络,自己需要时要根据自己的需求改动. #!/bin/sh # #################################################################### # Before the shell,you need to run this: # # # # >cd /usr/local/workspace # # >git clone -b dev git@idcwxtest.dafysz.cn:root/mo…
# vi /usr/local/nginx/sbin/nginx_restart.sh 贴入一下代码: #!/bin/bash #www.xmsolink.com #Monitor nginx service #check root user if [ $(id -u) != "0" ] then echo "Not the root user! Try using sudo command!" exit 1 fi netstat -anop | grep 0.0.…