: This article describes how to install redis. if you are interested in the PHP Tutorial, refer to it. Redis installation steps:
----- Sometimes things that have been installed a long time ago and never re-installed for a long time will forget that I won't be able to install redis just a few days ago when I need to install redis. I checked some of what I said online, I also encountered some problems, so I should avoid similar problems next time. I take notes in advance. I am an unintelligent person, so I usually use my own method, to solve the problem again
First, you can see the official redis website
The latest version of the Redis installation package is available on the official website. you can download it first.
The installation procedure is as follows:
Method 1: manually download
1: directly go to the Web site to download the installation package, and then extract in the directory redis-3.0.7
2: Enter the downloaded redis-3.0.7 Directory, cd redis-3.0.7
3: make compilation
4: make install installation
Method 2: download using commands
1: wget http://download.redis.io/releases/redis-3.0.7.tar.gz
Note: wget is a tool for downloading files. the preceding command indicates to download objects at the specified URL and download them to the current directory.
For example, I want to download the redis installation package to "download" on my MAC, as shown in my Directory.
Run the following command on the terminal:
Cd ~ Enter the home directory to see the "download directory" you are looking"
Cd Downloads go to the download directory, and then execute the weget http://download.redis.io/releases/redis-3.0.7.tar.gz
2: then execute the tar xzf redis-3.0.7.tar.gz to unzip the installation package
3: make compilation
4: make install installation
The above is how to install redis
After the installation is complete: execute the command: reids-server to start the redis server. if you see the following image, it indicates that the installation is successful.
The above describes the redis installation steps, including the content, and hope to be helpful to friends who are interested in the PHP Tutorial.