[root@VM_0_5_centos shell]# cat supervisrod.sh
#!/bin/bash
yum -y install supervisor
systemctl enable supervisord.service
cat>>/etc/supervisord.d/app01.ini<<\EOF
[program:tomcat1]
command=/opt/tomcat1/bin/catalina.sh run
[program:tomcat2]
command=/opt/tomcat2/bin/catalina.sh run
EOF
systemctl start supervisord.service
supervisorctl start all
shell-supervisor(交互)
最新推荐文章于 2022-07-05 12:48:53 发布