Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to install redis in Linux centos7

2025-04-02 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/01 Report--

This article introduces the relevant knowledge of "how to install redis in Linux centos7". In the actual case operation process, many people will encounter such difficulties. Next, let Xiaobian lead you to learn how to deal with these situations! I hope you can read carefully and learn something!

1, because redis c language development is based on c language, so we have to check whether we install gcc environment, if not installed online installation

Check if GCC is installed.

gcc -v

If gcc is installed, the version will be displayed

If not installed, install online

yum -y install gcc-c++2, Decompress and compile redis compressed package

decompression

[root@localhost soft]# tar -zxvf redis-3.0.0

After decompression, you can see our redis folder

Go to our redis directory and compile make

cd redis-3.0.0make3, Create folder installation

create folders

mkdir /usr/local/redis

Specify directory installation

make install PREFIX=/usr/local/redis4, redis front-end startup method

Go to the bin folder in our installation directory to boot

cd /usr/local/redis/bin./ redis-server

Initiate successful effect

5. Backend startup mode of redis

Copy the redis.conf configuration file from the redis source package to/usr/local/redis/bin/

Go to redis-3.0.0 we extracted and copy the configuration file redis.conf

cd soft redis-3.0.0.0cp redis.conf /usr/local/redis/bin

Modify the redis.conf file in our bin directory to change daemonize from no to yes

The requested URL/usr/local/redis/bin was not found on this server.

cd /usr/local/redis/binvi redis.conf

start

./ redis-server redis.conf./ redis-cli"Linux centos7 how to install redis" content introduced here, thank you for reading. If you want to know more about industry-related knowledge, you can pay attention to the website. Xiaobian will output more high-quality practical articles for everyone!

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.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report