Linux-Centos7 minimum pattern mounting jdk

1. Xftp downloaded to the machine compressed into jdk usr directory or opt

image.png

2. Check the / opt directory file and extracting archive (tar -zxvf compressed file name)

image.png

3. Configure environment variables (vi / etc / profile into the environment interface, i enter write mode, the bottom add the following three lines of code, esc: wq to save and exit)


image.png

4. Activate jdk (source / etc / profile), and view the java -version

image.png


Guess you like

Origin blog.51cto.com/14497235/2428979