1.安装
1.1 创建工作目录
[root@localhost ~]# mkdir jenkins
[root@localhost ~]# cd jenkins/
1.2 上传RPM安装包
[root@localhost jenkins]# ls
jdk-8u131-linux-x64_.rpm jenkins-2.263.1-1.1.noarch.rpm
1.3 安装
[root@localhost jenkins]# rpm -ivh jdk-8u131-linux-x64_.rpm jenkins-2.263.1-1.1.noarch.rpm
warning: jenkins-2.263.1-1.1.noarch.rpm: Header V4 RSA/SHA512 Signature, key ID 45f2c3d5: NOKEY
Preparing... ################################# [100%]
Updating / installing...
1:jenkins-2.263.1-1.1 ################################# [ 50%]
2:jdk1.8.0_131-2000:1.8.0_131-fcs ################################# [100%]
Unpacking JAR files...
tools.jar...
plugin.jar...
javaws.jar...
deploy.jar...
rt.jar...
jsse.jar...
charsets.jar...
localedata.jar...
[root@localhost jenkins]#
1.4 启动并查看监听端口(默认监听8080端口)
[root@localhost jenkins]# systemctl start jenkins
[root@localhost jenkins]# systemctl enable jenkins
jenkins.service is not a native service, redirecting to /sbin/chkconfig.
Executing /sbin/chkconfig jenkins on
[root@localhost jenkins]# netstat -nltp
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN 1356/master
tcp 0 0 127.0.0.1:9000 0.0.0.0:* LISTEN 4311/php-fpm: maste
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 4321/nginx: master
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 1121/sshd
tcp6 0 0 ::1:25 :::* LISTEN 1356/master
tcp6 0 0 :::8080 :::* LISTEN 4867/java
tcp6 0 0 :::22 :::* LISTEN 1121/sshd
[root@localhost jenkins]#
2. 浏览器访问
2.1 输入初始管理员密码
粘贴之后点击continue即可
2.2 选择插件安装
2.3 为了快速安装,选择不安装插件
2.4 创建用户并安装
创建用户和密码,均为admin
2.5 成功访问Jenkins首页
3. 汉化
3.1
3.2
3.3
3.4
3.5
3.6 重启Jenkins
[root@localhost jenkins]# systemctl restart jenkins
3.7 重启之后输入用户名密码登录,然后设置语言
汉化成功!!