博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
Windows 下面 redis 发布为服务的官方方法
阅读量:4438 次
发布时间:2019-06-07

本文共 2415 字,大约阅读时间需要 8 分钟。

除了 NSSM 之外 另外一种方式感觉还是很好用的 redis-server --service-install  redis.windows.conf --loglevel verbose感觉也可以 唯一指定 config文件。 这里因为与redis-server 在同一个目录上面所以不需要加绝对路径了。

 

Installing the Service----------------------*--service-install*This must be the first argument on the redis-server command line. Arguments after this are passed in the order they occur to Redis when the service is launched. The service will be configured as Autostart and will be launched as "NT AUTHORITY\\NetworkService". Upon successful installation a success message will be displayed and Redis will exit.This command does not start the service.For instance:redis-server --service-install redis.windows.conf --loglevel verboseUninstalling the Service------------------------*--service-uninstall*This will remove the Redis service configuration information from the registry. Upon successful uninstallation a success message will be displayed and Redis will exit.This does command not stop the service.For instance:redis-server --service-uninstallStarting the Service--------------------*--service-start*This will start the Redis service. Upon successful start, a success message will be displayed and Redis will begin running.For instance:redis-server --service-startStopping the Service--------------------*--service-stop*This will stop the Redis service. Upon successful termination a success message will be displayed and Redis will exit.For instance:redis-server --service-stopNaming the Service------------------*--service-name **name***This optional argument may be used with any of the preceding commands to set the name of the installed service. This argument should follow the service-install, service-start, service-stop or service-uninstall commands, and precede any arguments to be passed to Redis via the service-install command.The following would install and start three separate instances of Redis as a service:redis-server --service-install --service-name redisService1 --port 10001redis-server --service-start --service-name redisService1redis-server --service-install --service-name redisService2 --port 10002redis-server --service-start --service-name redisService2redis-server --service-install --service-name redisService3 --port 10003redis-server --service-start --service-name redisService3 来源:
https://raw.githubusercontent.com/MSOpenTech/redis/2.8/Redis%20on%20Windows.md

 

转载于:https://www.cnblogs.com/jinanxiaolaohu/p/10658103.html

你可能感兴趣的文章
谈谈需求变更跟踪
查看>>
【POJ】2019 Cornfields
查看>>
.Net中直接操作内存
查看>>
jenkins发送测试报告邮件
查看>>
Redis 安全配置
查看>>
[轉]用 snprintf / asprintf 取代不安全的 sprintf
查看>>
android dialog转layout
查看>>
iOS面试题集
查看>>
[LeetCode169]Majority Element
查看>>
VS中ReportView的坑爹问题
查看>>
分享JS代码(转)
查看>>
基本CSS布局
查看>>
pyQuery的安装
查看>>
java 发展简史
查看>>
Js 数组排序函数sort()
查看>>
软件工程firstblood
查看>>
2014
查看>>
通过nodeJs的anywhere搭建本地服务器环境
查看>>
code[vs] 3500 快速幂入门
查看>>
架设API的时候会出现的问题
查看>>