PHP菜鸟博客_共同学习分享PHP技术心得【PHP爱好者】
centos7系列安装vnc服务并且使用vnc客户端连接
2019-1-1 菜鸟站长


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





发表评论:
昵称

邮件地址 (选填)

个人主页 (选填)

内容