痛点:上一篇的AWS部署的VNC不知为啥挂了,死活连不上,因此改申请京东云做部署Jenkins
预计阅读时间:20分钟
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连接
然后本地打开浏览器进行连接,大功告成
参考链接:
【安装VNC】 http://gloriasilveira.com/installing-a-gui-on-an-ec2-rhel-7-instance.html
【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+distributions
【tightvnc 下载地址】
http://www.tightvnc.com/download.php
时间: 2024-11-10 01:22:19