step 0:[CentOS 6/RedHat 6] 安装桌面环境.
step 1: 安装 tigervnc-server
step 2: 配置 /etc/sysconfig/vncservers
样例:
- VNCSERVERS="1:root 2:oracle 3:mysql"
- VNCSERVERARGS[1]="-geometry 1024x768"
- VNCSERVERARGS[2]="-geometry 1024x768"
- VNCSERVERARGS[3]="-geometry 1024x768"
step 3: 配置 sysV(init.d) 的 tigervnc 服务, 使用 chkconfig
step 4: 启动服务
- [[email protected] sysconfig]# service vncserver restart
- Shutting down VNC server: 1:root 2:oracle 3:MySQL [ OK ]
- Starting VNC server: 1:root
- New 'restore1:1 (root)' desktop is restore1:1
- Starting applications specified in /root/.vnc/xstartup
- Log file is /root/.vnc/restore1:1.log
- 2:oracle
- New 'restore1:2 (oracle)' desktop is restore1:2
- Starting applications specified in /home/oracle/.vnc/xstartup
- Log file is /home/oracle/.vnc/restore1:2.log
- 3:MySQL
- New 'restore1:3 (mysql)' desktop is restore1:3
- Starting applications specified in /home/MySQL/.vnc/xstartup
- Log file is /home/MySQL/.vnc/restore1:3.log
- [ OK ]
来源: http://www.bubuko.com/infodetail-3384736.html