[quote]
#!/bin/bash
ps aux|grep java|grep -v grep|awk '{print "kill -9",$2}'|sh
cd /opt/app/ium/bin
nohup ./start-web.sh >/dev/null &
cd /opt/app/ium_wgh/bin
nohup ./start-web.sh >/dev/null &
[/quote]
#!/bin/bash
ps aux|grep java|grep -v grep|awk '{print "kill -9",$2}'|sh
cd /opt/app/ium/bin
nohup ./start-web.sh >/dev/null &
cd /opt/app/ium_wgh/bin
nohup ./start-web.sh >/dev/null &
[/quote]
本文介绍了一种使用bash脚本启动和管理多进程Web应用的方法,包括如何利用bash脚本实现自动启动和后台运行,并通过nohup命令确保进程在会话结束后仍能正常运行。
488

被折叠的 条评论
为什么被折叠?



