江西省城乡建设厅建设网站,建筑设计学什么的,做网站的免费空间,seo电商运营是什么意思1、创建/myredis文件夹 2、复制redis.conf配置文件到新建的文件夹中 3、配置一主两从#xff0c;创建三个配置文件 ----redis6379.conf ----redis6380.conf ----redis6381.conf
4、在三个配置文件写入内容 redis6379.conf里面的内容 include /myredis/redis.conf pidfile /va…1、创建/myredis文件夹 2、复制redis.conf配置文件到新建的文件夹中 3、配置一主两从创建三个配置文件 ----redis6379.conf ----redis6380.conf ----redis6381.conf
4、在三个配置文件写入内容 redis6379.conf里面的内容 include /myredis/redis.conf pidfile /var/redis_6379.conf port 6379 dbfilename dump6379.rdb 其他两个文件同上只需修改数字就行
5、启动三个redis服务 使用 info replication查看当前主机运行状况 在从机上执行slaveof 主机IP 端口号