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

                企業??AI智能體構建引擎,智能編排和調試,一鍵部署,支持知識庫和私有化部署方案 廣告
                # Using Redis > 原文:[https://docs.gitlab.com/ee/ci/services/redis.html](https://docs.gitlab.com/ee/ci/services/redis.html) * [Use Redis with the Docker executor](#use-redis-with-the-docker-executor) * [Use Redis with the Shell executor](#use-redis-with-the-shell-executor) * [Example project](#example-project) # Using Redis[](#using-redis "Permalink") 由于許多應用程序都將 Redis 用作鍵值存儲,因此最終需要它才能運行測試. 下面將指導您如何使用 GitLab Runner 的 Docker 和 Shell 執行程序執行此操作. ## Use Redis with the Docker executor[](#use-redis-with-the-docker-executor "Permalink") 如果您將[GitLab Runner](../runners/README.html)與 Docker 執行程序一起使用,則基本上已經完成了所有設置. 首先,在您的`.gitlab-ci.yml`添加: ``` services: - redis:latest ``` 然后,您需要配置您的應用程序以使用 Redis 數據庫,例如: ``` Host: redis ``` 就是這樣. 現在可以在您的測試框架中使用 Redis. 您還可以使用[Docker Hub](https://hub.docker.com/_/redis)上可用的任何其他 Docker 映像. 例如,要使用 Redis 2.8,服務將變為`redis:2.8` . ## Use Redis with the Shell executor[](#use-redis-with-the-shell-executor "Permalink") Redis 也可以在手動配置的服務器上使用,該服務器與 Shell 執行程序一起使用 GitLab Runner. 在您的構建機器中安裝 Redis 服務器: ``` sudo apt-get install redis-server ``` 驗證您可以使用`gitlab-runner`用戶連接到服務器: ``` # Try connecting the Redis server sudo -u gitlab-runner -H redis-cli # Quit the session 127.0.0.1:6379> quit ``` 最后,將您的應用程序配置為使用數據庫,例如: ``` Host: localhost ``` ## Example project[](#example-project "Permalink") 為了方便起見,我們使用公共可[共享的](../runners/README.html)運行程序在[GitLab.com](https://gitlab.com)上運行了[示例 Redis 項目](https://gitlab.com/gitlab-examples/redis) . 想要破解嗎? 只需對其進行分叉,提交并推送您的更改. 稍后,公共跑步者將選擇更改并開始工作.
                  <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>

                              哎呀哎呀视频在线观看