centos7系列安装vnc服务并且使用vnc客户端连接

  • 内容
  • 评论
  • 相关

1.安装vnc服务器

yum install tigervnc-server -y

1.png2.先cp文件到服务目录system里面
cp /lib/systemd/system/vncserver@.service    /etc/systemd/system/vncserver@:1.service
3.编辑刚才复制的1.service 
 vim /etc/systemd/system/vncserver@:1.service

3.png

4.重载配置

systemctl daemon-reload

5.vncpasswd 设置用户连接的密码和ssh登录的密码不一样。

vncpasswd

4.png

6.开机启动服务,并启动这个服务。

systemctl enable vncserver@:1.service  #开启启动
systemctl start vncserver@:1.service   #启动服务
查看
netstat -anlpt |grep 590

5.png

7.如果使用vnc客户端连接有失败检查防火墙。
启动: systemctl start firewalld
关闭: systemctl stop firewalld
查看状态: systemctl status firewalld
开机禁用  : systemctl disable firewalld
开机启用  : systemctl enable firewalld

6.png

8.使用vnc客户端连接成功

7.png


本文标签:

版权声明:若无特殊注明,本文皆为《菜鸟站长》原创,转载请保留文章出处。

本文链接:centos7系列安装vnc服务并且使用vnc客户端连接 - http://www.wlphp.com/?post=181

发表评论

电子邮件地址不会被公开。 必填项已用*标注