Jenkins 安装
1、去官网下载简化安装版本 bitnami-jenkins. 2、把下载的 bitnami-jenkins-1.658-0-linux-x64-installer.run 上传到 Linux 服务器,增加可执行权限,运行 [root@molaifeng ~]# cd /usr/local/[root@molaifeng local]# mk...
·
1、去官网下载简化安装版本 bitnami-jenkins.
2、把下载的 bitnami-jenkins-1.658-0-linux-x64-installer.run 上传到 Linux 服务器,增加可执行权限,运行
[root@molaifeng ~]# cd /usr/local/
[root@molaifeng local]# mkdir jenkins
[root@molaifeng local]# mv bitnami-jenkins-1.658-0-linux-x64-installer.run jenkins/
[root@molaifeng local]# cd jenkins/
[root@molaifeng jenkins]# chmod +x bitnami-jenkins-1.658-0-linux-x64-installer.run
[root@molaifeng jenkins]# ./bitnami-jenkins-1.658-0-linux-x64-installer.run
----------------------------------------------------------------------------
Welcome to the Bitnami Jenkins Stack Setup Wizard.
----------------------------------------------------------------------------
Select the components you want to install; clear the components you do not want
to install. Click Next when you are ready to continue.
Jenkins : Y (Cannot be edited)
Gradle [Y/n] :n
Is the selection above correct? [Y/n]: y
----------------------------------------------------------------------------
Installation folder
Please, choose a folder to install Bitnami Jenkins Stack
Select a folder [/opt/jenkins-1.658-0]:
----------------------------------------------------------------------------
Create Admin account
Bitnami Jenkins Stack admin user creation
Your real name [User Name]: molaifeng
Email Address [user@example.com]: molaifeng@foxmail.com
Login [user]: admin
Password :
Please confirm your password :
----------------------------------------------------------------------------
Setup is now ready to begin installing Bitnami Jenkins Stack on your computer.
Do you want to continue? [Y/n]: y
----------------------------------------------------------------------------
Please wait while Setup installs Bitnami Jenkins Stack on your computer.
Installing
0% ______________ 50% ______________ 100%
#########################################
----------------------------------------------------------------------------
Setup has finished installing Bitnami Jenkins Stack on your computer.
3、安装完毕,进入 Jenkins 目录
[root@molaifeng jenkins]# cd /opt/jenkins-1.658-0
[root@molaifeng jenkins-1.658-0]# ./ctlscript.sh status [查看Jenkins服务状态]
apache already running
tomcat already running
[root@molaifeng jenkins-1.658-0]# ./ctlscript.sh stop [停止Jenkins服务]
Syntax OK
/opt/jenkins-1.658-0/apache2/scripts/ctl.sh : httpd stopped
Using CATALINA_BASE: /opt/jenkins-1.658-0/apache-tomcat
Using CATALINA_HOME: /opt/jenkins-1.658-0/apache-tomcat
Using CATALINA_TMPDIR: /opt/jenkins-1.658-0/apache-tomcat/temp
Using JRE_HOME: /opt/jenkins-1.658-0/java
Using CLASSPATH: /opt/jenkins-1.658-0/apache-tomcat/bin/bootstrap.jar:/opt/jenkins-1.658-0/apache-tomcat/bin/tomcat-juli.jar
Using CATALINA_PID: /opt/jenkins-1.658-0/apache-tomcat/temp/catalina.pid
Tomcat stopped.
/opt/jenkins-1.658-0/apache-tomcat/scripts/ctl.sh : tomcat stopped
[root@molaifeng jenkins-1.658-0]# ./ctlscript.sh start [启动Jenkins服务]
Using CATALINA_BASE: /opt/jenkins-1.658-0/apache-tomcat
Using CATALINA_HOME: /opt/jenkins-1.658-0/apache-tomcat
Using CATALINA_TMPDIR: /opt/jenkins-1.658-0/apache-tomcat/temp
Using JRE_HOME: /opt/jenkins-1.658-0/java
Using CLASSPATH: /opt/jenkins-1.658-0/apache-tomcat/bin/bootstrap.jar:/opt/jenkins-1.658-0/apache-tomcat/bin/tomcat-juli.jar
Using CATALINA_PID: /opt/jenkins-1.658-0/apache-tomcat/temp/catalina.pid
Tomcat started.
/opt/jenkins-1.658-0/apache-tomcat/scripts/ctl.sh : tomcat started
Syntax OK
/opt/jenkins-1.658-0/apache2/scripts/ctl.sh : httpd started at port 80
4、最后说说,安装遇到的坑
1、在创建管理员密码时,经常提示Warning: Please use alphanumeric characters only
依据提示,密码为纯字母
2、Please wait while Setup installs Bitnami Jenkins Stack on your computer.
Installing
0% ______________ 50% ______________ 100%
Error: There has been an error.
The installer was not able to resolve your machine hostname. Java-based
applications require to solve the hostname.
Your machine hostname is: molaifeng
You can find more info at
https://wiki.bitnami.com/Java-based_applications_unable_to_resolve_hostname
Press [Enter] to continue:
在/etc/hosts文件里加上一条
127.0.0.1 molaifeng
再重新安装
【update 2016-09-06】这里示范下另外两种安装方法
一、yum 安装
sudo wget -O /etc/yum.repos.d/jenkins.repo http://pkg.jenkins.io/redhat/jenkins.repo
sudo rpm --import http://pkg.jenkins.io/redhat/jenkins.io.key
yum install jenkins
二、安装指定的 rpm 包
rpm -ivh http://pkg.jenkins-ci.org/redhat/jenkins-2.9-1.1.noarch.rpm
更多推荐
已为社区贡献4条内容
所有评论(0)