一、jenkins安装
1、下载
jenkins下载网址:https://pkg.jenkins.io/redhat-stable/
yum -y install vim wget gcc libgcc_s.so.1
sudo wget -O /etc/yum.repos.d/jenkins.repo https://pkg.jenkins.io/redhat-stable/jenkins.repo
sudo rpm --import https://pkg.jenkins.io/redhat-stable/jenkins.io.key
yum install jenkins
systemctl restart jenkins
此处会提示缺少java
https://blog.csdn.net/weixin_43776646/article/details/109853979
查看端口
[root@vdl-jenkins~]# ss -tlunp
Netid State Recv-Q Send-Q Local Address:Port Peer Address:Port
udp UNCONN 0 0 *:68 *:* users:(("dhclient",pid=846,fd=6))
udp UNCONN 0 0 *:111 *:* users:(("rpcbind",pid=594,fd=6))
udp UNCONN 0 0 127.0.0.1:323 *:* users:(("chronyd",pid=596,fd=5))
udp UNCONN 0 0 *:765 *:* users:(("rpcbind",pid=594,fd=7))
udp UNCONN 0 0 [::]:111 [::]:* users:(("rpcbind",pid=594,fd=9))
udp UNCONN 0 0 [::1]:323 [::]:* users:(("chronyd",pid=596,fd=6))
udp UNCONN 0 0 [::]:765 [::]:* users:(("rpcbind",pid=594,fd=10))
tcp LISTEN 0 128 *:111 *:* users:(("rpcbind",pid=594,fd=8))
tcp LISTEN 0 128 *:22 *:* users:(("sshd",pid=1052,fd=3))
tcp LISTEN 0 100 127.0.0.1:25 *:* users:(("master",pid=1013,fd=13))
tcp LISTEN 0 128 [::]:111 [::]:* users:(("rpcbind",pid=594,fd=11))
tcp LISTEN 0 50 [::]:8080 [::]:* users:(("java",pid=1476,fd=162))
tcp LISTEN 0 128 [::]:22 [::]:* users:(("sshd",pid=1052,fd=4))
tcp LISTEN 0 100 [::1]:25 [::]:* users:(("master",pid=1013,fd=14))
输入ip:8080
[root@vdl-jenkins ~]# cat /var/lib/jenkins/secrets/initialAdminPassword
e0a352b18b6c4998af06b8df6f81f539
直接下一步,选择不安装插件,jenkins安装完成。
二、jenkins使用
1、jenkins设置中文显示
Manage Jenkins > Manage Plugins > Available
搜索:Localization: Chinese (Simplified)
http://mirror.xmission.com/jenkins/updates/update-center.json
安装完成后输入 ip:8080/restart