赞
踩
nohup /data/software/apache-tomcat-9.0.52/bin/startup.sh 2>&1 &
启动脚本
#!/bin/bash
source /etc/profile
echo '查看当前tomcat的状态'
ps -ef | grep tomcat
cd /data/software/apache-tomcat-9.0.52/bin/
source /etc/profile
echo -e "\033[36m 启动tomcat \033[0m"
nohup /data/software/apache-tomcat-9.0.52/bin/startup.sh 2>&1 &
sleep 2s
echo -e "\033[36m 查看tomcat当前进程 \033[0m"
ps -ef | grep tomcat
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。