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

Install redis under linux

2025-04-09 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

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

Upload the redis-2.8.23.tar.gz package to centos and put it on a directory

Perform tar zxvf redis-2.8.23.tar.gz to decompress

Enter the decompression directory after decompression:

Enter the src directory

Cd src

Execute make to compile

Execute after compilation is completed

Start redis in the background

Verify that redis started successfully:

Execute under the scr directory

Set test 1

Get test

If the result is as follows, the startup is successful:

Project description:

Some of the configuration values of the project are added to the cache redis, so the project uses redis. In order to adapt to the upgrade and bring problems to people who do not know, the new configuration item configuration file in the project configuration file is:

Redis.properties

Redis.host=172.19.11.16

Redis.port=6379

Redis.maxIdle=300

Redis.maxActive=600

Redis.maxWait=1000

Redis.testOnBorrow=true

Redis.start=yes

These configuration items can be ignored as long as you modify redis.host and redis.start.

Redis.host is configured with the server where redis is located. Redis.start=yes means that the project starts redis as a cache. If you enter a different value, then redis is not enabled.

Note that if redis is enabled, redis must be installed. If there is no redis, do not turn on the use redis switch, otherwise it will affect performance. This switch is off by default.

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

Database

Wechat

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

12
Report