apt-get install redis-server
add-apt-repository ppa:chris-lea/redis-server
apt update
apt install redis-server
安装方法: https://www.dotdeb.org/instructions/
root@mf8.biz:~# sudo ps aux | grep redis
sudo: unable to resolve host www.mf8.biz
redis 29409 0.0 0.8 37224 8796 ? Ssl 10:43 0:00 /usr/bin/redis-server 127.0.0.1:6379
usermod -g www-data redis
mkdir -p /var/run/redis/
chown -R redis:www-data /var/run/redis
# Specify the path for the Unix socket that will be used to listen for
# incoming connections. There is no default, so Redis will not listen
# on a unix socket when not specified.
#
unixsocket /var/run/redis/redis.sock
unixsocketperm 777
service redis-server restart
root@MF8.BIZ:~# ls -lh /var/run/redis
total 4.0K
-rw-r--r-- 1 redis www-data 6 Mar 14 10:56 redis-server.pid
srwx------ 1 redis www-data 0 Mar 14 10:56 redis.sock
root@MF8.BIZ:~#
分享数据库前沿,解构实战干货,推动数据库技术变革