ansible 启动tomcat遇到的问题

 

故障问题:ansible远程调用startup.sh启动tomcat,启动失败。
解决方法:
ansible调用shell脚本启动tomcat得加上nohup 后面还不能跟 “&”

ansible peixun-145 -m shell -a "nohup /script/fc_tomcat.sh coreinterface restart"

posted @ 2020-10-10 16:25  六月OvO  阅读(742)  评论(0编辑  收藏  举报