It is actually very simple to configure jdk on solaris.
Since solaris has three architectures, sparc, x86, and x64, the installed packages are different, so you must first confirm what architecture the server is.
Look at the server-related information
http://docs. oracle.com/cd/E19455-01/805-7229/6j6q8svf4/index.html
View server version and architecture
solaris sub-x86 x64 sparc architecture
View system architecture
showrev
sunsrv2@#showrev
Hostname: sunsrv2
Hostid: 8622dfbc
Release: 5.10
Kernel architecture: sun4v
Application architecture: sparc
Hardware provider: Oracle Corporation
Domain:
Kernel version: SunOS 5.10 Generic_147440-01
View Release
cat /etc/release
sunsrv2@#cat /etc/release
Oracle Solaris 10 8/11 s10s_u10wos_17b SPARC
Copyright (c) 1983, 2011, Oracle and/or its affiliates. All rights reserved.
Assembled 23 August 2011
How to check whether a solaris system is 32-bit or 64-bit ?
Using the isainfo -v command
If it is running in 32-bit mode, the output is as follows:
32-bit sparc applications
If it is running in 64-bit mode, the output is as follows:
64-bit sparcv9 applications
32-bit sparc applications
Note:
Since Solaris10, AMD64 and EM64 (intel) processors are supported, which is usually called x64, and the above commands can also be used to judge. The x86 and x64 of Solaris10 use the same installation package, namely Solaris_x86_ga_u2_....
[c-sharp] view plaincopy
bash-3.00$ isainfo -b -v
64-bit sparcv9 applications
vis2 vis popc
bash-3.00$
can be known from the above, the solaris system is 64-bit.
Another:
psrinfo -v View the status of the cup
mpstat can list the status of multiple cpu loads
prtconf | grep 'Memory' can view the amount of memory.
prtdiag -v Display the system configuration information
sparc installation process
Refer to document
http://docs.oracle .com/javase/7/docs/webnotes/install/solaris/solaris-jdk.html#install-archive
need to download both 32-bit and 64-bit versions
jdk-7u<version>-solaris-sparc.tar.gz (32-bit)
jdk-7u<version>-solaris-sparcv9.tar.gz (64-bit)
Unzip
% gzip -dc jdk-7u<version>-solaris-sparc.tar.gz | tar xf -
% gzip -dc jdk-7u<version>-solaris-sparcv9.tar.gz | tar xf -
the default JAVA command is the directory /usr/java
java -> /test1/jdk1.6.0_18
configured by the system using symlinks Xuan our symbolic link can be
ln -s /usr/j2se/ /usr/java
solaris uses decompressed jdk
Guess you like
Origin http://10.200.1.11:23101/article/api/json?id=326563532&siteId=291194637
Recommended
Ranking