Redis single-node installation
A, Redis data types
- string
- hash
- list
- set
- token
Second, the installation
2.1 Download
wget http://download.redis.io/releases/redis-5.0.5.tar.gz
2.2. Unpack
tar -xf redis-5.0.5.tar.gz
2.3. Installation
make
make install PREDIX=/opt/redis
2.4 modify environment variables
vim /etc/profile
export REDIS_HOME:/opt/redis
export PATH:.$PATH:REDIS_HOME/bin
2.5. Installation Services
cd utils
./install_server.sh 按脚本填写配置,自动生成脚本文件在/etc/redis/6379