This article is a mirror article of machine translation, please click here to jump to the original article.

View: 26648|Reply: 2

[Redis] Installation and deployment of Linux Redis source code

[Copy link]
Posted on 7/8/2021 11:29:40 AM | | | |
First, the Linux server needs to install packages such as gcc, with the following command:

Otherwise, the error will be as follows:

(If there is the following error, please install gcc,Delete the entire redis directory and re-extract it


make[1]: Entering directory `/data/middleware/redis-6.2.4/src'
    CC Makefile.dep
make[1]: Leaving directory `/data/middleware/redis-6.2.4/src'
make[1]: Entering directory `/data/middleware/redis-6.2.4/src'
    CC adlist.o
/bin/sh: cc: command not found
make[1]: *** [adlist.o] Error 127
make[1]: Leaving directory `/data/middleware/redis-6.2.4/src'
make: *** [all] Error 2


cd src && make all
make[1]: Entering directory `/data/middleware/redis-6.2.4/src'
    CC adlist.o
In file included from adlist.c:34:0:
zmalloc.h:50:31: fatal error: jemalloc/jemalloc.h: No such file or directory
#include <jemalloc/jemalloc.h>
                               ^
compilation terminated.
make[1]: *** [adlist.o] Error 1
make[1]: Leaving directory `/data/middleware/redis-6.2.4/src'
make: *** [all] Error 2

Review:

Monitor the commands that Redis is executing
https://www.itsvse.com/thread-9959-1-1.html

SLOWLOG for Redis troubleshooting
https://www.itsvse.com/thread-9728-1-1.html

Redis MISCONF Redis is configured to save RDB snapshots
https://www.itsvse.com/thread-9650-1-1.html

Redis Benchmark performance test
https://www.itsvse.com/thread-9645-1-1.html

Redis uses Lua scripts for detailed explanations
https://www.itsvse.com/thread-9634-1-1.html

.NET/C# operations Redis unordered collections
https://www.itsvse.com/thread-9622-1-1.html

Redis Persistence Difference Between RDB and AOF
https://www.itsvse.com/thread-9555-1-1.html

The Docker installation runs the Redis cache
https://www.itsvse.com/thread-8995-1-1.html

CentOS 7 installation Redis 5.0.3 tutorial
https://www.itsvse.com/thread-7201-1-1.html

How many keys can be stored in a redis instance, and what are the maximum keys and values?
https://www.itsvse.com/thread-6848-1-1.html

The issue of redis Chinese cannot be displayed properly
https://www.itsvse.com/thread-5032-1-1.html

Redis enables remote access
https://www.itsvse.com/thread-5011-1-1.html

Windows fails to start the Redis service, error 1067: Process terminates unexpectedly.
https://www.itsvse.com/thread-5010-1-1.html

CentOS installed Redis 4.0.8
https://www.itsvse.com/thread-4614-1-1.html

Redis sets up remote connection and access passwords
https://www.itsvse.com/thread-4101-1-1.html

.net/c# operation redis cache addition, deletion, modification and query [source code]
https://www.itsvse.com/thread-4068-1-1.html

redis empties the data cache
https://www.itsvse.com/thread-4027-1-1.html

Redis INFO [section] parameter explanation in detail
https://www.itsvse.com/thread-4014-1-1.html

redis persistence configuration and off persistence
https://www.itsvse.com/thread-4012-1-1.html

The difference between save and bgsave in redis
https://www.itsvse.com/thread-4010-1-1.html

Redis two persistence methods and principles
https://www.itsvse.com/thread-4009-1-1.html

Redis has three ways to start
https://www.itsvse.com/thread-4008-1-1.html

Redis modifies the default port number and sets the access password
https://www.itsvse.com/thread-2577-1-1.html

Redis windows 64-bit download, official download address
https://www.itsvse.com/thread-2576-1-1.html


Download the Redis release package, unzip it, compile it, and use the following commands:



The compilation is successful, as shown in the following figure:




After modifying the redis.conf configuration, try to start the redis software with the following command:



Create a new redis.service script as follows:



Upload to/etc/systemd/systemdirectory, add to the service, and the command is as follows:



(End)




Previous:Windows Kafka ERROR Failed to clean up log for __consumer_offsets
Next:MySQL queries the annotations of a database table
 Landlord| Posted on 10/15/2021 9:01:12 AM |
After executing the make command, you need to execute the following command:

 Landlord| Posted on 12/3/2021 9:38:35 AM |
Once unzipped, install it with the following command:

redis.conf configuration file, the main modifications are as follows:

initiate



Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com