环境:centos6 jenkins经常不启动。在此记录一下
cd /mnt/share/
java -jar jenkins.war &
开机启动
1、把启动程序的命令添加到/etc/rc.d/rc.local文件中,比如下面的是设置开机启动httpd。
#!/bin/sh # # This script will be executed *after* all the other init scripts. # You can put your own initialization stuff in here if you don't # want to do the full Sys V style init stuff. touch /var/lock/subsys/local /usr/local/apache/bin/apachectl start
转载请注明原文地址: https://ju.6miu.com/read-1123301.html