Redis是可以安装成windows服务-开机自启

其实Redis是可以安装成windows服务的,开机自启动,命令如下:

  1. redisserver serviceinstall redis.windows.conf

安装完之后,就可看到Redis已经作为windows服务了:

但是安装好之后,Redis并没有启动,启动命令如下:

  1. redisserver servicestart

停止命令:

  1. redisserver servicestop

还可以安装多个实例

  1. redisserver serviceinstall servicename redisService1 port 10001
  2. redisserver servicestart servicename redisService1
  3. redisserver serviceinstall servicename redisService2 port 10002
  4. redisserver servicestart servicename redisService2
  5. redisserver serviceinstall servicename redisService3 port 10003
  6. redisserver servicestart servicename redisService3

卸载命令:

  1. redisserver serviceuninstall

最后提示一下:2.8版本的不支持32位系统,32位系统要去下载2.6版本的。2.6版本的无法像上面一样方便的部署

Leave a Reply

Your email address will not be published. Required fields are marked *