Redis Redis Installation and FAQs

Source: Internet
Author: User
Tags redis port number

1, decompression: TAR-ZXVF redis-3.0.0.tar.gz
2, LL
3. CD redis-3.0.0
Must have makefile at compile time

4. Make

[Root@localhost redis-3.0.0]# make
cd src && do all
make[1]: Enter directory "/USR/JAVA/REDIS-3.0.0/SRC"
    CC ADLIST.O in
file included from adlist.c:34:0:
zmalloc.h:50:31: Fatal error: jemalloc/jemalloc.h: No file or directory
compilation interrupted.
make[1]: * * [ADLIST.O] Error 1
make[1]: Leave directory "/USR/JAVA/REDIS-3.0.0/SRC" Make
: * * * [ALL] Error 2

FIX: Make MALLOC=LIBC
Reference Link: http://blog.csdn.net/honchou56/article/details/53994708

5. Make Install Prefix=/usr/local/redis
Install, set installation path (PREFIX)

6, Cd/usr/local/redis/bin Path execution:./redis-server
Press CTRL + C to exit

7. Copy the redis.conf to the current directory
[Root@localhost bin]# cp/usr/java/redis-3.0.0/redis.conf.
[Root@localhost bin]# LL
Total dosage 3316
-rw-r–r–. 1 root root 18 January 18:43 Dump.rdb
-rwxr-xr-x. 1 root root 289504 January 18:33 Redis-benchmark
-rwxr-xr-x. 1 root root 25165 January 18:33 redis-check-aof
-rwxr-xr-x. 1 root root 56012 January 18:33 redis-check-dump
-rwxr-xr-x. 1 root root 417979 January 18:33 redis-cli
-rw-r–r–. 1 root root 41403 January 18:53 redis.conf
lrwxrwxrwx. 1 root root 12 January 18:33 Redis-sentinel-Redis-server
-rwxr-xr-x. 1 root root 2546423 January 18:33 redis-server

8. Edit Conf:vim redis.conf
Change to Yes to run in the background

9. Whether the process starts:
PS Aux|grep Redis

10. Linked server:

./redis-cli
Ping    
If you specify the IP and port number:./redis-cli-h 192.168.25.100-p 6379

Summary:
Redis installation, I hope to help you.

Thank you for reading.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.