当前位置:网站首页>Linux Installation redis

Linux Installation redis

2022-07-05 02:45:00 A vegetable chicken that is working hard

1. Preparation before installation

  • yum install centos-release-scl scl-utils-build
  • yum list all --enablerepo=‘centos-sclo-rh’
  • yum install -y devtoolset-8-toolchain
  • scl enable devtoolset-8 bash
  • gcc --version

2. download , decompression , rename

  • cd /usr/local
  • wget https://download.redis.io/releases/redis-6.2.6.tar.gz
  • tar -xvf redis-6.2.6.tar.gz
  • mv redis-6.2.6 redis626

3. install redis

  • cd /usr/local/redis626
  • make && make install

4. start-up redis

  • cd /usr/local/redis626/utils
  • ./install_server.sh

  • Report errors
     Insert picture description here
  • solve
     Insert picture description here
  • Start again

  • Successful launch
     Insert picture description here

5. Check the startup

  • systemctl status redis_6379.service
  • Restart if not started :systemctl restart redis_6379.service

6. start-up ⾃ Band redis-cli client

 Insert picture description here

7. Set to allow remote connections

  • vim /etc/redis/6379.conf
     Insert picture description here
  • systemctl restart redis_6379.service
原网站

版权声明
本文为[A vegetable chicken that is working hard]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/186/202207050240120814.html