In this chapter, we take Redis and Nginx software as an example to introduce the installation of software under CentOS.
Need a package (can be downloaded first to the CentOS specified directory, or directly with the wget command to obtain):
Nginx-1.7.9.tar
Redis-2.8.19.tar.gz
tar.gz Software Installation The usual steps are
$./configure This step is typically used to generate Makefile, to prepare for the next compilation, you can control the installation by adding parameters to the Configure.
$ make
$ make Install (note: Run this to have sufficient permissions)
$ make clean
Redis installation process:
The first step is to download Redis:
wget http://download.redis.io/releases/redis-2.8.19.tar.gz
(If there is no wget method first install wget with yum install wget-y)
Step two, unzip the Redis
TAR-XVF redis-2.8.19.tar.gz
Step three, go to Redis directory
CD redis-2.8.19
The fourth step, compile, most of the source code packages are compiled through this step
Make
Fifth step, this command to install
Make install
Sixth step, test the installation success
Redis-server
Seventh step, detect whether the start is successful
Ps-ef|grep Redis
To the current location Redis installation Complete Next is the configuration of the redis.conf file.
Installation of Redis and Nginx software under CentOS