In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-09-22 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.
The market share of Chrome browser on the desktop has exceeded 70%, and users are complaining about
The world's first 2nm mobile chip: Samsung Exynos 2600 is ready for mass production.According to a r
A US federal judge has ruled that Google can keep its Chrome browser, but it will be prohibited from
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
About us Contact us Product review car news thenatureplanet
More Form oMedia: AutoTimes. Bestcoffee. SL News. Jarebook. Coffee Hunters. Sundaily. Modezone. NNB. Coffee. Game News. FrontStreet. GGAMEN
© 2024 shulou.com SLNews company. All rights reserved.