Redis 后台启动

启动

redis-server redis.conf (需要指定配置文件)

后台运行

linux: redis.conf 添加 daemonize yes配置

redis.conf

window

安装redis服务:

1
redis-server --service-install redis.conf

安装多个实例

1
2
3
4
5
6
7
8
9
10
11
redis-server --service-install –service-name redisService1 –port 10001

redis-server --service-start –service-name redisService1

redis-server --service-install –service-name redisService2 –port 10002

redis-server --service-start –service-name redisServic

redis-server --service-install –service-name redisService3 –port 10003

redis-server --service-start –service-name redisService3

启动redis

1
2
3
redis-server --service-start    停止redis

redis-server --service-stop

卸载redis服务

1
redis-server --service-install redis.windows.conf
关注作者公众号,获取更多资源!
赏作者一杯咖啡~