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

Redis Notes-installation and configuration of Redis (1)

2025-03-29 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

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

The general installation part is as follows, there are many online tutorials, abbreviated here

1. Decompression

two。 Enter the src directory

3. Execute the make install command

4. Execute the redis-server command to start

5. Execute the redis-cli command to connect

Redis start and stop

The compiled binaries are located in the src directory of the source code and are named after redis-xxx. Among them: there are 5 executable binaries.

1.redis-benchmark performance testing tool

2.redis-check-aof aof File repair tool

3.redis-check-dump reb File check tool

4.redis-cli command line client

5.redis-server redis server

Method 1: start directly

Add the & sign to make redis run redis-server as a daemon &

Check whether the backend process is stored in ps-ef | grep redis

Check whether port 6379 is listening to netstat-tunpl | grep 6379

Whether you can connect properly using redis-cli

Method 2: specify a profile

Redis-server / usr/local/redis/etc/redis.conf

Method 3: use Redis startup script to set up boot self-startup

It is recommended to use startup scripts to start redis services in a production environment. The startup script redis_init_script is located in the / utils/ directory of Redis.

Configuration steps:

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