1. 程式人生 > >Centos7上安裝Jenkins

Centos7上安裝Jenkins

安裝Java
看到當前系統Java版本的命令:

java -version
如果顯示Java版本號,說明已經正確安裝,如果顯示沒有該命令,需要安裝Java:

sudo yum install java

yum install jenkins

sudo service jenkins start

繼續配置防火牆

firewall-cmd –zone=public –add-port=8080/tcp –permanent
firewall-cmd –zone=public –add-service=http –permanent
firewall-cmd –reload
firewall-cmd –list-all

啟動服務

yum -y install openssl-devel readline-devel zlib-devel curl-devel libyaml-devel libffi-devel

sudo service jenkins restart
sudo chkconfig jenkins on

開啟IE:

頁面無法開啟,需要密碼,根據提示到:/var/lib/jenkins/secrets/initialAdminPassword

開啟檔案,找到密碼登陸:054e75274f2848d6b97bc55231d74e12

頁面安裝及配置:

安裝所有的Getting Started

繼續建立使用者

開始使用!

sudo cp -rf gitlab-rails-bak/gitlab-rails/* gitlab-rails/

rpm -e –nodeps mariadb-devel-5.5.52-1.el7.x86_64
rpm -e –nodeps mariadb-libs-5.5.52-1.el7.x86_64
rpm -e –nodeps mariadb-5.5.52-1.el7.x86_64
rpm -e –nodeps mariadb-server-5.5.52-1.el7.x86_64

rpm -e –nodeps httpd-tools-2.4.6-45.el7.centos.4.x86_64
rpm -e –nodeps httpd-2.4.6-45.el7.centos.4.x86_64