In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces "the detailed steps of installing jdk1.5 in rhel5.6 system". In the daily operation, I believe many people have doubts about the detailed steps of installing jdk1.5 in rhel5.6 system. The editor consulted all kinds of materials and sorted out simple and easy-to-use methods of operation. I hope it will be helpful to answer the doubts of "detailed steps of installing jdk1.5 in rhel5.6 system". Next, please follow the editor to study!
A problem was found when installing JDK on rhel 5.6. the newly installed version does not work properly and always shows the same version when viewed with java-version.
Java version "1.4.2"
Gij (GNU libgcj) version 4.1.2 20080704 (Red Hat 4.1.2-50)
After careful consideration, it should be due to the influence of the JAVA version that comes with the system.
First, remove the JDK environment that comes with the system and install what you need.
1. View the JDK that comes with the system
# rpm-qa | grep gcj
See the following message:
2. Uninstall the JAVA that comes with the system:
# rpm-e-nodeps java-1.4.2-gcj-compat-1.4.2.0-40jpp.115
Uninstall it without checking for dependencies
3. Check the JDK that comes with or has been installed on the system, and then uninstall it
# rpm-qa | grep jdk
Jdk-1.4.2-fcs
# rpm-e-- nodeps jdk-1.4.2-fcs uninstall it
4. Then set up the java directory under usr and install the new jdk
First upload the jdk-1_5_0_22-linux-amd64.bin installation package to / usr/java
#. / jdk-1_5_0_22-linux-amd64.bin
There is a prompt in the middle to press y to continue, and the jdk-1_5_0_22 directory will be generated under / usr/java after installation.
3. Summary of common parameters of RPM:
RPM installation:
-h (or-- hash) output hash token (``#'') during installation
-v display additional information
-I display the summary information of the software package
-- percent outputs the progress of installation as a percentage.
-- excludedocs does not install documentation files in the package
-- includedocs installation documentation
-- replacepkgs forces reinstallation of already installed packages
-- replacefiles replaces files belonging to other software packages
-- noscripts does not run pre-installation and post-installation scripts
-- prefix installs the package to the path specified by
-- ignorearch does not verify the structure of the package
-- ignoreos does not check the operating system on which the package is running
-- nodeps does not check dependency relationships
-- ftpproxy is used as a FTP proxy
-- ftpport specifies that the port number of FTP is
RPM uninstall:
-- test only performs deleted tests
-- noscripts does not run pre-installation and post-installation scripts
-- nodeps does not check for dependencies
Force ignores conflicts between software packages and files
RPM query and upgrade:
-p (or ``-'') query the files of the software package
-f query which software package it belongs to
-a query for all installed software packages
-g query the software packages belonging to the group
I display the summary information of the software package
-l displays a list of files in the package
-c display a list of profiles
-d displays a list of document files
-s displays a list of files in the package and displays the status of each file
-- scripts displays installation, uninstall and verification scripts
-- queryformat (or-- qf) displays query information in a user-specified manner
-- dump displays all verified information for each file
-- provides displays the functions provided by the software package
-- requires (or-R) displays the functions required by the software package
-U software upgrade
Verification of-V software
At this point, the study on "detailed steps for installing jdk1.5 in rhel5.6 system" is over. I hope to be able to solve your doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.