1、修改bind的ip bind 0.0.0.0 修改为这个 port 6379 这个为redis端口 2、将protected-mode模式修改为no,允许外网访问 protected-mode no 3、设置需要密码才能访问,password修改为你自己的密码 requirepass password
注:如果不是通过docker方式运行redis,是通过下载tar,希望以守护进程的方式运行,就是关闭了远程连接窗口,redis依然运行
daemonize yes
1、修改bind的ip bind 0.0.0.0 修改为这个 port 6379 这个为redis端口 2、将protected-mode模式修改为no,允许外网访问 protected-mode no 3、设置需要密码才能访问,password修改为你自己的密码 requirepass password
注:如果不是通过docker方式运行redis,是通过下载tar,希望以守护进程的方式运行,就是关闭了远程连接窗口,redis依然运行
daemonize yes