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

浙公网安备 33010602011771号