Linux (redhat) server configuration, Chapter 2: JDK installation

I have been working on a Linux (redhat) server recently . Since I have not used the linux system before, I recorded the solutions to the problems encountered in the operation steps for future reference; this article is for the [linux (redhat) server configuration] series The second chapter of the article.

1. Download the rpm installation package of jdk:

      There are many online resources. . . . . .

2. Install JDK

      2.1) First check whether the system already has a JDK, use the command: rpm -qa |grep jdk, generally speaking, the new system has openjdk installed, then uninstall it, use the command: rpm -e -nodeps java-1.4.2- openjdk-xxx

      2.2) Install jdk, rpm -ivh jdk-7u79-linux-x64.rpm

carry out! ! ! ! ! ! ! !

Guess you like

Origin blog.csdn.net/nanxiaotiantian/article/details/54603719