<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>

                合規國際互聯網加速 OSASE為企業客戶提供高速穩定SD-WAN國際加速解決方案。 廣告
                # 1.4.3 Redis的安裝 ## 1. 相關鏈接 {#1-相關鏈接} * 官方網站:[https://redis.io](https://redis.io/) * 官方文檔:[https://redis.io/documentation](https://redis.io/documentation) * 中文官網:[http://www.redis.cn](http://www.redis.cn/) * GitHub:[https://github.com/antirez/redis](https://github.com/antirez/redis) * 中文教程:[http://www.runoob.com/redis/redis-tutorial.html](http://www.runoob.com/redis/redis-tutorial.html) * Redis Desktop Manager:[https://redisdesktop.com](https://redisdesktop.com/) * Redis Desktop Manager GitHub:[https://github.com/uglide/RedisDesktopManager](https://github.com/uglide/RedisDesktopManager) ## 2. Windows下的安裝 {#2-windows下的安裝} Redis 在 Windows 下可以直接到 GitHub 的發行版本里面下載,[https://github.com/MSOpenTech/redis/releases](https://github.com/MSOpenTech/redis/releases)。 可以下載 Redis-x64-3.2.100.msi 安裝即可。 另外推薦下載一個 Redis Desktop Manager 可視化管理工具,來管理Redis。 可以到官方網站下載,鏈接為:[https://redisdesktop.com/download](https://redisdesktop.com/download)也可以到 GitHub 下載最新發行版本,鏈接為:[https://github.com/uglide/RedisDesktopManager/releases](https://github.com/uglide/RedisDesktopManager/releases)。 ## 3. Linux下的安裝 {#3-linux下的安裝} ### Ubuntu、Debian、Deepin {#ubuntu、debian、deepin} 使用a pt-get 命令行安裝: ```text sudo apt-get -y install redis-server ``` 運行如上命令即可完成 Redis 的安裝,然后輸入 redis-cli 即可進入 Redis 命令行模式。 ```text $ redis-cli 127.0.0.1:6379 > set 'name' 'Germey' OK 127.0.0.1:6379 > get 'name' "Germey" ``` 這樣就證明 Redis 成功安裝了,但是現在 Redis 還是無法遠程連接的,依然需要修改配置文件,配置文件路徑為 /etc/redis/redis.conf。 注釋這一行: ```text bind 127.0.0.1 ``` 另外推薦給 Redis 設置密碼,取消注釋這一行: ```text requirepass foobared ``` foobared 即當前密碼,可以自行修改。 然后重啟 Redis 服務,使用如下命令: ```text sudo /etc/init.d/redis-server restart ``` 現在就可以使用密碼遠程連接 Redis 了。 另外停止和啟動 Redis 服務的命令如下: ```text sudo /etc/init.d/redis-server stop sudo /etc/init.d/redis-server start ``` ### CentOS、RedHat {#centos、redhat} 首先添加 EPEL 倉庫,然后更新 Yum 源: ```text sudo yum install epel-release sudo yum update ``` 然后安裝 Redis 數據庫: ```text sudo yum -y install redis ``` 安裝好之后啟動 Redis 服務: ```text sudo systemctl start redis ``` 同樣可以使用 redis-cli 進入 Redis 命令行模式操作。 另外為了可以使 Redis 能被遠程連接,需要修改配置文件,路徑為 /etc/redis.conf。 注釋這一行: ```text bind 127.0.0.1 ``` 另外推薦給 Redis 設置密碼,取消注釋這一行: ```text requirepass foobared ``` foobared 即當前密碼,可以自行修改。 之后保存重啟 Redis 服務: ```text sudo systemctl restart redis ``` 這樣就可以遠程連接 Redis 了。 ## 4. Mac下的安裝 {#4-mac下的安裝} 推薦使用 Homenbrew 安裝,執行 brew 命令即可。 ```text brew install redis ``` 啟動 Redis 服務: ```text brew services start redis redis-server /usr/local/etc/redis.conf ``` 這樣就啟動了 Redis 服務。 同樣可以使用 redis-cli 進入 Redis 命令行模式。 Mac 下 Redis 的配置文件路徑是 /usr/local/etc/redis.conf,可以通過修改它來配置訪問密碼。 修改配置文件后需要重啟 Redis 服務,停止、重啟 Redis 服務的命令如下: ```text brew services stop redis brew services restart redis ``` 另外在 Mac 下也可以安裝 Redis Desktop Manager 可視化管理工具來管理 Redis。 ## 5.額外 [redis學習地址](https://xintiaohuiyi.gitbook.io/flask-note/7redisjian-zhi-dui-shu-ju-ku)
                  <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>

                              哎呀哎呀视频在线观看