redis Installation FAQ

 1, can not compile GCC compiler tool

installation error:
Question 1: may report the following error when the make
CC = -c -std C99 -pedantic -O2 -g -Wall -W -rdynamic -ggdb adlist.c
the make: CC: Command not found
make: *** [adlist.o] error 127
solution: install the gcc
command is as follows: yum install gcc



2, may report the following error when the make:
collect2: LD returned Status 1 Exit
the make [1]: *** [Redis-Server] Error 1
the make [1]: Leaving Directory `/ usr / local / Redis / src '
the make: *** [All] Error 2
solutions:
edit src / .make-settings in the OPT, instead the -march = i686 -O2 = OPT


3, may make will be reported when the following error:

CC: error: ../deps/hiredis/libhiredis.a: No SUCH File or Directory
CC: error: ../deps/lua/src /liblua.a: No SUCH File or Directory
CC: error: ../deps/jemalloc/lib/libjemalloc.a: No SUCH File or Directory
make: *** [redis-server] Error 1
respectively, into hiredis under deps under redis, lua runs make
Note: You may first run ./configure under jemalloc, then make
back to the src directory, run make  




if reported the following error:
All the make the src && CD
the make [. 1]: into the directory "/home/redis/redis-3.0.2/src"
the CC adlist.o
the In File from adlist.c included: 34 is: 0:
zmalloc.h: 50: 31 is: fatal error: jemalloc / jemalloc.h: no such file or directory
#include <jemalloc / jemalloc.h>
compile interrupted.
make [1]: *** [adlist.o ] Error 1
the make [1]: leave directory "/home/redis/redis-3.0.2/src"
the make: *** [All] Error 2
using the command make MALLOC = libc recompile

4. modify the default port number:
assign a Redis port 7777, proceed as follows:
1. open the configuration file redis.conf find port line 6379, the 6379 to 7777. ====> vi /etc/redis/redis.conf
2, start redis service: / usr / local / bin / redis-Server /etc/redis/redis.conf
3, by "[root @ localhost redis-stable ] # ps -ef | grep redis" to see the process,
4, redis -cli -p 7777, to test whether the port has been created.
5.127.0.0.1: 7777> the SET name DZH
the OK
127.0.0.1:7777> GET name
"DZH"
127.0.0.1:7777> del name
(Integer) 1

Guess you like

Origin www.cnblogs.com/shenzhenhuaya/p/15226181250_shenzhenhua023.html