ansible 启动tomcat遇到的问题

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

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

相关文章
相关标签/搜索