windows 下启动 redis
cmd 到redis安装目录
redis-server.exe redis.window.conf
或redis-server redis.window.conf
以服务的形式启动redis:
1.安装服务
redis-server –service-install redis.windows.conf –loglevel verbose
2.卸载服务
redis-server –service-uninstall
3.启动服务
redis-server –service-start
4.停止服务
redis-server –service-stop
redis-server –service-stop –service-name serviceName
5.命名服务
可以启动三个独立的redis服务:
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