In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-10 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/02 Report--
This article mainly explains the "CentOS7 installation Redis5.0.5 tutorial", the article explains the content is simple and clear, easy to learn and understand, the following please follow the editor's ideas slowly in depth, together to study and study the "CentOS7 installation Redis5.0.5 tutorial" bar!
CentOS7 install Redis5.0.5
1. Download URL: https://redis.io/
Http://download.redis.io/releases/redis-5.0.5.tar.gz
two。 Check to see if the dependency package gcc is installed
# rpm-qa | grep gcc
Gcc-c++-4.8.5-36.el7_6.2.x86_64
Libgcc-4.8.5-36.el7_6.2.x86_64
Gcc-4.8.5-36.el7_6.2.x86_64
3. Unzip it in the / opt/ directory
# tar zxvf redis-5.0.5.tar.gz
4. Compile source code
# cd redis-5.0.5/
# make
5. Installation
# make install PREFIX=/usr/local/redis
Cd / usr/local/redis/bin
Redis-benchmark redis performance testing tool
Redis-check-aof AOF File repair tool
Redis-check-rdb RDB File repair tool
Redis-cli redis command line client
Redis.conf redis profile
Redis-sentinal redis cluster management tools
Redis-server redis service process
6. Start Redis
6.1 Front-end mode startup
# / usr/local/redis/bin/redis-server
Or
# cd / usr/local/redis/bin
#. / redis-server
The disadvantage of front-end mode startup is that the ssh command window closes, then the redis-server program ends, and this method is not recommended.
Front-end startup shutdown ctrl + c
6.2 backend mode startup
1) copy redis.conf
# cp / opt/redis-5.0.5/redis.conf / usr/local/redis/bin/
2) modify redis.conf
# vim / usr/local/redis/bin/redis.conf
Find daemonize and press I to enter edit mode and change no to yes
Start redis
# cd / usr/local/redis/bin
#. / redis-server redis.conf
Check to see if the startup is successful
# ps aux | grep redis
Redis default port is 6379. You can change the redis.conf file and modify the port number.
# ps-ef | grep redis
# lsof-I: 6379
Shutdown initiated by the backend
# kill 18061
# pkill redis-server
Or
#. / redis-cli shutdown
Forcibly terminating the redis process may result in the loss of redis persistence data. The correct way to stop Redis should be to send SHUTDOWN commands to Redis.
7. Connect redis
Modify redis.conf to add the local ip address after bind 127.0.0.1
# vi redis.conf
Bind 127.0.0.1 192.168.19.11
Or
Protected-mode no
To enable protected-mode protection mode, you need to configure bind ip or set an access password
Turn off protected-mode mode so that external networks can directly access it.
7.1 built-in client connection redis
#. / redis-cli-h 127.0.0.1-p 6379
> exit
#. / redis-cli-h 192.168.19.11-p 6379
> exit
#. / redis-cli-p 6379
> exit
#. / redis-cli
> exit
7.2 graphical interface connection to redis
Https://redisdesktop.com/
Thank you for reading, the above is the content of the "CentOS7 installation Redis5.0.5 tutorial", after the study of this article, I believe you have a deeper understanding of the CentOS7 installation Redis5.0.5 tutorial, the specific use of the need for you to practice and verify. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!
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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.