<p class="md-end-block md-p"> Redis 可以支援以下連接方式:透過客戶端工具連接、透過資料庫管理工具 DMC 連線等。 </p> <p class="md-end-block md-p">連線遠端</p><div class="code" style="position:relative; padding:0px; margin:0px;"><pre class="md-fences md-end-block md-fences-with-lineno ty-contain-cm modeLoaded"> redis-cli -h 47.101.63.222 -p 56379</pre><div class="contentsignin">登入後複製</div></div><p class="md-end-block md-p">連線本機</p><div class="code" style="position:relative; padding:0px; margin:0px;"><pre class="md-fences md-end-block md-fences-with-lineno ty-contain-cm modeLoaded"> redis-cli</pre><div class="contentsignin">登入後複製</div></div><p class="md-end-block md-p">設定密碼</p><div class="code" style="position:relative; padding:0px; margin:0px;"><pre class="md-fences md-end-block md-fences-with-lineno ty-contain-cm modeLoaded"> config set requirepass pass_123456</pre><div class="contentsignin">登入後複製</div></div><p class="md-end-block md-p">取得密碼</p><div class="code" style="position:relative; padding:0px; margin:0px;"><pre class="md-fences md-end-block md-fences-with-lineno ty-contain-cm modeLoaded"> config get requirepass</pre><div class="contentsignin">登入後複製</div></div><p class="md-end-block md-p">登入</p><div class="code" style="position:relative; padding:0px; margin:0px;"><pre class="md-fences md-end-block md-fences-with-lineno ty-contain-cm modeLoaded"> auth pass_123456</pre><div class="contentsignin">登入後複製</div></div>