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 Configuration
redis
Decompress the source code, enter the decompressed folder, and run./config
View Installationredis
. If noconfig
File. This step is ignored.
- Compile and enter
src
Folder, runmake
Compile the source file to generate several binary executable files starting with reids. These areredis
Program file, copy to the place where you put the program for convenient management.
- Start the service.
./redis-server
Start 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.