操作界面
停止
代码语言:javascript复制[root@h101 ~]# /etc/init.d/jenkins stop
Shutting down Jenkins [ OK ]
[root@h101 ~]# ps faux | grep jenkins
root 4079 0.0 0.0 103256 828 pts/0 S 20:34 0:00 | _ grep jenkins
[root@h101 ~]# netstat -ant | grep 8080
[root@h101 ~]#
开机启动
代码语言:javascript复制[root@h101 ~]# chkconfig --list | grep jenkins
jenkins 0:off 1:off 2:off 3:on 4:off 5:on 6:off
[root@h101 ~]# chkconfig jenkins on
[root@h101 ~]# chkconfig --list | grep jenkins
jenkins 0:off 1:off 2:on 3:on 4:on 5:on 6:off
[root@h101 ~]#
Jenkins 会作为一个后台服务在系统启动时启动
命令汇总
wget -O /etc/yum.repos.d/jenkins.repo http://pkg.jenkins-ci.org/redhat/jenkins.repo
rpm --import https://jenkins-ci.org/redhat/jenkins-ci.org.key
yum install jenkins
java -version
vim /etc/sysconfig/iptables
grep 8080 /etc/sysconfig/iptables
/etc/init.d/iptables reload
iptables -L -nv | grep 8080
/etc/init.d/jenkins start
grep -v "^#" /etc/sysconfig/jenkins | grep -v "^$"
/etc/init.d/jenkins stop
chkconfig jenkins on
原文地址