Linux redis installation

Recently, due to work needs, I have to install Linux and install redis on Linux. The following is my installation process, and I will share it.
1. Install Linux. Follow the prompts to install. Others' operating documents may not be suitable for you. If you can't understand English, use Youdao dictionary. (The installation file is in the attachment I uploaded )

2.
a. After installation, open Linux and click "Create New Virtual Machine".

.

 

 

b. Next step-----Select "Typical (recommended)"

c. Next step-----installer CD image file-----click "Browse" to add the image file (in the attachment).

The user name account at the back is custom added.

The installation process is estimated to take about half an hour (be sure to remember your password).

 

3. After installation. Open the virtual machine console, if it is not on the desktop, you can search for "t" in this and it will come out, see the picture below:



 

 

After opening the console, enter the command: sudo su to enter the root privilege directory.

 

Input: mkdir/usr/local/redis [ Create ( mkdir ) a redis folder in this directory]

Input: cd /usr/local/src [Look for the src directory]

Input: wget  http://download.redis.io/releases/redis-2.8.13.tar.gz [Download redis]

Input:   tar xzf  redis -2.8.13.tar.gz

Input: ln -s  redis-2.8.13  redis [ Create a link ]

Type: cd redis

Input:   make PREFIX=/usr/local/redis install [ Install into the specified directory ]

 

Note the last line above, we specify the directory to install via PREFIX. If it does not fail, you can start redis directly. If make fails, generally gcc is not installed in your system, then you can install it through yum: 

Type:   yum install gcc

After the installation is complete, continue to execute make. 

 

 

After installation, I didn't test it, just input:  redis-server [start] ( the following figure shows the successful startup console display )
If you want to test, you can read other people's articles, there is a test process here: http://www .iyunv.com/forum.php?mod=viewthread&tid=76096&extra=page%3D1&ordertype=1

 



 

 

 

 

 

 

 

 

 

 

 

 

 

 


 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326460698&siteId=291194637