Redis Database Installation

Source: Internet
Author: User
Tags install homebrew install redis redis server

Redis installation Step1: Download

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

Step2: Unzip

Tar xzf redis-4.0.9.tar.gz

Step3: Move, put it on the usr/local record

sudo mv./redis-4.0.9/usr/local/redis/

Step4: Into the Redis directory

cd/usr/local/redis/

STEP5: Generatingsudo makeTEP6: Test sudo make TESTSTEP7: Install, install Redis commands to/usr/local/bin/?

sudo make install

STEP8: After the installation is complete, we go to the directory/usr/local/bin to view the Cd/usr/local/binls-all
        • Edis-server Redis Server
        • REDIS-CLI Redis command-line Client
        • Redis-benchmark Redis Performance Testing Tool
        • Redis-check-aof aof File Repair Tool
        • Redis-check-rdb RDB File Retrieval Tool
        • Configuration, move to/etc/directory configuration/usr/local/redis/redis.conf
        • sudo cp/usr/local/redis/redis.conf/etc/redis/

    • Install Redis on MAC:
      • Install Homebrew:

      https://brew.sh/

      • Using Brew to install Redis

      Https://www.cnblogs.com/cloudshadow/p/mac_brew_install_redis.html

    • The server-side command is Redis-server
    • Help to view assistance? Document Redis-server--help

      • PS aux | grep redis View Redis server process sudo kill-9 pid kill Redis Server sudo redis-server/etc/redis/redis.conf Specify the loaded configuration file

Redis Database Installation

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.