Error installing redis: redis requires Ruby Version & gt= 2.3.0.
Error installing redis: redis requires Ruby Version & gt= 2.3.0.
Recently, the following error was reported when installing redis cluster:
the version of ruby in centos7 Yum library supports 2.0.0, but gem needs at least 2.3.0 to install redis, and uses RVM to update ruby
Follow the steps below
1. Install curl
yum -y install curl
2. Install RVM
curl - L get.rvm.io | bash - s stable code>
this is an installation failure error
this situation mostly occurs in self signed certificates. The error report means that the issuing certificate authority is not authenticated and cannot be identified.
3. Modify hosts
VI/etc/hosts code>
add the following
199.232.28.133 raw.githubusercontent.com code>
4. Execute curl command and download RVM
curl - L get.rvm.io | bash - s stable code>
Load shell configuration
source/usr/local/RVM/scripts/RVM code>
5. Check the known Ruby versions in RVM library
rvm list known
6. Install the ruby version
rvm install 2.6.3
7. Use Ruby Version
rvm use 2.6.3
8. Set the default version
ruby --version
9. Uninstall the old version
rvm remove 2.0.0
10. Install the interface version of redis and ruby
gem install redis
This is the perfect solution~
Read More:
- Centos7 offline installation of redis and PHP extension redis
- (20200916 Solved)Docker||redis-cli Could not connect to Redis at 127.0.0.1:6379: Connection refused
- Error connecting to redis on localhost:6379 (Redis::TimeoutError)
- Redis: How to Configurate Redis.conf File
- [Solved] Redis Error: org.springframework.data.redis.RedisConnectionFailureExceptionjava.net.SocketTimeoutException
- Termux installing redis
- The spring boot set appears in the stand-alone version of redis Servlet.service () for servlet [dispatcherServlet] in context with path [] thr
- ERR Slot 3300 is already busy (Redis::CommandError)
- Redis cannot load windows.conf
- No such file or directory error when redis is started under Windows
- Redis: (error) MOVED 8352 192.168.145.128:6380 [How to Solve]
- Stackexchange.redis data timeout [How to Solve]
- The local program cannot access the test environment redis cluster through public IP_ compromise
- Fatal error in PHP project: class’ redis’ not found
- Redis cli create creates an error when creating a cluster
- Redis compilation error cannot find config.m4
- JWT and token + redis scheme of spring security
- Solution to redis error in CentOS of idea connected virtual machine
- Solve the problem of testing redis cluster“ java.lang.NumberFormatException : For input string: “ [email protected]@17002 “And so on
- Jedis operation redis report noauth authentication required