【先定一个小目标】Redis 安装成windows服务-开机自启

1、第一步安装成windows服务的,开机自启动

redis-server --service-install redis.windows.conf

 

2、启动\关闭

redis-server --service-start
redis-server --service-stop

3、可安装多个实例

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 redisService2
redis-server --service-install –service-name redisService3 –port 10003
redis-server --service-start –service-name redisService3

4、卸载命令

redis-server --service-uninstall

  

 

posted @ 2016-09-09 16:11  疯狂蚂蚁工  阅读(208)  评论(0编辑  收藏  举报