In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)06/01 Report--
How to install redis and set up boot self-startup in a centos7 system? I believe that most people have not yet learned this skill, in order to let you learn, to give you a summary of the following content, do not say much, let's move on.
1. Install redis first
Tar xzf redis-3.0.0.tar.gz
Cd redis-3.0.0/
Make
Make install PREFIX=/usr/local/redis
Create a directory to store redis and copy files
Mkdir-p / usr/local/redis
Cd src/
Cp. / redis-server / usr/local/redis/
Cp. / redis-cli / usr/local/redis/
Cd..
Cp redis.conf / usr/local/redis/
Back-end startup
Copy the redis.conf configuration file in the redis source package to / usr/local/redis/bin/ (above)
Modify redis.conf to change daemonize from no to yes
Start when you are finished:
. / redis-server redis.conf
Set up boot boot
Create a redis folder under the / etc directory
Cd / etc/
Mkdir redis
Copy the / usr/local/redis/redis.conf file to the / etc/redis directory and name it 6379.conf
Cp / usr/local/redis/redis.conf / etc/redis/6379.conf
Make a copy of the startup script of redis and put it in the / etc/init.d directory
Cp / redis-3.0.0/utils/redis_init_script / etc/init.d/redisd
Set redis Boot self-boot
Cd / etc/init.d/
Vi redisd
Modify the path, save and exit vi
EXEC=/usr/local/redis/redis-server
CLIEXEC=/usr/local/redis/redis-cli
Execute the boot command
Chkconfig redisd on
Start and shut down redis
Service redisd start
Service redisd stop
The above is the method of installing redis and setting up boot self-startup in the centos7 system. Do you have anything to gain after reading it? If you want to know more about it, you are welcome to follow the industry information!
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.