This article is a mirror article of machine translation, please click here to jump to the original article.

View: 17707|Reply: 0

[Source] Tutorial on installing Java virtual machines under CentOS

[Copy link]
Posted on 3/26/2018 10:41:11 AM | | | |
CentOS system version: 5.x, Java version 1.8.0_161

Java Virtual Machine download address: https://www.java.com/zh_CN/download/manual.jsp

We select Linux RPM download, and then, after the download is successful, it is sent to the server.


The uploaded file is as follows, the file only has read and write permissions, but no execution permissions

Use the following command to authorize, if the file already has permission to execute, this step can be omitted







Run the following command to install Java






Configure environment variables

Open the file /etc/profile using a vim or vi editor

Add the following content at the end of the file to save and exit




At this time, the environment variable we just configured does not take effect, enter the following command, and use the environment variable to take effect immediately




Enter the following command to verify that the environment variables are effective









Previous:Replace Centos' yum source with domestic Alibaba Cloud source
Next:CentOS Firewall is turned on, off, and checked the status
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com