tomcat设置一键重启的restar.sh文件
在tomcat的bin目录下天机restar.sh文件内容如下:
#!/bin/bash
script_name=${0##*/}
script_path=${0%/*}
s_curren_dir=$(pwd)
exec $script_path/tomcat.server restart
exit $?
在tomcat的bin目录下添加tomcat.server文件内容如下:
#!/bin/bash
script_name=${0##*/}
script_path=${0%/*}
script_path=`cd "$script_path" ; pwd`
s_curren_dir=$(pwd)
#[conf]
tomcat_bin=$script_path/"catalina.sh"
action="$1"
#absolute_path=$(echo $script_path | awk -F"/" '{prin
script_name=${0##*/}
script_path=${0%/*}
script_path=`cd "$script_path" ; pwd`
s_curren_dir=$(pwd)
#[conf]
tomcat_bin=$script_path/"catalina.sh"
action="$1"
#absolute_path=$(echo $script_path | awk -F"/" '{prin