【Chapter-8】生产环境部署
【Chapter-8】生产环境部署
生产环境部署
设置linux环境
[root@wms-redis-test-1 redis]# sysctl vm.overcommit_memory vm.swappiness
vm.overcommit_memory = 0
vm.swappiness = 30
[root@wms-redis-test-1 redis]# sysctl -w vm.overcommit_memory=1
vm.overcommit_memory = 1
[root@wms-redis-test-1 redis]# sysctl -w vm.swappiness=0
vm.swappiness = 0
[root@wms-redis-test-1 redis]# echo vm.overcommit_memory=1 >> /etc/sysctl.conf
[root@wms-redis-test-1 redis]# echo vm.swappiness=0 >> /etc/sysctl.conf
[root@wms-redis-test-1 redis]# sysctl vm.overcommit_memory vm.swappiness
vm.overcommit_memory = 1
vm.swappiness = 0redis安全
配置客户端连接选项redis.conf
配置内存策略
Last updated