<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                ThinkChat2.0新版上線,更智能更精彩,支持會話、畫圖、視頻、閱讀、搜索等,送10W Token,即刻開啟你的AI之旅 廣告
                  最近在開發中,線上數據需要用到redis緩存服務器,于是在本地開發時也需要redis環境。這是一篇如何在Windows下安裝并使用redis的文章,如果需要在PHP代碼中操作redis我們可能還需要下載php擴展`php_redis.dll`,具體可參考[這篇文章](/article/16.html) ## 安裝Redis 首先找到Windows下的Redis安裝包,打開[官網下載頁面](http://redis.io/download)找到"Windows"項然后點擊“[Learn more](https://github.com/MSOpenTech/redis)”,打開github項目。 ![](https://box.kancloud.cn/a605646baadabaf5458735ce8e0674a3_1181x617.png) 在打開github的頁面中下拉找到README.md里面的"Redis on Windows"項,這里有一句”You can download the latest unsigned binaries and the unsigned MSI installer from the release page.“.點擊”release page“打開下載頁面,這里可以選擇對應的版本下載。 ![](https://box.kancloud.cn/14c12f3171bc5a3623af3ad6c8a0787e_991x432.png) ### 選擇下載版本 這里我選擇版本3.0.501然后在頁面下點擊“Redis-x64-3.0.501.msi"下載安裝包 ![](https://box.kancloud.cn/4486207882f13071ca1fe76af8d5495f_955x480.png) ### 得到.msi文件,開始安裝 下載Redis-x64-3.0.501.msi之后雙擊打開安裝配置頁面,一般來說默認即可,但是你要知道配置項的意思,根據具體情況配置。最后點擊install即可安裝。 ## 啟動Redis ### 在安裝目錄啟動黑窗口 安裝之后打開文件夾`C:\ProgramFiles\Redis`發現安裝目錄有很多.exe文件,使用Shift+鼠標右鍵,選擇**在此處打開命令窗口(W)**,呼出'黑窗口'。 ![](https://box.kancloud.cn/343242ba5a8a116ac4e582bf0ddac837_254x450.png) ### 啟動服務 進入redis安裝目錄后 開啟服務 執行下面的命令: ~~~ redis-server.exe redis.windows.conf ~~~ >**錯誤** [8552] 05 May 10:54:14.607 # Creating Server TCP listening socket *:6379: bind: Unknown error 如果出現上面的錯誤查看端口是否被占用,我的是右擊有redis-server.exe服務開啟了,關掉重新執行命令即可; ## 測試使用 ~~~ redis-cli.exe -h 127.0.0.1 -p 6379 keys * set website blog.webfsd.com get website // 得到 blog.webfsd.com ~~~
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看