redis install

How to install Redis on Centos 7 (Simple Guide)

Redis is an in-memory data structure project implementing a distributed, in-memory key–value database with optional durability. Redis supports different kinds of abstract data structures, such as strings, lists, maps, sets, sorted sets, HyperLogLogs, bitmaps, streams, and spatial indexes.

1. Install Redis
yum install redis

2. Start Redis
service redis start

3. Login Redis Server
redis-cli -p 8852

4. Edit /etc/redis,conf maxclient to 80000

# maxclients 80000

5. Increase the limit
cat >> /etc/systemd/system.conf <<'EOF' DefaultLimitCORE=infinity DefaultLimitNOFILE=100000 DefaultLimitNPROC=100000 EOF 6. Increase the user limit cat >> /etc/systemd/user.conf <<'EOF' DefaultLimitCORE=infinity DefaultLimitNOFILE=100000 DefaultLimitNPROC=100000 EOF 7. Reload the system and redis # systemctl daemon-reload # service redis restart 8.Login redis and check maxclients is it been update " config get maxclients " 127.0.0.1:6391> config get maxclients

1) “maxclients”
2) “79968”

0 replies

Leave a Reply

Want to join the discussion?
Feel free to contribute!

Leave a Reply

Your email address will not be published. Required fields are marked *