1. 设置监听ip为本地和内网ip

bind 127.0.0.1 192.168.1.99     ## 可以是多个ip,用空格分割

2. 设置监听端口

port 16379

3. 设置密码

在配置文件中加入:

requirepass password
访问:redis-cli -a 'password'

4. 将config命令改名

在配置文件中加入:

rename-command CONFIG modname

5. 禁用config命令

在配置文件中加入:

rename-command CONFIG ""

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-09-28
  • 2022-12-23
  • 2021-07-23
  • 2021-11-22
  • 2022-02-25
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-03-06
  • 2022-01-03
  • 2021-11-18
  • 2021-07-21
相关资源
相似解决方案