redis开启远程连接及后台运行

设置远程连接

修改配置文件

bind 0.0.0.0 
protected-mode no

后台运行

daemonize yes

重新启动

[root@localhost redis-5.0.5]# src/redis-server redis.conf
12183:C 16 May 2020 12:49:00.650 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
12183:C 16 May 2020 12:49:00.650 # Redis version=5.0.5, bits=64, commit=00000000, modified=0, pid=12183, just started
12183:C 16 May 2020 12:49:00.650 # Configuration loaded

猜你喜欢

转载自www.cnblogs.com/xl4ng/p/12900020.html