美文网首页
远程连接Centos服务器并安装VNC

远程连接Centos服务器并安装VNC

作者: 仇琰敏 | 来源:发表于2019-11-12 11:35 被阅读0次

在mac终端下输入

ssh -l root 47.99.151.104     

1、查看当前centos系统是否安装了VNCserver

rpm -q tigervnc-server

2、下载安装VNCserver

yum install tigervnc tigervnc-server -y

3、切换到目录/usr/bin/vncserver启动vncserver

vncserver :1

4、配置当前用户的vnc登陆密码,连续输入两次即可。这个密码是vnc连接密码,和系统密码没有关系。可以不一样。

[root@localhost ~]# vncpasswd 

Password:

Verify:

[root@localhost ~]#

5、检查启动情况,启动成功,存在端口5901

netstat -lntp

6、 防火墙设置,我们需要配置防火墙来让 VNC 服务正常工作。

sudo firewall-cmd --permanent --add-service vnc-server

sudo systemctl restart firewalld.service

相关文章

网友评论

      本文标题:远程连接Centos服务器并安装VNC

      本文链接:https://www.haomeiwen.com/subject/stbfictx.html