将redis服务加入到window服务

将redis服务加入到window服务
(1)在cmd命令窗口下运行:redis-server.exe --service-install redis.windows.conf --loglevel verbose
示例:
E:\wrcold520\Redis-3.2.100-Windows-32\Redis>redis-server.exe --service-install redis.windows.conf --loglevel verbose
[7776] 10 Feb 13:56:21.950 # Granting read/write access to 'NT AUTHORITY\Network
Service' on: "E:\wrcold520\Redis-3.2.100-Windows-32\Redis" "E:\wrcold520\Redis-3
.2.100-Windows-32\Redis\"
[7776] 10 Feb 13:56:21.950 # Redis successfully installed as a service.
1
2
3
4
5
(2)启动redis服务
在cmd命令窗口下运行:redis-server --service-start

示例:
  E:\wrcold520\Redis-3.2.100-Windows-32\Redis>redis-server --service-start
  [6780] 10 Feb 14:05:18.046 # Redis service successfully started.
1
2
(3)关闭redis服务
在cmd命令窗口下运行:redis-server --service-stop

示例:
  E:\wrcold520\Redis-3.2.100-Windows-32\Redis>redis-server --service-stop
  [1660] 10 Feb 14:05:28.098 # Redis service successfully stopped.
1
2
移除redis的window服务
在cmd命令窗口下运行:redis-server --service-uninstall
示例:
E:\wrcold520\Redis-3.2.100-Windows-32\Redis>redis-server --service-uninstall
[4744] 10 Feb 13:59:18.735 # Redis service successfully uninstalled.
1
2

————————————————
版权声明:本文为CSDN博主「u011137297」的原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/u011137297/article/details/86615601

你可能感兴趣的:(django)