「Redis」:修訂間差異

出自Gea-Suan Lin's Wiki
跳至導覽 跳至搜尋
本頁面具有訪問限制。如果您看見此訊息,這代表您沒有訪問本頁面的權限。
行 11: 行 11:
== 設定 ==
== 設定 ==


 修改<code>/etc/redis/redis.conf</code>,把預設只聽localhost的部份改成所有界面都聽:
 修改<code>/etc/redis/redis.conf</code>,把預設只聽localhost的部份改成所有界面都聽 ,然後把<code>protected-mode</code>關閉


<syntaxhighlight lang="apache">
<syntaxhighlight lang="apache">
bind * -::*
bind * -::*
protected-mode no
</syntaxhighlight>
</syntaxhighlight>



於 2023年3月7日 (二) 19:10 的修訂

Redis是一套NoSQL。

安裝

Ubuntu下可以直接安裝官方的APT Repository:

sudo add-apt-repository -y ppa:redislabs/redis; sudo apt install -y redis

設定

修改/etc/redis/redis.conf,把預設只聽localhost的部份改成所有界面都聽,然後把protected-mode關閉:

bind * -::*
protected-mode no

開機啟動:

sudo systemctl enable redis-server.service

外部連結