Install Redis
当前文档有中文版本:点击这里切换到中文
Prepare
Create Redis User
groupadd redis |
Create Directory
# data directory |
Compiling
# install clang |
Config
Edit Config
export REDIS_HOME=/usr/local/redis |
Shutdown script
# Create `redis-shutdown` script |
|
chmod +x /usr/local/redis/bin/redis-shutdown |
Create Systemd Service
cat >/usr/lib/systemd/system/redis.service<<EOF |
All articles in this blog are licensed under CC BY-NC-SA 4.0 unless stating additionally.
Comment