阿里云标准-Redis安全基线检查

 

==打开保护模式==

protected-mode yes

 

==修改默认6379端口==

port 8793

 

==禁用或者重命名危险命令==

修改 redis.conf 文件,添加

rename-command FLUSHALL ""
rename-command FLUSHDB  ""
rename-command CONFIG   ""
rename-command KEYS     ""
rename-command SHUTDOWN ""
rename-command DEL ""
rename-command EVAL ""

重命名为"" 代表禁用命令,如想保留命令,可以重命名为不可猜测的字符串,如:rename-command FLUSHALL joYAPNXRPmcarcR4ZDgC

 

==限制redis 配置文件访问权限==

chmod 600 /<filepath>/redis.conf

 

--END--

相关文章:

  • 2021-08-29
  • 2021-04-03
  • 2021-07-03
  • 2021-09-22
  • 2022-02-15
  • 2021-11-01
  • 2021-10-04
  • 2021-12-18
猜你喜欢
  • 2021-06-05
  • 2021-12-30
  • 2021-10-05
  • 2021-07-24
  • 2021-10-14
  • 2022-12-23
相关资源
相似解决方案