1、安装VNCServer
2. 配置vnc配置文件
cp /lib/systemd/system/vncserver@.service /etc/systemd/system/vncserver@:1.service
vim /etc/systemd/system/vncserver@:1.service
编辑刚刚我们复制得新文件,将文件中得<USER>修改味VNC Client连接的账号
本次配置将<USER>改为root
3.配置自启动
systemctl start vncserver@:1.service
systemctl enable vncserver@:1.service
chkconfig vncserver@:1.service on
4. 遇到问题“Jobforvncserver@:1.service failed because the control process exitedwitherror code”
解决方法:
rm -R /tmp/.X11-unix/
5. 参考
[CentOs 7安装配置VNC Server]:(https://www.jianshu.com/p/35640fc5672b)
[How to install VNC server on Centos 7](https://origin.krizna.com/centos/install-vnc-server-centos-7/)
网友评论