Redis:修订间差异

来自Gea-Suan Lin's Wiki
跳到导航 跳到搜索
此页面具有访问限制。如果您看见此消息,则说明您没有权限访问此页面。
第20行: 第20行:
</syntaxhighlight>
</syntaxhighlight>


 開機啟動:
  社定 開機啟動:


<syntaxhighlight lang="bash">
<syntaxhighlight lang="bash">

2023年5月17日 (三) 08:52的版本

Redis是一套NoSQL。

安装

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

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

设定

这边假定Redis放在内部信任网络里。

修改/etc/redis/redis.conf,把预设只听localhost的部分改成所有界面都听,然后把protected-mode关闭:

bind * -::*
protected-mode no

社定开机启动:

sudo systemctl enable redis-server.service

外部链接