1. 程式人生 > >阿里雲Centos7.2配置VNC遠端連線

阿里雲Centos7.2配置VNC遠端連線

[Unit]
Description=Remote desktop service (VNC)
After=syslog.target network.target
[Service]
Type=forking
USER=root
# Clean any existing files in /tmp/.X11-unix environment
ExecStartPre=/usr/bin/vncserver -kill %i
ExecStart=/usr/bin/vncserver %i -geometry 1280x720 -depth 24
PIDFile=/root/.vnc/%H%i.pid
ExecStop=/usr/bin/vncserver -kill %i
[Install]
WantedBy=multi-user.target