Redisの1.ダウンロードし、Windowsのバージョン
ダウンロード:https://github.com/microsoftarchive/redis/releases
Windows版のダウンロードが完全なパッケージです後たとえば、ハードドライブに解凍しRDISをインストール:D:/ Redisのフォルダ
2. RedisのWindows版を開始
Redisのサーバーを起動するには、次のコマンドを実行し、Redisのフォルダに移動し、DOSウィンドウを開きます。
redis-server.exe redis.windows.conf
3. [スタート] Redisの-cliのインタラクティブな環境
新Redisの-CLIクライアントを起動するには、次のコマンドを入力し、レイズのフォルダを入力して、DOSウィンドウを開きます
redis-cli.exe
Redisの起動エラー
1.# Warning: no config file specified, using the default config. In order to specify a config file use redis-server.exe /path/to/redis.conf
然后把命令改成:redis-server.exe redis.windows.conf
2.连环错误:
端口6379的错误
把redis.windows.conf里面的#bind 127.0.0.1的"#"去掉即可以
3.Creating Server TCP listening socket 127.0.0.1:6379: bind: No error
在命令行中运行
redis-cli.exe
127.0.0.1:6379>shutdown
not connected>exit
然后重新运行redis-server.exe redis.windows.conf
窓の展開のRedis
Redisのは、最初からWindowsサービス、ブーツにインストールすることができます。
redis-server --service-install redis.windows.conf
Redisのが開始されていない、インストールした後、以下のコマンドを起動します
redis-server --service-start
コマンドを停止します。
redis-server --service-stop
窓の展開エラーがRedisの遭遇します
1. #HandleServiceCommands: system error caught. error code=1073, message = CreateService failed: unknown error
解决办法:
卸载服务:
redis-server --service-uninstall
再安装服务:
redis-server --service-install redis.windows.conf