Redhat installing Redis Service on AWS

Source: Internet
Author: User

1. Preparation

Download website

Or

wget http://download.redis.io/releases/redis-3.0.7.tar.gz

2. Redis compilation

Pass

CD redis-3.0.7/

into the Redis source directory, perform make to compile Redis;

Error 1

Processing

Yum Install GCC

Error 2

Make MALLOC=LIBC

(Error resolution Url:http://www.phperz.com/article/14/1219/42002.html)

3. Redis Installation Configuration
Installing Redis, performing

Make install

The executable file generated by make compilation is copied to the/usr/local/bin directory;
Perform

./utils/install_server.sh

Redis can boot with the system after configuring the Redis configuration.

Other configuration options are good by default, executable path to be entered manually.

4. Redis Service view, open, close

1, through the Ps-ef|grep redis command to view the Redis process;

Confirmation has been started and can be closed via kill-9 3284

2. Enable Redis service operation through

1. Direct start (execute file./redis-server)

2. Background boot

/usr/local/bin/redis-server/etc/redis/6379.conf
/usr/local/bin/redis-server: Execute File Client
/etc/redis/6379.conf configuration files configured above

Test, go to the client to execute the file directory, execute the./redis-cli to perform the operation directly

3. Turn off Redis service operation through/

./redis-cli-p 6379 Shutdown

Redhat installing Redis Service on AWS

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.