首页 帮助中心 新加坡云服务器 CentOS 7.4下VNC Server服务配置
CentOS 7.4下VNC Server服务配置
时间 : 2023-03-17 09:42:32 编辑 : 华纳云 阅读量 : 44

一、安装VNC相关包

yum -y install tigervnc tigervnc-server tigervnc-server-module

二、复制配置模板文件为vncserver@:1.service

cp /lib/systemd/system/vncserver@.service /lib/systemd/system/vncserver@:1.service

三、修改/lib/systemd/system/vncserver@:1.service配置文件

https://www.hncloud.com/uploads/UEditorImages/202303/17/6ed96fee521ce9427c5151e896f63d11.jpg

四、设置VNC用户密码

vncpasswd

输入两次密码,完成密码设置

五、重新载入system配置

systemctl daemon-reload

六、启动vncserver@:1.service服务,并设置开机自启

systemctl start vncserver@:1.service && systemctl enable vncserver@:1.service

注:若系统无法正常关机,则再次启动,此服务无法启动,解决办法参照步骤七

七、问题解决

1.报错:Job for vncserver@:1.service failed because the control process exited with error code. See “systemctl status vncserver@:1.service” and “journalctl -xe” for details.

处理方法:

rm -rf /tmp/.X11-unix/*

华纳云 推荐文章
Linux下搭建PHP开发环境 Win2008 r2 iis7/iis7.5系统下HTTP重定向(301重定向)图文方法 基于 CentOS 搭建 FTP 文件服务 解决windows系统和linux系统中端口被占用的问题 IIS备份 自动备份IIS设置和恢复IIS设置(自动还原Web服务器) 如何在CentOS 8/RHEL 8上安装 Ansible自动化工具 win2003 非公网IP配置图文教程 超级详细的Linux权限位介绍 IIS7完全攻略之失败请求跟踪配置 如何重置 RHEL7/CentOS7 系统的密码
客服咨询
7*24小时技术支持
技术支持
渠道支持