Centos7 安装VNCserver&图形界面
1.安装软件包。 yum install tigervnc-server -y yum groups install GNOME yum groups install "Virtualization Hypervisor" "Virtualization Platform" "Virtualization Tools" "Virtualization Client" "Virtualization" 2.拷贝vnc server配置文件。 cp /lib/systemd/system/vncserver@.service /etc/systemd/system/vncserver@:1.service 3.编辑vnc server配置文件。 vim /etc/systemd/system/vncserver@:1.service [Unit] Description=Remote desktop service (VNC) After=syslog.target network.target [Service] Type=forking ExecStartPre=/bin/sh -c '/usr/bin/vncserver -kill %i > /dev/null 2>&1 || :' ExecStart=/sbin/runuser -l root -c "/usr/bin