首页 > 代码库 > jenkins的安装

jenkins的安装

jenkins环境准备:首先检查是否安装java环境: 

[root@bogon nginx]# java -versionjava version "1.7.0_79"Java(TM) SE Runtime Environment (build 1.7.0_79-b15)Java HotSpot(TM) 64-Bit Server VM (build 24.79-b02, mixed mode)

java环境已经有了,下面安装jenkins

wget -O /etc/yum.repos.d/jenkins.repo http://pkg.jenkins-ci.org/redhat/jenkins.reporpm --import https://jenkins-ci.org/redhat/jenkins-ci.org.keyyum -y install jenkins

启动jenkins

service jenkins start

gitlab的安装:

[root@bogon zhangzhanling]# ./bitnami-gitlab-7.8.1-0-linux-x64-installer.run ----------------------------------------------------------------------------Welcome to the Bitnami Gitlab 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.GitLab : Y (Cannot be edited)GitLab CI [Y/n] :yIs the selection above correct? [Y/n]: y----------------------------------------------------------------------------Installation folderPlease, choose a folder to install Bitnami Gitlab StackSelect a folder [/opt/gitlab-7.8.1-0]: ----------------------------------------------------------------------------Create Admin accountBitnami Gitlab Stack admin user creationEmail Address [user@example.com]: zhangzhanling@wsdashi.comLogin [user]: saPassword :Please confirm your password :----------------------------------------------------------------------------Web Server PortPlease enter the port that the bundled Apache Server will listen to by default.Apache Web Server Port [80]: Warning: Unable to bind to the given port number. Please select another Apache Server Port.Press [Enter] to continue:80----------------------------------------------------------------------------Web Server PortPlease enter the port that the bundled Apache Server will listen to by default.Apache Web Server Port [80]: 9-Warning: Please choose a correct value number for the ports (only digits are allowed)Press [Enter] to continue:----------------------------------------------------------------------------Web Server PortPlease enter the port that the bundled Apache Server will listen to by default.Apache Web Server Port [9-]: Warning: Please choose a correct value number for the ports (only digits are allowed)Press [Enter] to continue:----------------------------------------------------------------------------Web Server PortPlease enter the port that the bundled Apache Server will listen to by default.Apache Web Server Port [9-]: 80Warning: Unable to bind to the given port number. Please select another Apache Server Port.Press [Enter] to continue:80----------------------------------------------------------------------------Web Server PortPlease enter the port that the bundled Apache Server will listen to by default.Apache Web Server Port [80]: 10000----------------------------------------------------------------------------MySQL InformationPlease enter your MySQL database information:MySQL Server port [3306]: 3306Warning: Unable to bind to the given port number. Please select another MySQL Server Port.Press [Enter] to continue:3306----------------------------------------------------------------------------MySQL InformationPlease enter your MySQL database information:MySQL Server port [3306]: 3307----------------------------------------------------------------------------Hostname that will be used to create internal URLs. If this value is incorrect, you may be unable to access your Gitlab installation from other computers. It is advisable to use a Domain instead of an IP address for compatibility with different browsers.Domain [192.168.1.158]: Do you want to configure mail support? [y/N]: y----------------------------------------------------------------------------Configure SMTP SettingsThis is required so your application can send notifications via email.Default email provider:[1] GMail[2] CustomPlease choose an option [1] : 1----------------------------------------------------------------------------Configure SMTP SettingsThis data is stored in the application configuration files and may be visible to others. For this reason, it is recommended that you do not use your personal account credentials.GMail address []: GMail password :Re-enter :----------------------------------------------------------------------------Setup is now ready to begin installing Bitnami Gitlab Stack on your computer.Do you want to continue? [Y/n]: y----------------------------------------------------------------------------Please wait while Setup installs Bitnami Gitlab Stack on your computer. Installing 0% ______________ 50% ______________ 100% ########################################-#----------------------------------------------------------------------------Setup has finished installing Bitnami Gitlab Stack on your computer.Info: To access the Bitnami Gitlab Stack, go tohttp://192.168.1.158:10000 from your browser.Press [Enter] to continue:

 

jenkins的安装