日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 运维知识 > windows >内容正文

windows

Redis在windows下的配置

發布時間:2023/12/19 windows 22 豆豆
生活随笔 收集整理的這篇文章主要介紹了 Redis在windows下的配置 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

原文:Redis在windows下的配置

Redis在windows下的配置(在windows-64下安裝redis,請參考微軟redis的github:https://github.com/MSOpenTech/redis/releases) 下面是windows32的配置 下載地址http://files.cnblogs.com/files/cuiwenyuan/Redis-3.2.100-Windows-32.zip 假設安裝目錄為E:\wrcold520\Redis-3.2.100-Windows-32\Redis
1、啟動沒有參數配置的Redis:(1)雙擊redis-server.exe(2)在cmd命令窗口下運行redis-server或者redis-server.exe# 示例:Microsoft Windows [版本 6.1.7601]版權所有 (c) 2009 Microsoft Corporation。保留所有權利。E:\wrcold520\Redis-3.2.100-Windows-32\Redis>redis-server[6788] 10 Feb 13:47:38.750 # Warning: no config file specified, using the default config. In order to specify a config file use redis-server /path/to/redis.conf[6788] 10 Feb 13:47:38.753 # Warning: 32 bit instance detected but no memory limit set. Setting 3 GB maxmemory limit with 'noeviction' policy now._.__.-``__ ''-.__.-`` `. `_. ''-._ Redis 3.0.504 (00000000/0) 32 bit.-`` .-```. ```\/ _.,_ ''-._( ' , .-` | `, ) Running in standalone mode|`-._`-...-` __...-.``-._|'` _.-'| Port: 6379| `-._ `._ / _.-' | PID: 6788`-._ `-._ `-./ _.-' _.-'|`-._`-._ `-.__.-' _.-'_.-'|| `-._`-._ _.-'_.-' | http://redis.io`-._ `-._`-.__.-'_.-' _.-' |`-._`-._ `-.__.-' _.-'_.-'|| `-._`-._ _.-'_.-' |`-._ `-._`-.__.-'_.-' _.-' `-._ `-.__.-' _.-'`-._ _.-' `-.__.-' [6788] 10 Feb 13:47:38.755 # Server started, Redis version 3.0.504[6788] 10 Feb 13:47:38.755 * DB loaded from disk: 0.000 seconds[6788] 10 Feb 13:47:38.756 * The server is now ready to accept connections on port 63792、帶配置文件啟動Redis在cmd命令窗口下運行:redis-server redis.windows.conf或者redis-server.exe redis.windows.conf# 示例:Microsoft Windows [版本 6.1.7601]版權所有 (c) 2009 Microsoft Corporation。保留所有權利。E:\wrcold520\Redis-3.2.100-Windows-32\Redis>redis-server redis.windows.conf[7540] 10 Feb 13:43:07.046 # Warning: 32 bit instance detected but no memory limit set. Setting 3 GB maxmemory limit with 'noeviction' policy now._.__.-``__ ''-.__.-`` `. `_. ''-._ Redis 3.0.504 (00000000/0) 32 bit.-`` .-```. ```\/ _.,_ ''-._( ' , .-` | `, ) Running in standalone mode|`-._`-...-` __...-.``-._|'` _.-'| Port: 6379| `-._ `._ / _.-' | PID: 7540`-._ `-._ `-./ _.-' _.-'|`-._`-._ `-.__.-' _.-'_.-'|| `-._`-._ _.-'_.-' | http://redis.io`-._ `-._`-.__.-'_.-' _.-' |`-._`-._ `-.__.-' _.-'_.-'|| `-._`-._ _.-'_.-' |`-._ `-._`-.__.-'_.-' _.-' `-._ `-.__.-' _.-'`-._ _.-' `-.__.-' [7540] 10 Feb 13:43:07.047 # Server started, Redis version 3.0.504[7540] 10 Feb 13:43:07.048 * DB loaded from disk: 0.000 seconds[7540] 10 Feb 13:43:07.048 * The server is now ready to accept connections on port 63793、將redis加入windows服務(1)在cmd命令窗口下運行:redis-server.exe --service-install redis.windows.conf --loglevel verbose### 示例:Microsoft Windows [版本 6.1.7601]版權所有 (c) 2009 Microsoft Corporation。保留所有權利。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\NetworkService' 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.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.
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.4、移除redis的windows服務在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.

?

總結

以上是生活随笔為你收集整理的Redis在windows下的配置的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。