如何通过vnc访问linux,透过web方式访问linux VNC

通过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端口

1609066015.jpg

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

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

1 楼

zsg86

2011-12-09

哥们,你这ssh.rar的密码是什么啊?麻烦告诉一下!

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值