1. Install
1.1 下载压缩包:wget http://download.redis.io/releases/redis-5.0.4.tar.gz
1.2 解压:tar xzf redis-5.0.4.tar.gz
1.3 将解压后的文件移至 /usr/local/redis/(没有redis目录 就创建):
sudo mv ./redis-5.0.4 /usr/local/redis/
1.4 into the redis-5.0.4目录并生成编译
cd
redis-5.0.4
sudo make
1.5 测试
1.5.1 测试错误
1.5.2 Solution
sudo apt install tcl
1.5.3 测试成功
1.6 Installation
1.6.1 sudo make install
1.6.2 switching to the directory
cd /usr/local/bin
redis-benchmark redis performance testing tools
redis-check-rdb rdb file retrieval tool
redis-check-aof aof file repair tool
redis-cli redis command line client
redis-server redis server
1.6.2 复制配置文件
sudo cp redis.conf /etc/redis/redis.conf
1.6.3 安装成功
2.配置
2.1 打开配置文件
sudo vim /etc/redis/redis.conf
2.2 Binding port: For a remote connection can use this line comments, binding or real ip
2.3 Binding port number
2.4 whether to start the daemon
If set to daemon, a command line will not be blocked, similar to the service
The recommended setting is yes
2.5 persistent data file
Data file storage path 2.6
The default is the current directory
2.7 日志文件
默认没写
添加:/var/log/redis/redis-server.log
默认没有
var/log/redis文件夹,没有就创建
2.8 database, the default 16
2.9 from the master copy, backup similar bis (low version: slaveof, high version: replicaof)
No default configuration
3 final
More configure access redis mining official website
Reference: https://blog.csdn.net/ljphilp/article/details/52934933
Reproduced indicate the source: Story II odd