| 知乎专栏 |
备份配置文件
cp /etc/valkey/valkey.conf{,.backup}
[root@testing ~]# ss -lnt | grep 6379 LISTEN 0 511 127.0.0.1:6379 0.0.0.0:* LISTEN 0 511 [::1]:6379 [::]:*
[root@testing ~]# vim /etc/valkey/valkey.conf #bind 127.0.0.1 -::1 bind * -::*
[root@testing ~]# systemctl restart valkey
[root@testing ~]# ss -lnt | grep 6379 LISTEN 0 511 0.0.0.0:6379 0.0.0.0:* LISTEN 0 511 [::]:6379 [::]:*