精品久久看,欧美成人久久一级c片免费,日本加勒比在线精品视频,国产一区二区三区免费大片天美,国产成人精品999在线,97理论三级九七午夜在线观看

東坡下載:內(nèi)容最豐富最安全的下載站!

首頁知識庫網(wǎng)絡軟件 → Windows下安裝并設置Redis

Windows下安裝并設置Redis

相關文章發(fā)表評論 來源:百度搜索時間:2018/10/29 16:32:13字體大。A-A+

更多

作者:專題點擊:14次評論:0次標簽: Redis

但有時候又想在windows下折騰下redis,可以從redis下載頁面看到如下提示(在頁面中搜索 "windows"):

在 Release 頁面中,可以找到 msi 安裝文件以及 .zip 文件(而且有3.0的beta版,請下拉查找)。


下載解壓,沒什么好說的,在解壓后的bin目錄下有以下這些文件:


redis-benchmark.exe         #基準測試

redis-check-aof.exe         # aof

redis-check-dump.exe        # dump

redis-cli.exe               # 客戶端

redis-server.exe            # 服務器

redis.windows.conf          # 配置文件

當然,還有一個 RedisService.docx 文件,看似是一些啟動和安裝服務的說明文檔,但是照著他的指示來,你就會死的很慘,莫名其妙的死了,不知道原因。

【換機器重新測試后已查明,如果不是Administrator用戶,就會出各種問題,服務安裝以后啟動不了等等問題,應該可以修改服務的屬性-->登錄用戶等選項來修正.】


【如果你安裝的windows沒有Administrator賬戶,請參考這篇文章:


Windows 7 啟用超級管理員administrator賬戶的N種方法 】

網(wǎng)上參考了一些資料,發(fā)覺可以使用,也就沒有深究,直接拿來主義:


啟動腳本如下:


redis-server  redis.windows.conf

可以將其保存為文件 startup.bat ; 下次就可以直接啟動了。

但是在cmd之中執(zhí)行這行命令之后報錯:


D:\Develop\redis-2.8.12>redis-server.exe redis.windows.conf

[7736] 10 Aug 21:39:42.974 #

The Windows version of Redis allocates a large memory mapped file for sharing

the heap with the forked process used in persistence operations. This file

will be created in the current working directory or the directory specified by

the 'dir' directive in the .conf file. Windows is reporting that there is

insufficient disk space available for this file (Windows error 0x70).

 

You may fix this problem by either reducing the size of the Redis heap with

the --maxheap flag, or by starting redis from a working directory with

sufficient space available for the Redis heap.

 

Please see the documentation included with the binary distributions for more

details on the --maxheap flag.

 

Redis can not continue. Exiting.


根據(jù)提示,是 maxheap 標識有問題,打開配置文件 redis.windows.conf ,搜索 maxheap , 然后直接指定好內(nèi)容即可.

.......

#  

# maxheap <bytes>

maxheap 1024000000

.......

然后再次啟動,OK,成功.

D:\Develop\redis-2.8.12>redis-server  redis.windows.conf

                _._

           _.-``__ ''-._

      _.-``    `.  `_.  ''-._           Redis 2.8.12 (00000000/0) 64 bit

  .-`` .-```.  ```\/    _.,_ ''-._

 (    '      ,       .-`  | `,    )     Running in stand alone mode

 |`-._`-...-` __...-.``-._|'` _.-'|     Port: 6379

 |    `-._   `._    /     _.-'    |     PID: 6736

  `-._    `-._  `-./  _.-'    _.-'

 |`-._`-._    `-.__.-'    _.-'_.-'|

 |    `-._`-._        _.-'_.-'    |           http://redis.io

  `-._    `-._`-.__.-'_.-'    _.-'

 |`-._`-._    `-.__.-'    _.-'_.-'|

 |    `-._`-._        _.-'_.-'    |

  `-._    `-._`-.__.-'_.-'    _.-'

      `-._    `-.__.-'    _.-'

          `-._        _.-'

              `-.__.-'

 

[6736] 10 Aug 22:01:22.247 # Server started, Redis version 2.8.12

[6736] 10 Aug 22:01:22.248 * The server is now ready to accept connections on port 6379


然后可以使用自帶的客戶端工具進行測試。

雙擊打開 redis-cli.exe , 如果不報錯,則連接上了本地服務器,然后測試,比如 set命令,get命令:


127.0.0.1:6379> set tiemao http://blog.csdn.net/renfufei

OK

127.0.0.1:6379> get tiemao

"http://blog.csdn.net/renfufei"

127.0.0.1:6379>

這應該很好理解,連接上了本機的6379端口。

如果需要幫助,可以在 cli窗口中輸入 help查看,例如:


127.0.0.1:6379> help

redis-cli 2.8.12

Type: "help @<group>" to get a list of commands in <group>

      "help <command>" for help on <command>

      "help <tab>" to get a list of possible help topics

      "quit" to exit

127.0.0.1:6379> help @string

根據(jù)提示,可以輸入 help 空格 然后敲tab鍵,可以像命令提示一樣告訴你可以有哪些幫助分組,多敲幾個 tab 試試?

備注說明:

1. 這個版本是Win64的,所以32位windows就不要折騰了。


2. 我的操作系統(tǒng)是Windows 7 64位旗艦版,運行內(nèi)存16GB,用戶不是Administrator,而是 hasee,所以設置了下 redis-server.exe 和redis-cli.exe 的屬性中的兼容性權限(以管理員身份運行),如果你運行出錯,可能需要設置一下這里。


3. 什么360啊,UAC啊,防火墻啊,該關的請關閉。。。


4. 如果有其他問題,歡迎留言或者評論, 這只是一個心血來潮時的折騰

接觸了好久Redis但一直沒在windows下使用,請輕拍。


附加幾個 bat 批處理腳本,請根據(jù)需要靈活配置


service-install.bat


redis-server.exe --service-install redis.windows.conf --loglevel verbose

uninstall-service.bat

redis-server --service-uninstall

startup.bat

redis-server.exe redis.windows.conf


擴展知識

相關評論

閱讀本文后您有什么感想? 已有 人給出評價!

  • 2791 喜歡喜歡
  • 2101 頂
  • 800 難過難過
  • 1219 囧
  • 4049 圍觀圍觀
  • 5602 無聊無聊
熱門評論
最新評論
發(fā)表評論 查看所有評論(0)
昵稱:
表情: 高興 可 汗 我不要 害羞 好 下下下 送花 屎 親親
字數(shù): 0/500 (您的評論需要經(jīng)過審核才能顯示)
主站蜘蛛池模板: 国产区精品高清在线观看 | 国产福利三区 | 伊人网视频在线观看 | 国内自拍视频网站 | 国产中文字幕视频在线观看 | 欧美乱淫| 精品国产一区二区三区不卡 | 国产视频色 | 免费一级a毛片在线播 | 桃花视频网在线观看免费 | 亚洲欧美日产综合在线网 | 国内自拍视频一区二区三区 | 成人黄色在线电影 | 日韩色综合 | 久久精品99毛片免费 | 全免费a级毛片免费看视频免 | 久久免费播放视频 | h视频网站在线观看 | 国产精品久久亚洲一区二区 | 国产成人短视频 | 动漫毛片 | 久久网色| 国产福利在线永久视频 | 国产精品男人的天堂 | 99精品久久 | 日韩午夜| 国产99精品在线观看 | 成人在线短视频 | 伊人国产精品 | 97se色综合一区二区二区 | 国产精品青草久久久久婷婷 | a级毛片在线播放 | 国产69精品久久久久99 | 国产视频久久久久 | 国产精品入口免费视频 | 国产99r视频精品免费观看 | 97色伦在线 | 国产激情久久久久久影院 | 男人天堂一区 | 久久精品视频播放 | 五月情婷婷 |