Install redis on mac

Source: Internet
Author: User
The terminal code is as follows: AstartBafdfk two lines at the bottom of the Big A and Big B are executed...

Recently, I was developing php to build a website with the redis service.
Download the installation package http://download.redis.io/releases/redis-2.8.13.tar.gzfrom the official website.
Decompressed
The terminal code is as follows:

A start
B afdfk

The bottom two lines of Big A and Big B are arbitrary input when the/src/redis-server command is executed, that is to say, if I run the "/src/redis-server" command, I can enter anything in the blank space, if you want to exit, you must press ctrl + c to exit and execute the command in the src directory. /redis-cli command prompt me
Cocould not connect to Redis at 127.0.0.1: 6379: Connection refused
This information

The description is not clear. please correct me more.

Reply content:

Recently, I was developing php to build a website with the redis service.
Download the installation package http://download.redis.io/releases/redis-2.8.13.tar.gzfrom the official website.
Decompressed
The terminal code is as follows:

A start
B afdfk

The bottom two lines of Big A and Big B are arbitrary input when the/src/redis-server command is executed, that is to say, if I run the "/src/redis-server" command, I can enter anything in the blank space, if you want to exit, you must press ctrl + c to exit and execute the command in the src directory. /redis-cli command prompt me
Cocould not connect to Redis at 127.0.0.1: 6379: Connection refused
This information

The description is not clear. please correct me more.

ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"brew install redis

  • Download installation ConfigurationredisDecompress the source code, enter the decompressed folder, and run./configView Installationredis. If noconfigFile. This step is ignored.
  • Compile and entersrcFolder, runmakeCompile the source file to generate several binary executable files starting with reids. These areredisProgram file, copy to the place where you put the program for convenient management.
  • Start the service../redis-serverStart the service. It can be started either in the background or in the configuration file. You started the front-end.
  • Check the startup. After running the startup command, you can check whether the process is started.ps aux | grep redis
  • Log on to the apsaradb for redis client../redis-cli

Redis is started on the left, and two processes on the right indicate that redis is started.

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.