更新 /etc/rc.d/rc.local 文件,即可完成开机启动的配置。例如,在 rc.local 中新增以下启动项:
#nGrinder (java -XX:MaxPermSize=200m -jar /opt/tomcat/webapps/ROOT.war &) #tomcat ./var/tomcat/tomcat8/bin/startup.sh #jenkins /opt/jenkins.sh start
#nGrinder
(java -XX:MaxPermSize=200m -jar /opt/tomcat/webapps/ROOT.war &)
#tomcat
./var/tomcat/tomcat8/bin/startup.sh
#jenkins
/opt/jenkins.sh start