First, the basic environmental information
OS: OS 2.8 Euler
CPU: ARM
Second, the compilation and installation steps Redis
-
Run the following command to obtain the source code Redis.
wget http://download.redis.io/releases/redis-4.0.9.tar.gz
-
Run the following commands, extract package.
tar -zxvf redis-4.0.9.tar.gz
-
Run the following command to enter the deps directory.
cd REDIS-4.0.9 / Depp
-
Run the following command to compile Redis dependent libraries.
make -j4 Fredis lua jemalloc linenoise
-
In turn execute the following command to compile Redis.
cd ..
make -j4
make install
Third, configure and run Redis
-
Run the following commands to establish redis profile.
cp redis.conf /usr/local/etc/
-
Run the following commands to configure redis background starts, daemonize no change daemonize yes.
vim /usr/local/etc/redis.conf
-
Run the following command to start redis-server.
service redis start
The system displays the following information indicating Redis start is completed.
Starting Redis server...
20525:C 19 Jun 20:43:25.941 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
20525:C 19 Jun 20:43:25.941 # Redis version=4.0.9, bits=64, commit=00000000, modified=0, pid=20525, just started
20525:C 19 Jun 20:43:25.941 # Configuration loaded
Fourth, the test Redis
Run the following commands, using redis-cli connection server, and requests execution kv.
[root@ecs-1-0002 redis-4.0.9]# redis-cli
127.0.0.1:6379> set test arm
OK
127.0.0.1:6379> get test
"arm"
127.0.0.1:6379> Test
(integer) 1
127.0.0.1:6379> get test
(nil)
V. Summary
As can be seen, in the process of compiling and running on ARM Redis is not much difference, need only a few simple steps can be installed.