linux 下载安装 redis并修改后台启动

Installation

Download, extract and compile Redis with:

$ wget http://download.redis.io/releases/redis-5.0.8.tar.gz
$ tar xzf redis-5.0.8.tar.gz
$ cd redis-5.0.8
$ make

The binaries that are now compiled are available in the src directory. Run Redis with:

$ src/redis-server

You can interact with Redis using the built-in client:

$ src/redis-cli
redis> set foo bar
OK
redis> get foo
"bar"

修改redis配置文件

1.后端启动redis命令(切换到src目录下): ./bin/redis-server ./redis.conf

2.停止redis服务:redis-cli SHUTDOWN

posted @ 2020-03-18 11:14  山那边风景  阅读(204)  评论(0)    收藏  举报