Home IT Linux Windows Database Network Programming Server Mobile  
           
  Home \ Linux \ CentOS7 install JDK     - git checkout generated in the use of temporary br (Linux)

- Source install Python3.4 on CentOS (Linux)

- RPM package fabrication method (Linux)

- Nine artifact control disk partition under Linux (Linux)

- Simple security measures to reinforce the Linux kernel (Linux)

- Linux RPM (Linux)

- Use LKM change the default linux security level (Linux)

- Regular expressions in Perl (Programming)

- Summary Linux bond of multi-interface load balancing (Linux)

- Verify the character set on MyCAT (Database)

- Ubuntu 14.04 / 14.10 how to install FFmpeg 2.5.1 (Linux)

- RedHat Performance Tuning (Server)

- How to write a new Git protocol (Linux)

- Ubuntu arm-none-eabi-gcc compiler treated with STM32F10x (Linux)

- Java Performance Tuning the proxy mode (Programming)

- Tip: Use Cryptsetup U disk encryption (Linux)

- CentOS 6.5 installation and deployment SVN 1.8.10 (Linux)

- Based on a complete solution RMI service to transfer large files (Programming)

- 5 steps to help you become a good Docker contributors (Linux)

- Ubuntu and derived versions of the user how to install G Mic 1.5.8.5 (Linux)

 
         
  CentOS7 install JDK
     
  Add Date : 2016-10-09      
         
       
         
  One, CentOS 7 unloading system comes openjdk

1, built-in query system jdk, use the following command:

rpm -qa | grep java
At this point the system will list the presence of jdk, if there is to be unloaded, there is no direct installation.

2, uninstall, use the following command:

rpm -e --nodeps jdk related names
After uninstalling can be installed jdk, related queries and unloading operations

Two, jdk installation

1, jdk download and upload to / usr / java directory

jdk7 download address: http: //www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html select the corresponding version of linux, download rpm files. Here is a selection jdk-7u79-linux-x64.rpm. And upload it to the Linux / urs / java directory (java directory does not exist it will be created).

2, extract the installation

Run the following command to decompress

rpm -ivh rpm file name

3, the configuration profile file

Run the following command

vi / etc / profile
Add the following to the end and keep the profile file

export JAVA_HOME = / usr / java / jdk1.7.0_79
export CLASSPATH =:. $ JAVA_HOME / jre / lib / rt.jar: $ JAVA_HOME / lib / dt.jar: $ JAVA_HOME / lib / tools.jar
export PATH = $ PATH: $ JAVA_HOME / bin
/usr/java/jdk1.7.0_79 refers to the path of jdk

After saving, run the following commands to validate the configuration

source / etc / profile
Check jdk is installed successfully, run the following command

java -version
     
         
       
         
  More:      
 
- CentOS 6 Install Xen4.2 Virtualization Practice (Linux)
- ARM runtime environment built from scratch using QEMU emulator (Linux)
- Linux common network tools: batch scanning of nmap hosting service (Linux)
- Ubuntu 14.10 installation GNOME 3.14 (Linux)
- Reset CentOS / RHEL root account password 7 (Linux)
- Linux iptables firewall settings whitelist (RHEL 6 and CentOS 7) (Linux)
- RHEL / CentOS / Fedora Install Nagios 4.0.1 (Linux)
- Linux system boot process ARM platforms (Linux)
- Elasticsearch 2.20 Highlight (Server)
- Redhat 7 modify the default run level method --RHEL7 use systemd to create a symbolic link to the default runlevel (Linux)
- CentOS 6.6 x64 Oracle Database 11gR2 RAC automated installation scripts (Database)
- Android will save the picture to see the album and timely (Programming)
- The text formatting tools awk Linux system (Linux)
- Oracle online redefinition (Database)
- MySQL completely uninstall and install Configuring Character Sets under Linux (Database)
- Realize screen recording and playback via Linux command (Linux)
- mydumper installation error process (Database)
- Linux desktop system using the remote server in clear text ssh password (Server)
- CentOS use wget (Linux)
- Add your own kernel and ramfs based on an existing Linux LiveCD (Linux)
     
           
     
  CopyRight 2002-2016 newfreesoft.com, All Rights Reserved.