1. 程式人生 > >linux下安裝redis 4.0.2

linux下安裝redis 4.0.2

redis

wget http://download.redis.io/releases/redis-4.0.2.tar.gz

解壓

tar -xvf redis-4.0.2.tar.gz

編譯

cd redis-4.0.2

make

mkdir -p /usr/local/redis

make PREFIX=/usr/local/redis install

拷貝配置文件

cp 解壓目錄裏的redis.conf /usr/local/redis/

vim /usr/local/redis/redis.conf

daemonize yes--開啟後臺守護進程

啟動服務

/usr/local/redis/bin

./redis-server ../redis.conf

lsof -i :6379

netstat -antup | grep 6379


linux下安裝redis 4.0.2