CentOS7 set up VNC service
# GUI
yum -y groups install "GNOME Desktop"
startx
# vnc server
yum -y install tigervnc-server
vncpasswd root
# start a session
vncserver :1 -geometry 1024x768 -depth 24
# stop VNC process, do like follows
vncserver -kill :1