阿薩德
jenkins
官網 jenkins.io
1.安裝準備
裝備兩臺服務器 關閉selinux和防火墻內存2G 50G+硬盤 jenkins
[[email protected] ~]# java -version
openjdk version "1.8.0_201"
OpenJDK Runtime Environment (build 1.8.0_201-b09)
OpenJDK 64-Bit Server VM (build 25.201-b09, mixed mode)
[[email protected] ~]# rpm -ivh jenkins-2.99-1.1.noarch.rpm
warning: jenkins-2.99-1.1.noarch.rpm: Header V4 DSA/SHA1 Signature, key ID d50582e6: NOKEY
Preparing... ################################# [100%]
Updating / installing...
1:jenkins-2.99-1.1 ################################# [100%]
[[email protected] ~]# vim /etc/sysconfig/jenkins
[[email protected] ~]# systemctl start jenkins
[[email protected] ~]# systemctl enable jenkins
http://192.168.171.145:8080/
[[email protected] plugins]# tar xvf plugins.tar.gz
[[email protected] plugins]# mv plugins/* .
[[email protected] plugins]# systemctl restart jenkins
碼雲上的監控html頁面先下載到gitlab,隨後從gitlab下拉到服務器並發布
[[email protected] git_data]# git remote add origin [email protected]:gitlabnsh/monitor.git
將html從gitlab上拉下來到服務武器
[[email protected] ~]# git clone [email protected]:gitlabnsh/monitor.git
服務器安裝nginx開始測試
[[email protected] ~]# yum -y install nginx
html頁面放到nginx頁面目錄下即可
阿薩德