Redis:修订间差异

来自Gea-Suan Lin's Wiki
跳到导航 跳到搜索
此页面具有访问限制。如果您看见此消息,则说明您没有权限访问此页面。
第7行: 第7行:
<syntaxhighlight lang="bash">
<syntaxhighlight lang="bash">
sudo add-apt-repository -y ppa:redislabs/redis; sudo apt install -y redis; sudo apt clean
sudo add-apt-repository -y ppa:redislabs/redis; sudo apt install -y redis; sudo apt clean
</syntaxhighlight>
如果只要裝client端的話:
<syntaxhighlight lang="bash">
sudo add-apt-repository -y ppa:redislabs/redis; sudo apt install -y redis-tools; sudo apt clean
</syntaxhighlight>
</syntaxhighlight>



2023年8月10日 (四) 09:21的版本

Redis是一套NoSQL。

安裝

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

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

如果只要裝client端的話:

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

設定

這邊假定Redis放在內部信任網路裡。

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

bind * -::*
protected-mode no

設定開機啟動:

sudo systemctl enable redis-server.service

外部連結