tomcat 服务不支持 chkconfig 以及其他服务不能添加到开机启动时的操作

在安装完tomcat后想添加的开机自启动的操作,但是报错tomcat 服务不支持 chkconfig,后来在  /etc/init.d/tomcat中的#!/bin/bash后添加上#chkconfig: 2345 80 90,添加之后保存,然后在执行 chmod 755 /etc/init.d/tomcat 然后再  加入到自起动的列表中 chkconfig --add tomcat

查看自起列表: chkconfig --list|grep tomcat

tomcat 0:关闭 1:关闭 2:启用 3:启用 4:启用 5:启用 6:关闭

原文地址:https://www.cnblogs.com/itor/p/7093689.html