安裝Jenkins服務


1.下載Jenkins

下載地址:https://jenkins.io/download/

選擇rpm包

 

2.啟動服務

 
         

[root@node1 ~]# rpm -ivh jenkins-2.138.3-1.1.noarch.rpm

[root@node1 ~]# systemctl enable jenkins
jenkins.service is not a native service, redirecting to /sbin/chkconfig.
Executing /sbin/chkconfig jenkins on
[root@node1 ~]# systemctl start jenkins
[root@node1 ~]# ps aux | grep jenkis
root 3078 0.0 0.0 112648 956 pts/0 S+ 08:03 0:00 grep --color=auto jenkis
[root@node1 ~]# 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
[root@node1 ~]# netstat -anlpt | grep jenkins
[root@node1 ~]# netstat -anlpt | grep 8080

 

3.WEB配置

解鎖jenkins

獲取秘鑰

[root@node1 jenkins]# vim /var/lib/jenkins/secrets/initialAdminPassword

創建管理員用戶

安裝完成。

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2026 CODEPRJ.COM