<p class="md-end-block md-p"> Redis 可以支援以下連接方式:透過客戶端工具連接、透過資料庫管理工具 DMC 連線等。 </p> <p class="md-end-block md-p">連線遠端</p><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><p class="md-end-block md-p">連線本機</p><pre class="md-fences md-end-block md-fences-with-lineno ty-contain-cm modeLoaded"> redis-cli</pre><p class="md-end-block md-p">設定密碼</p><pre class="md-fences md-end-block md-fences-with-lineno ty-contain-cm modeLoaded"> config set requirepass pass_123456</pre><p class="md-end-block md-p">取得密碼</p><pre class="md-fences md-end-block md-fences-with-lineno ty-contain-cm modeLoaded"> config get requirepass</pre><p class="md-end-block md-p">登入</p><pre class="md-fences md-end-block md-fences-with-lineno ty-contain-cm modeLoaded"> auth pass_123456</pre>