1.下载Jenkins
下载地址:https://jenkins.io/download/
选择rpm包
2.启动服务
[[email protected] ~]# rpm -ivh jenkins-2.138.3-1.1.noarch.rpm
[[email protected] ~]# systemctl enable jenkins
jenkins.service is not a native service, redirecting to /sbin/chkconfig.
Executing /sbin/chkconfig jenkins on
[[email protected] ~]# systemctl start jenkins
[[email protected] ~]# ps aux | grep jenkis
root 3078 0.0 0.0 112648 956 pts/0 S+ 08:03 0:00 grep --color=auto jenkis
[[email protected] ~]# ps aux | grep jenkins
jenkins 3050 85.5 2.9 3032136 112936 ? Ssl 08:03 0:08 /etc/alternatives/java -Dcom.sun.akuma.Daemon=daemoniz
ed -Djava.awt.headless=true -DJENKINS_HOME=/var/lib/jenkins -jar /usr/lib/jenkins/jenkins.war --logfile=/var/log/jenkin/jenkins.log --webroot=/var/cache/jenkins/war --daemon --httpPort=8080 --debug=5 --handlerCountMax=100 --handlerCountMaxIdle=20root 3085 0.0 0.0 112648 960 pts/0 R+ 08:03 0:00 grep --color=auto jenkins
[[email protected] ~]# netstat -anlpt | grep jenkins
[[email protected] ~]# netstat -anlpt | grep 8080
3.WEB配置
解锁jenkins
获取秘钥
[[email protected] jenkins]# vim /var/lib/jenkins/secrets/initialAdminPassword
创建管理员用户
安装完成。
原文地址:https://www.cnblogs.com/mascot1/p/9971676.html