It is very easy to install Redis under Linux, as described in the following steps (official website):
1、下载源码,解压缩后编译源码。
$ wget http://download.redis.io/releases/redis-2.8.3.tar.gz
$ tar xzf redis-2.8.3.tar.gz
$ CD redis-2.8.3
$ make
2、编译完成后,在Src目录下,有四个可执行文件redis-server、redis-benchmark、redis-cli和redis.conf。然后拷贝到一个目录下。
Mkdir/usr/local/redis
CP Redis-server/usr/local/redis
CP Redis-benchmark/usr/local/redis
CP Redis-cli/usr/local/redis
CP Redis.conf/usr/local/redis
Cd/usr/local/redis
3、在redis解压目录下的src目录下,安装( make install )
"Open Redis Port":
View FIREWALLD status through Systemctl status Firewalld
Turn on the firewall by Systemctl start FIREWALLD
View the Firewalld status again via Systemctl status Firewalld, showing that running is turned on
If you want to turn off the firewall settings, you may be able to turn off the feature by Systemctl stop firewalld this command.
Executes Firewall-cmd--permanent--zone=public--add-port=6379/tcp, prompting for success, indicating successful setup
Linux installation Redis