Get the App
SLTechnology News&Howtos  ›  Development  › 

How to install redis in Linux centos7

Shulou Source: shulou.com Published: 2022-06-01 00:37:30 09月21日 Update

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!

Tags: Files folders directories contents methods more knowledge language online compilation configuration utility success learning and then front-end dilemma reality situation effect Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno vpn Shulou Information NVidia Huawei Linux