There are four main ways to install software in linux:
- Unzip installation, such as jdk, tomcat
- rpm installation, such as mysql
- Compile and install, such as tengine (Taobao branch of nginx)
- yum online installation, such as gcc, gcc-c++, python, vim, it is recommended to use this method for tool classes and basic libraries, saving time and effort
yum is a software housekeeper similar to linux, you can install/uninstall software through a simple yum install/remove xxx
yum install gcc
yum source, the famous ones in China are:
http://mirrors.163.com/ (NetEase)
http://mirrors.aliyun.com/ (Ali)
The configuration of the yum source is described in the mirror website above. The following is an example of the source of 163:
In the following chapters, I will introduce 1, 2, and 3 installation methods by building a Java environment.