太懒
分类: 其他UNIX
2013-05-31 15:21:56
下载JDK
下载完成以后放到服务器上
bash-4.1# uname -a
HP-UX HPITA B.11.23 U ia64 2106898907 unlimited-user license
bash-4.1#
bash-4.1# bdf /tmp/
Filesystem kbytes used avail %used Mounted on
/dev/vg00/lvol5 2097152 24208 2064184 1% /tmp
bash-4.1# mkdir /tmp/jdk
bash-4.1# cd /tmp/jdk/
bash-4.1# swlist -l product |grep -i java
DB2V81JHLP 8.1.0.32 Java Help (HTML)
ISEE-Java A.01.40.00 RST Java Runtime 1.4
Jdk13 1.3.1.13.01 Java2 1.3 SDK
Jdk14 1.4.2.03.04 Java2 1.4 SDK
Jdk14 1.4.2.09.02 Java2 1.4 SDK
Jdk15 1.5.0.17.00 Java 1.5 JDK
Jdk60 1.6.0.00.00 Java 6.0 JDK
Jpi13 1.3.1.13.01 Java2 1.3 Netscape Plugin
Jpi14 1.4.2.03.04 Java2 1.4 Netscape Plugin
Jre13 1.3.1.13.01 Java2 1.3 RTE 1.3
Jre14 1.4.2.03.04 Java2 1.4 RTE
Jre14 1.4.2.09.02 Java2 1.4 RTE
Jre15 1.5.0.17.00 Java 1.5 JRE
Jre60 1.6.0.00.00 Java 6.0 JRE
bash-4.1#
bash-4.1# cp /softdumpII/jdk/66/* ./
bash-4.1# ls -l
total 547072
-rw-r--r-- 1 root sys 144650240 May 31 14:40 Itanium_JDK_6.0.18-_Apr_2013_Z7550-01026_jdk6_16018_ia.depot
-rw-r--r-- 1 root sys 135444480 May 31 14:40 Itanium_JDK_JRE_7.0.06_-_May_2013_Z7550-01078_java_17006_ia.depot
bash-4.1#
bash-4.1# swlist -d @ /tmp/jdk/Itanium_JDK_
Itanium_JDK_6.0.18-_Apr_2013_Z7550-01026_jdk6_16018_ia.depot
Itanium_JDK_JRE_7.0.06_-_May_2013_Z7550-01078_java_17006_ia.depot
bash-4.1# swlist -d @ /tmp/jdk/Itanium_JDK_JRE_7.0.06_-_May_2013_Z7550-01078_java_17006_ia.depot
# Initializing...
# Contacting target "HPITA"...
#
# Target: HPITA:/tmp/jdk/Itanium_JDK_JRE_7.0.06_-_May_2013_Z7550-01078_java_17006_ia.depot
#
#
# Bundle(s):
#
Java70 1.7.0.06.00 Java 7.0 for HP-UX
bash-4.1#
bash-4.1# swlist -d @ /tmp/jdk/Itanium_JDK_
Itanium_JDK_6.0.18-_Apr_2013_Z7550-01026_jdk6_16018_ia.depot
Itanium_JDK_JRE_7.0.06_-_May_2013_Z7550-01078_java_17006_ia.depot
bash-4.1# swlist -d @ /tmp/jdk/Itanium_JDK_6.0.18-_Apr_2013_Z7550-01026_jdk6_16018_ia.depot
# Initializing...
# Contacting target "HPITA"...
#
# Target: HPITA:/tmp/jdk/Itanium_JDK_6.0.18-_Apr_2013_Z7550-01026_jdk6_16018_ia.depot
#
#
# Bundle(s):
#
Java60JDK 1.6.0.18.00 Java 6.0 JDK for HP-UX
bash-4.1#
bash-4.1# swinstall -s /tmp/jdk/Itanium_JDK_JRE_7.0.06_-_May_2013_Z7550-01078_java_17006_ia.depot
不修改,按提示走
opt空间不足了。。。
bash-4.1# bdf /opt
Filesystem kbytes used avail %used Mounted on
/dev/vg00/lvol4 6553600 6245392 305816 95% /opt
bash-4.1#
bash-4.1# bdf /opt
Filesystem kbytes used avail %used Mounted on
/dev/vg00/lvol4 6553600 6245392 305816 95% /opt
bash-4.1#
bash-4.1#
bash-4.1# lvdisplay /dev/vg00/lvol4
--- Logical volumes ---
LV Name /dev/vg00/lvol4
VG Name /dev/vg00
LV Permission read/write
LV Status available/syncd
Mirror copies 0
Consistency Recovery MWC
Schedule parallel
LV Size (Mbytes) 6400
Current LE 400
Allocated PE 400
Stripes 0
Stripe Size (Kbytes) 0
Bad block on
Allocation strict
IO Timeout (Seconds) default
bash-4.1#
bash-4.1# vgdisplay vg00
--- Volume groups ---
VG Name /dev/vg00
VG Write Access read/write
VG Status available
Max LV 255
Cur LV 11
Open LV 11
Max PV 16
Cur PV 2
Act PV 2
Max PE per PV 4328
VGDA 4
PE Size (Mbytes) 16
Total PE 8646
Alloc PE 7850
Free PE 796
Total PVG 1
Total Spare PVs 0
Total Spare PVs in use 0
bash-4.1#
大概还有 796*16M=12736M 左右空间
bash-4.1# lvextend -L 10240 /dev/vg00/lvol4
Logical volume "/dev/vg00/lvol4" has been successfully extended.
Volume Group configuration for /dev/vg00 has been saved in /etc/lvmconf/vg00.conf
bash-4.1# lvdisplay /dev/vg00/lvol4
--- Logical volumes ---
LV Name /dev/vg00/lvol4
VG Name /dev/vg00
LV Permission read/write
LV Status available/syncd
Mirror copies 0
Consistency Recovery MWC
Schedule parallel
LV Size (Mbytes) 10240
Current LE 640
Allocated PE 640
Stripes 0
Stripe Size (Kbytes) 0
Bad block on
Allocation strict
IO Timeout (Seconds) default
bash-4.1#
bash-4.1# bdf /opt/
Filesystem kbytes used avail %used Mounted on
/dev/vg00/lvol4 6553600 6245392 305816 95% /opt
bash-4.1# more /etc/fstab|grep opt
/dev/vg00/lvol4 /opt vxfs delaylog 0 2
bash-4.1#
bash-4.1# fsadm -F vxfs -b 10240m /opt
vxfs fsadm: /dev/vg00/rlvol4 is currently 6553600 sectors - size will be increased
bash-4.1# bdf /opt/
Filesystem kbytes used avail %used Mounted on
/dev/vg00/lvol4 10485760 6245512 4207136 60% /opt
bash-4.1#
继续安装
bash-4.1# swinstall -s /tmp/jdk/Itanium_JDK_JRE_7.0.06_-_May_2013_Z7550-01078_java_17006_ia.depot
NOTE: The interactive UI was invoked, since no software was
specified.
Starting the terminal version of swinstall...
To move around in swinstall:
- use the "Tab" key to move between screen elements
- use the arrow keys to move within screen elements
- use "Ctrl-F" for context-sensitive help anywhere in swinstall
On screens with a menubar at the top like this:
bash-4.1# swlist -l product |grep -i java7
bash-4.1# swlist -l product |grep -i java
DB2V81JHLP 8.1.0.32 Java Help (HTML)
ISEE-Java A.01.40.00 RST Java Runtime 1.4
Jdk13 1.3.1.13.01 Java2 1.3 SDK
Jdk14 1.4.2.03.04 Java2 1.4 SDK
Jdk14 1.4.2.09.02 Java2 1.4 SDK
Jdk15 1.5.0.17.00 Java 1.5 JDK
Jdk60 1.6.0.00.00 Java 6.0 JDK
Jdk70 1.7.0.06.00 Java 7.0 JDK
Jpi13 1.3.1.13.01 Java2 1.3 Netscape Plugin
Jpi14 1.4.2.03.04 Java2 1.4 Netscape Plugin
Jre13 1.3.1.13.01 Java2 1.3 RTE 1.3
Jre14 1.4.2.03.04 Java2 1.4 RTE
Jre14 1.4.2.09.02 Java2 1.4 RTE
Jre15 1.5.0.17.00 Java 1.5 JRE
Jre60 1.6.0.00.00 Java 6.0 JRE
Jre70 1.7.0.06.00 Java 7.0 JRE
bash-4.1#
bash-4.1# swlist -d @ /tmp/jdk/Itanium_JDK_6.0.18-_Apr_2013_Z7550-01026_jdk6_16018_ia.depot
# Initializing...
# Contacting target "HPITA"...
#
# Target: HPITA:/tmp/jdk/Itanium_JDK_6.0.18-_Apr_2013_Z7550-01026_jdk6_16018_ia.depot
#
#
# Bundle(s):
#
Java60JDK 1.6.0.18.00 Java 6.0 JDK for HP-UX
bash-4.1#
1.6
bash-4.1# swinstall -s /tmp/jdk/Itanium_JDK_6.0.18-_Apr_2013_Z7550-01026_jdk6_16018_ia.depot
NOTE: The interactive UI was invoked, since no software was
specified.
Starting the terminal version of swinstall...
To move around in swinstall:
target = /opt/java6_16018
其他默认
bash-4.1# /opt/java6_16018/opt/java6/bin/java -version
java version "1.6.0.18"
Java(TM) SE Runtime Environment (build 1.6.0.18-jinteg_18_mar_2013_03_35-b00)
Java HotSpot(TM) Server VM (build 20.14-b01-jre1.6.0.18-rc2, mixed mode)
bash-4.1#