企业🤖AI智能体构建引擎,智能编排和调试,一键部署,支持私有化部署方案 广告
【redis主从配置】 主库:127.0.0.1 从库:127.0.0.2 主库: daemonize yes maxmemory 512MB protected-mode no bind 0.0.0.0 masterauth 1234567 requirepass 123456 pidfile /var/run/redis_6379.pid logfile "redis-6379.log" dbfilename dump-6379.rdb 从库: daemonize yes maxmemory 512MB protected-mode no bind 0.0.0.0 slaveof 127.0.0.2 6379 masterauth 123456 requirepass 12345678 pidfile /var/run/redis_6379.pid logfile "redis-6380.log" dbfilename dump-6380.rdb 注:远程连接redis,需要设置服务器的安全组规则端口,如redis的6379端口 参考: https://www.cnblogs.com/architectforest/p/12511089.html