痛點:上一篇的AWS部署的VNC不知爲啥掛了,死活連不上,所以改申請京東雲作部署Jenkinsphp
預計閱讀時間:20分鐘html
1 更新軟件,安裝桌面 2 yum -y update 3 yum -y groupinstall "X Window System" 4 yum -y groupinstall gnome 5 yum -y install firefox 6 7 8 添加用戶,安裝tigervnc-server並進行相應配置 9 sudo useradd awsgui 10 sudo passwd awsgui 11 yum -y install tigervnc-server 12 vncserver 13 vi /root/.vnc/xstartup 14 vi /etc/sysconfig/vncservers 15 vncserver 16 17 檢查java版本,下載jenkins 18 java -version 19 yum -y install wget 20 wget -O /etc/yum.repos.d/jenkins.repo http://pkg.jenkins-ci.org/redhat/jenkins.repo 21 rpm --import https://jenkins-ci.org/redhat/jenkins-ci.org.key 22 yum install jenkins -y 23 chkconfig jenkins on 24 25 檢查jenkins相應服務和日誌 26 service jenkins start 27 service jenkins stop 28 service jenkins restart 29 service jenkins status 30 tailf /var/log/jenkins/jenkins.log 31 cat /etc/yum.repos.d/jenkins.repo 32 33 防火牆配置修改(京東雲默認沒有打開防火牆。。。) 34 #firewall-cmd --zone=public --add-port=8080/tcp --permanent 35 cat /var/lib/jenkins/secrets/initialAdminPassword
嘗試VNC鏈接java
而後本地打開瀏覽器進行鏈接,大功告成linux
參考連接:瀏覽器
【安裝VNC】 http://gloriasilveira.com/installing-a-gui-on-an-ec2-rhel-7-instance.htmltcp
【Jenkins安裝配置】
http://wiki.jikexueyuan.com/project/linux-in-eye-of-java/Jenkins-Install-And-Settings.html
https://wiki.jenkins-ci.org/display/JENKINS/Installing+Jenkins+on+Red+Hat+distributionsui
【tightvnc 下載地址】
http://www.tightvnc.com/download.phpspa