HP-UX 安装JDK1.5,tomcat安装

一、安装JDK

1、去HP网站下载JDK5

http://h20392.www2.hp.com/portal/swdepot/displayProductInfo.do?productNumber=HPUXJAVAHOME

选择相对应系统的JDK版本

2、将这个下载好的文件jdk15_15000_1111.depot拷贝到小型机上,如/tmp/目录下

3、安装JDK

swreg -l depot /tmp/jdk15_15000_1111.depot

swinstall -s /tmp/jdk15_15000_1111.depot

4、进入安装界面:选中java5然后按tab选择 Actions -> Mark For Install,

   然后选择 Actions -> Change Target,填写目标path,选择 Action -> Install,

   系统先进行分析,分析成功后点击OK开始安装,安装完成后选择Done,

   选择File -> Exit 退出,JDK就安装好了。

5、配置JAVA环境

将环境变量加入到profile中,如果写入到(/etc/profile)对所有用户都生效,我这里直接在根目录下的.profile修改即可,如果只对某个用户生效写入到(/home/username/profile)注意变量中=号左右不要有空格
#vi /etc/profile
添加以下代码:默认安装目录为/opt/java1.5

# set java environment

export JAVA_HOME=/opt/java1.5
export PATH=$PATH:$JAVA_HOME/bin:$JAVA_HOME/jre/bin
export CLASSPATH=.:/opt/java1.5/lib:/opt/java1.5/jre/lib:$CLASSPATH

6、执行命令测试是否成功

# java -version

将显示相应的JDK版本信息,表示JDK安装成功。

7、注意事项:
*** IMPORTANT NOTE for PA-RISC Customers! ***

Beginning with SDK version 1.4.2.06, the following networking patch (or its superseded patch) must be installed for HP-UX 11.11 (11i v1) PA-RISC. The patch is not required for HP Integrity, or for other PA-RISC versions.

HP-UX 11.11 (11i v1) PA-RISC Required patch PHNE_29887 solves socket problems that may cause hangs

For all SDK versions 1.4.2.xx, the pthreads patch shown below (or its superseded patch) must be installed for HP-UX 11.0 or HP-UX 11.11 (11i v1)PA-RISC. The patch is not required for HP Integrity.

HP-UX 11.0 PA-RISC Required patch PHCO_29959 or
HP-UX 11.11 (11i v1) PA-RISC Required patch PHCO_29960

To determine which patches have been installed on your machine, log in as root and check your machine with:

/usr/sbin/swlist -l product

For a complete list of required and recommended patches (which includes the patches mentioned above), refer to the web page shown below. Please install ALL dependency patches as well. These will be listed on the IT Resource Center web page from where you download the patch: Patch Information

Operating system patches should be installed before you install the SDK.

#############################

hp-ux java pathes url:http://docs.hp.com/en/HPUXJAVAPATCHES/index.html#whatqpks

Determining your HP-UX version

To determine which HP-UX version is running on your system, use the following command:

    uname -r

Determining your Java version

To find your Java version, assuming the directory where it is installed is in your PATH variable, run the following at the command prompt:

    java -version

If your Java JDK or JRE is installed in a non-default location, or if you have multiple versions installed on your system, run the following command:

    <java-home>/bin/java -version

Alternately, if you installed your Java JDK or JRE using SD (swinstall), you can run the following command:

    /usr/sbin/swlist | grep -i java

  
For more information on Java version, refer to http://www.hp.com/products1/unix/java/versions/index.html#version

To determine which patches have been installed on your machine, log in as root and check your machine with:

/usr/sbin/swlist -l product
or

swremove

To determine which Quality Packs are installed on your system use the following command:

/usr/sbin/swlist | grep -e QPK -e GOLD -e BUNDLE11i

 

二、安装tomcat

1、到jakarta.apache.org下载tomat,如apache-tomcat-5.5.27.tar.gz

2、上传至HP-UX,解压tomcat至/opt/目录下

tar -xvzf apache-tomcat-5.5.27.tar.gz /opt/tomcat5.5

3、增加环境变量,在/etc/profile中增加

export CATALINA_HOME=/opt/tomcat5.5

4、启动tomcat测试,进入目录/opt/tomcat5.5/bin/执行./startup.sh启动tomcat

访问http://localhost:8080/,如果能看到tomcat主页就说明安装成功

    

 

  • 0
    点赞
  • 5
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值