Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
sudo sed -i 's/bind 127.0.0.1/#bind 127.0.0.1/gi' /etc/redis.conf
sudo sed -i 's/protected-mode yes/protected-mode no/gi' /etc/redis.conf
sudo /usr/sbin/setsebool httpd_can_network_connect=1


Below shell script is useful, when you monitor Redis status on your CentOS terminal

Code Block
languagebash
titleredis_info.sh
#!/bin/bash
for i in {0..1024}
do
        clear
        redis-cli info clients
        sleep 1
done