There are many ways to install software on CentOS. Below we will introduce the two simplest software installation methods. I hope it will be helpful to you!
How to install software in CentOS7
Method 1: Use yum package manager to install software online
1. Install gcc as an example
yum install gcc
or (recommended learning: jquery video tutorial)
yum -y install gcc
-y means if asked during the installation process, the default input y .
Method 2:Download the source code, use compile and install
1, compile and install Python3.7 as an example
wget https://www.openssl.org/source/ tar zxvf Python-3.7.0.tgz # 解压 cd Python-3.7.0 # 切换到刚才解压出的 Python-3.7.0路径 ./configure # 自动配置一些路径之类。 make # 编译代码 make install #将编译生成的安装文件,拷贝到对应的目录去
2, Compile and install openssl as an example
wget https://www.openssl.org/source/openssl-1.0.2r.tar.gz # 下载 tar zxvf openssl-1.0.2r.tar.gz cd openssl-1.0.2r ./config make && make install
This article comes from the PHP Chinese website, CentOS usage tutorial column, please pay attention to this column for more related tutorials!
The above is the detailed content of How to install software on CentOS7. For more information, please follow other related articles on the PHP Chinese website!