RealVNC官方最新下载地址:alvnc/products/download.html
WIN7 64 viewer linux server pan.baidu/share/link?shareid=109296&uk=1057228652
login as: root
root@.105's password:
Last login: Thu Nov 22 21:19:18 2012 from104
[root@localhost ~]# vncserver
VNC(R) Server 5.0.3 (r97046)
Built on Oct 2 2012 17:26:00
Copyright (C) 2002-2012 RealVNC Ltd.
VNC is a registered trademark of RealVNC Ltd. in the U.S. and in other
countries.
Protected by UK patent 2481870.
See alvncfor information on VNC.
For third party acknowledgements see:
alvnc/products/vnc/documentation/5.
Error: No license keys installed.
Run vnclicense to install a license key.

[root@localhost ~]# vnclicense -list
No license key found.
[root@localhost ~]# vnclicense -add WHJRK-UXY7V-Q34M9-CZU8L-8KGFA
Enterprise license key has been successfully applied.
[root@localhost ~]# vncserver
VNC(R) Server 5.0.3 (r97046)
Built on Oct 2 2012 17:26:00
Copyright (C) 2002-2012 RealVNC Ltd.
VNC is a registered trademark of RealVNC Ltd. in the U.S. and in other
countries.
Protected by UK patent 2481870.
See alvncfor information on VNC.
For third party acknowledgements see:
alvnc/products/vnc/documentation/5.

Running applications in /etc/vnc/xstartup
VNC Server signature: xx-xx-xx-xx-63-xx-83-0f
Log file is /root/.vnc/localhost.g:1.log
New desktop is localhost.g:1 (105:1)
[root@localhost ~]#
另外为了安全起见,中断VNC服务器之后,最好在服务器上能够及时关闭VNC应用服务器。关闭的命令如上,只需要运行如下命令即可:
#vncserver –kill :1
==============网上的key=================
WHJRK-UXY7V-Q34M9-CZU8L-8KGFA
S4J7A-XWXY5-KXAJW-54KRA-TP3QA
48R4P-NFZ46-NBCWY-Q2ZJT-3H9RA
NGNW9-7Q8BK-UQGY7-J3KAA-6G39
Z456C-LMKTC-NLGWQ-H5CUR-ZVWEA
A5HDP-LXKYN-UK4W6-XACZJ-ENWLA
NRDX9-ZF9C5-JLGY7-CUC5J-77J2A
579R9-9B92W-4QHM9-6TK6D-H6F9A
VETPD-HHC3S-63AH9-YAA26-8WVDA
SSEWK-HBDM6-YYCWC-M3BQV-9XMDA
LFKRU-DCTWH-6GJH2-7SWYR-D4CPA
CQUTS-S5RDR-VT2WJ-9B6TU-DLHPA
RR36V-7V29A-EVGJA-AYNEC-3DZYA
UNLZ3-EHBVR-VACLK-S8QDH-JZMHA
TPSNG-YEUGX-J4HZX-DPYSY-HZKXA
UCUXY-TAFLN-YFBVV-D7VZE-9SHJA
ANN2U-FM59S-DAGV4-4TK96-BDTKA
F4X7H-CYLEV-XZ4ZW-USQ7D-KHMGA
63P3S-TGU8R-3C4ZE-WCKF4-S2W3A
Q35YW-ZVH7L-Z94J4-9UJP9-77VFA
3TH6P-DV5AE-BLHY6-PNENS-B3AQA
==============================Linux安装JDK配置环境变量==================================
1 java.sun/j2se/1.4.2/download.html 下载一个Linux PlatformJDK,建议下载RPM自解压格式的(RPM in self-extracting filej2sdk-1_4_2_06-linux-i586-rpm.bin);
2. 上载到Linux服务器上,在shell下执行命令:
[root@LinuxServer rpm]# chmod 755 j2sdk-1_4_2_06-linux-i586-rpm.bin
[root@LinuxServer rpm]# ./j2sdk-1_4_2_06-linux-i586-rpm.bin
这时会有一段Sun的协议,敲几次空格键,当询问是否同意的时候,敲yes就可以了。
Sun Microsystems, Inc.
Binary Code License Agreement
for the
JAVATM 2 SOFTWARE DEVELOPMENT KIT (J2SDK), STANDARD
EDITION, VERSION 1.4.2_X

Do you agree to the above license terms? [yes or no]yes


0
0

UnZipSFX 5.40 of 28 November 1998, by Info-ZIP (Zip-Bugs@lists.wku.edu).
inflating: j2sdk-1_4_2_06-linux-i586.rpm
Done.
3. 程序会自动生成一个j2sdk-1_4_2_06-linux-i586.rpm文件,这是主程序包,下面来安装;
[root@LinuxServer rpm]#rpm –ivh j2sdk-1_4_2_06-linux-i586.rpm
>>>>>>>>### [100%]1:j2sdk >>>>>>>>### [100%]
4. 设置环境变量
通常都喜欢用export命令直接在shell下设置
[root@LinuxServer rpm]# export JAVA_HOME=/usr/java/j2sdk1.4.2_06
[root@LinuxServer rpm]# export CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar
[root@LinuxServer rpm]# export PATH=$PATH:$JAVA_HOME/bin
当然这样设置环境变量是可以生效的,但是只对当前shell生效。如果从另外一个shell登陆,将不能使用刚才设置的变量。所以最好的方法还是修改.bashrc文件。
[root@LinuxServer rpm]#vi .bashrc
set JAVA_HOME=/usr/java/j2sdk1.4.2_06
export JAVA_HOME
set PATH=$PATH:$JAVA_HOME/bin
export PATH
set CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar
export CLASSPATH
当然也可以通过更改/etc/profile来实现,不过不推荐这么做,因为这样的设置将对所以用户的shell都生效,对系统安全会产生影响。下面来验证一下变量设置是否生效(在验证前先logout一下,再重新登陆);
[root@LinuxServer rpm]# echo $JAVA_HOME
/usr/java/j2sdk1.4.2_06/
[root@LinuxServer rpm]# echo $CLASSPATH
/usr/java/j2sdk1.4.2_06/lib/dt.jar:/usr/java/j2sdk1.4.2_06/lib/tools.jar
下载apache[root@LinuxServer rpm]# echo $PATH
/usr/java/j2sdk1.4.2_06/bin/:/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/root/bin
[root@LinuxServer rpm]# -version
JAVA version "1.4.2_06"
JAVA(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_06-b03)
JAVA HotSpot(TM) Client VM (build 1.4.2_06-b03, mixed mode)JAVA
5. 环境设置OK,看看JDK是否能正常工作,我们来写一个测试文件test.java
[root@LinuxServer rpm]#vi test.java
class test
{
public static void main(String[] args)
{
System.out.println("Hello World!");
}
}
保存退出,下面来编译、执行;
[root@LinuxServer text]# javac test.java
[root@LinuxServer text]# test
Hello World!JAVA
OK,工作正常。
6. 如果要使某个用户具有运行java命令的权限,只要修改其bash初始化文件即可。
比如要给用户longware以运行java命令的权限,
[root@LinuxServer root]# vi /home/longware/.bashrc
set JAVA_HOME=/usr/java/j2sdk1.4.2_06
export JAVA_HOME
set PATH=$PATH:$JAVA_HOME/bin
export PATH
set CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar
export CLASSPATH
7. 至此,LinuxJDK的安装完毕。
===================LinuxTomcat的安装详解===================
一,安装前的准备:
1,Linux版本:[root@tpwb /]# uname -r
2.6.9-34.EL(版本内核)
2tomcat版本:jakarta-tomcat-5.0.28.tar(大小:10.2M
你可以去/tomcat 下载
二,tomcat的安装
安装前看看Tomcat安装的信息,上面也有关于Tomcat安装的信息,可以作为参考。

版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系QQ:729038198,我们将在24小时内删除。

图解SSH框架配置步骤
« 上一篇
log4j教程
下一篇 »

发表评论