Databases 4 min read

How to Compile and Run Redis on ARM: Step‑by‑Step Guide

Learn how to compile Redis from source and install it on an ARM-based system running Euler OS 2.8, covering environment setup, dependency building, configuration, service startup, and basic testing with redis-cli, demonstrating that the process mirrors standard installations.

Huawei Cloud Developer Alliance
Huawei Cloud Developer Alliance
Huawei Cloud Developer Alliance
How to Compile and Run Redis on ARM: Step‑by‑Step Guide

1. Basic Environment Information

OS: Euler OS 2.8

CPU: ARM

2. Compile and Install Redis

· Download the Redis source code: wget http://download.redis.io/releases/redis-4.0.9.tar.gz · Extract the archive: tar -zxvf redis-4.0.9.tar.gz · Enter the deps directory: cd redis-4.0.9/deps · Build Redis dependencies: make -j4 hiredis lua jemalloc linenoise · Return to the root directory and compile Redis:

cd ..
make -j4
make install

3. Configure and Run Redis

· Copy the default configuration file: cp redis.conf /usr/local/etc/ · Edit the configuration to enable daemon mode (change daemonize no to daemonize yes): vim /usr/local/etc/redis.conf · Start the Redis server: service redis start The system will display messages such as:

Starting Redis server...
20525:C 19Jun 20:43:25.941 # Redis is starting
20525:C 19Jun 20:43:25.941 # Redis version=4.0.9, bits=64, commit=00000000, modified=0, pid=20525, just started
20525:C 19Jun 20:43:25.941 # Configuration loaded

4. Test Redis

· Connect with redis-cli and perform a simple key‑value operation:

redis-cli
127.0.0.1:6379> set test arm

OK 127.0.0.1:6379> get test "arm" 127.0.0.1:6379> del test (integer) 1 127.0.0.1:6379> get test (nil)

5. Summary

The compilation and execution of Redis on an ARM platform involve no major differences from other architectures; a few straightforward steps are sufficient to install and run Redis successfully.

Original Source

Signed-in readers can open the original source through BestHub's protected redirect.

Sign in to view source
Republication Notice

This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactadmin@besthub.devand we will review it promptly.

redisCompilationLinuxARM
Huawei Cloud Developer Alliance
Written by

Huawei Cloud Developer Alliance

The Huawei Cloud Developer Alliance creates a tech sharing platform for developers and partners, gathering Huawei Cloud product knowledge, event updates, expert talks, and more. Together we continuously innovate to build the cloud foundation of an intelligent world.

0 followers
Reader feedback

How this landed with the community

Sign in to like

Rate this article

Was this worth your time?

Sign in to rate
Discussion

0 Comments

Thoughtful readers leave field notes, pushback, and hard-won operational detail here.