In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)06/01 Report--
Redis stand-alone installation 0. Install dependency packages
Yum-y install lrzsz gcc unzip autoconf docbook-style-xsl
1. Download redis source code redis.io2. Upload to the server and compile, install
Rz redis-4.0.10.tar.gz
Tar xzvf redis-4.0.10.tar.gz
Make
Make PREFIX=/usr/local/redis install
3. System configuration
A: vim / etc/sysctl.conf
Append vm.overcommit_memory=1
Parameter meaning: default is 0
0, which means that the kernel will check whether there is enough memory available for the application process; if there is enough memory available, the memory request is allowed; otherwise, the memory request fails and the error is returned to the application process.
1, which means that the kernel allows all physical memory to be allocated, regardless of the current memory state.
2, indicating that the kernel allows more than the sum of all physical memory and swap space to be allocated
B: vim / etc/sysctl.conf
Append: net.core.somaxconn=1024
Parameter meaning: default is 128
Net.core.somaxconn is a kernel parameter in linux, which represents the upper limit of backlog for socket snooping (listen).
C: vim / etc/rc.local
Append: echo never > / sys/kernel/mm/transparent_hugepage/enabled
Parameter meaning: THP will cause memory locks to affect the performance of redis
Add execution permission: chmod + x / etc/rc.d/rc.local
4.redis configuration
Ip setting: bind 192.168.1.22
Port setting: port 6380
Background operation: daemonize yes
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.