`
8366
  • 浏览: 799120 次
  • 性别: Icon_minigender_1
  • 来自: 西安
社区版块
存档分类
最新评论

通过web方式访问linux VNC

阅读更多

 

 

 

1.首先吧项目部署在tomcat下

2.开启linux服务器的远程vnc服务

 

[root@xhu-master 0428]# vncserver

New 'xhu-master:1 (root)' desktop is xhu-master:1

Starting applications specified in /root/.vnc/xstartup
Log file is /root/.vnc/xhu-master:1.log

 

3.修改vnc登陆密码

 

[root@xhu-master 0428]# vncpasswd
Password:
Verify:

 

4. 查找vnc启动的端口号

 

[root@xhu-master 0428]# ps -ef |grep vnc
root       968     1  0 04:23 pts/1    00:00:00 Xvnc :1 -desktop xhu-master:1 (root) -httpd /usr/share/vnc/classes -auth /root/.Xauthority -geometry 1024x768 -depth 16 -rfbwait 30000 -rfbauth /root/.vnc/passwd -rfbport 5901 -pn
root      3850 22188  0 04:25 pts/1    00:00:00 grep vnc

 

5901 则是我们需要的端口号,默认的是5900,我的机器上启动了2次

 

 

5.修改 index.jsp 主要是改ip和vnc端口

 

 

 

 

 

6. tomcat vpn 技术(也许你的tomcat本身不需要配置,在open ssl-vpn 已经配置过了,需要调查一下)

 

http://www.chinabaike.com/2011/0116/166520.html

 

 

 

 

 

 

 

 

  • ssh.rar (6.2 MB)
  • 下载次数: 57
分享到:
评论
3 楼 zdjkea 2014-08-27  
能告诉下这个密码是多少吗
2 楼 firepicker 2013-08-12  
太坑爹了,居然还要解压密码的
1 楼 zsg86 2011-12-09  
哥们,你这ssh.rar的密码是什么啊?麻烦告诉一下!

相关推荐

Global site tag (gtag.js) - Google Analytics