cat /etc/centos-release
  CentOS Linux release 7.4.1708 (Core)
uname -r
  3.10.0-693.11.1.el7.x86_64

 

SRE实战 互联网时代守护先锋,助力企业售后服务体系运筹帷幄!一键直达领取阿里云限量特价优惠。

vim /etc/rc.d/init.d/start.sh
#!/bin/bash
#chkconfig:2345 99 20        !!! 这句是重点 !!!
/tomcat9/tomcat-xxx-8087/bin/startup.sh
/tomcat9/tomcat-xxx-8086/bin/startup.sh
/tomcat9/tomcat-xxx-8081/bin/startup.sh
/tomcat9/tomcat-xxx-8088/bin/startup.sh
/tomcat9/tomcat-xxx-8089/bin/startup.sh
/tomcat9/tomcat-xxx-8019/bin/startup.sh


chmod +x /etc/rc.d/init.d/start.sh
cd /etc/rc.d/init.d/
chkconfig --add start.sh
chkconfig start.sh on

扫码关注我们
微信号:SRE实战
拒绝背锅 运筹帷幄