CentOS配置VNC服务 将启动方式改成如下命令: ExecStart=/usr/sbin/runuser -l root -c "/usr/bin/vncserver %i" 用runuser命令开启一个新的shell终端执行vncserver