The Redis installation on a Mac

Source: Internet
Author: User
Tags download redis

Installing Redis on your Mac must first ensure that your Mac has Xcode installed.

Because it uses Xcode's command Tools.

(1) Download Redis http://redis.googlecode.com/files/redis-2.8.7.tar.gz extract to current directory.

(2) You can also download it at the terminal:

Curl-o Http://redis.googlecode.com/files/redis-2.8.7.tar.gzsudo tar-zxf redis-2.8.7.tar.gz

(3) Modify the folder name, compile

MV redis-2.8.7 REDISCD Redis/sudo makesudo make Testsudo make Isntall

(4) You will find a redis.conf configuration file in the Redis directory, open the edit this profile and locate dir. This line is configured.

This configuration is to write in-memory data to a file, where the database file is to be saved to what is the role of this configuration.

I created the OPT folder under the Mac root directory (Note that this folder must have read and write permissions)

So the configuration of this line is dir/opt/redis/

Save the configuration file after the modification, and move the configuration file to the/etc directory.

sudo mv Redis.conf/etc

(5) After the third step make install succeeds, you should see Redis in this directory

/usr/local/bin/redis-server

(6) Try to start Redis

/usr/local/bin/redis-server/etc/redis.conf

If it runs successfully, you will see the following Redis Boot service screen.

What a domineering start-up interface.

(7) The server has been successfully started, the next step we can start the client to try to connect the Redis service side, while writing data test a

OK, the server is successfully connected and the data is written. The introduction of the API is followed by refinement.

Transferred from: http://yijiebuyi.com/blog/d8ab4b444c16f42cefe30df738a42518.html


The Redis installation on a Mac

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.