HP-UX 安装JDK1.5,tomcat安装
2009-01-09 13:48
429 查看
一、安装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主页就说明安装成功
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主页就说明安装成功
相关文章推荐
- HP-UX实战: Apache2 + Tomcat 4.1.18 + Subversion + axis
- HP-UX 安装tusc
- HP-UX使用swinstall安装时报错
- HP-UX IPV6的安装和配置
- 在Asianux Server 3下安装oracle,tomcat,svn小结
- HP-UX 11i v2安装使用python 2.5.2
- 在HP-UX 11.11用swinstall安装gcc 4.2.3
- 【翻译自mos文章】在hp-ux操作系统下以非root用户安装tusc
- HP-UX 11.31 安装RAC 添加共享磁盘的问题(两种办法)
- 怎样在HP-UX中安装bash?
- jdk1.5和tomcat5.5免安装的环境配置
- 在hp-ux下安装oracle 数据库软件时unzip的问题
- Oracle 10g 在 HP-UX 上安装详解
- HP-UX下Oracle10G的安装
- HP-UX使用光盘安装Ignite
- WebSphere MQ For AIX和HP-UX安装配置
- Linux及HP-UX下Informix的安装配置
- HP-UX 安装/设置
- HP-UX 11.23 gcc4.2.3 bash vim 安装方法-经验分享