In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-25 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/02 Report--
Today, I will talk to you about how to install and configure redis in centos7. Many people may not know much about it. In order to make you understand better, the editor has summarized the following for you. I hope you can get something according to this article.
1 prepare
1. A computer that can connect to the external network (this article takes centos7 as an example)
2 start the installation
1. First monitor whether it has been installed before (ps-ef | grep redis)
Because I have installed it locally, I have the above record, otherwise it will be empty
2. Install gcc-c++ (required for redis compilation environment)
Sudo yum install gcc-c++
3. Download the source code locally (wget http://download.redis.io/releases/redis- you need the version .tar.gz-I downloaded 3.2.8)
I downloaded it to user/local.
4. Decompress (tar-zxvf redis-3.2.8.tar.gz)
5. Compilation
Enter redis-3.2.8 (cd redis-3.2.8)
Execute make & & make install
3 configuration
1. Create redis/etc and redis/bin directories under local, and store configuration files and startup files respectively.
2. Copy redis-3.2.8/redis.conf to redis/etc
3. Move the green file generated in step 5 above into redis/bin
4. Configure redis/etc/redis.conf
The main modifications are:
# bind 127.0.0.1 (comment out the line, otherwise other machines will not be able to connect to the redis service)
Requirepass 123456789 (release the line and configure your own password)
Daemonize yes (redis running in the background)
5. Start (. / user/local/redis/bin/redis-server / user/local/redis/etc/redis.conf)
Note: because it is running in the background, the startup diagram (startup log and other information) of redis will not appear here.
4 Test
Test the connection locally with redis manager desktop
After reading the above, do you have any further understanding of how to install and configure redis in centos7? If you want to know more knowledge or related content, please follow the industry information channel, thank you for your support.
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.