https://redis.io/
-- from http://www.runoob.com/redis/redis-install.html
https://github.com/MicrosoftArchive/redis/releases
https://github.com/antirez
Redis resource download
https://github.com/MSOpenTech/redis/releases
Redis installation tutorial
http://blog.csdn.net/renfufei/article/details/38474435
http://jingyan.baidu.com/article/f25ef2546119fd482c1b8214. html
--http://www.study365.org/blog/79.html
Note: Solution for Creating Server TCP listening socket *:6379: unable to bind
socket2016-08-26 22:41:46 by admin 1896 0
When the redis-server command is executed to start redis, this error will be reported. Baidu and google did not find a solution after that. It was finally found that it was caused by an incorrect parameter in the configuration file.
The reason for the error is due to not specifying the bind parameter. Add bind 127.0.0.1
to the configuration file
If you need to monitor multiple ips, bind can be followed by multiple ip
bind 127.0.0.1 10.11.0.1 192.168.1.1
If you need to monitor all ip
binds on the local machine * The
above three ways of writing are correct, but an error will be reported if the bind parameter is not written
# Creating Server TCP listening socket *:6379: unable to bind socket
# By default, if no "bind" configuration directive is specified, Redis listens
# for connections from all the network interfaces available on the server.
# It is possible to listen to just one or multiple selected interfaces using
# the "bind" configuration directive, followed by one or more IP addresses.
Redis installation
under Windows
Download address: https://github.com/MSOpenTech/redis/releases.
Redis supports 32-bit and 64-bit. This needs to be selected according to the actual situation of your system platform. Here we download the Redis-x64-xxx.zip compressed package to the C drive. After decompression, rename the folder to redis.
Open a cmd window and use the cd command to change the directory to C:\redis and run redis-server.exe redis.windows.conf.
If you want to be convenient, you can add the path of redis to the environment variable of the system, so you don't have to enter the path again. The latter redis.windows.conf can be omitted. If omitted, the default will be enabled. After the input, the following interface will be displayed:
Redis installation
At this time, another cmd window is opened. Do not close the original one, or you will not be able to access the server.
Switch to the redis directory and run redis-cli.exe -h 127.0.0.1 -p 6379 .
Set the key-value pair set myKey abc
Take out the key-value pair get myKey
Redis installation Install
it under Linux
Download address: http://redis.io/download, download the latest version of the document.
The latest documentation version used in this tutorial is 2.8.17, download and install:
$ wget http://download.redis.io/releases/redis-2.8.17.tar.gz
$ tar xzf redis-2.8.17.tar. gz
$ cd redis-2.8.17
$ make
After make, the compiled redis server program redis-server and the client program redis-cli for testing will appear in the redis-2.8.17 directory. The two programs are located in the installation directory In the src directory:
start the redis service below.
$ cd src
$ ./redis-server
Note that the default configuration is used to start redis in this way. You can also tell redis to use the specified configuration file to start with the following command through the startup parameter.
$ cd src
$ ./redis-server redis.conf
redis.conf is a default configuration file. We can use our own configuration files as needed.
After starting the redis service process, you can use the test client program redis-cli to interact with the redis service. For example:
$ cd src
$ ./redis-cli
redis> set foo bar
OK
redis> get foo
"bar" Install on Ubuntu To install Redi on
Ubuntu systems, use the following command: $sudo apt-get update $sudo apt-get install redis -server start Redis $ redis-server to see if redis is started? $ redis-cli The above command will open the following terminal: redis 127.0.0.1:6379> 127.0.0.1 is the local IP, 6379 is the redis service port. Now we enter the PING command.
redis 127.0.0.1:6379> ping
PONG The
above shows that we have successfully installed redis.
Redis introduction
Redis configuration
Notes list
chenming
[email protected]
reference address
Install under Mac
1. Official website http://redis.io/ Download the latest stable version, here is 3.2.0
2. sudu mv to /usr/local/
3 . sudo tar -zxf redis-3.2.0.tar to decompress the file
4. Enter the decompressed directory cd redis-3.2.0
5. sudo make test to test and compile
6. sudo make install
chenming
chenming
[email protected]
reference address for
7 days Before
mengjun
[email protected]
mac installation can also use homebrew, homebrew is the package manager for mac.
1. Execute brew install redis
2. Start redis, you can use the background service to start brew services start redis. Or start directly: redis-server /usr/local/etc/redis.conf
https://stackoverflow.com/questions/31769097/cant-bind-tcp-listener-6379-using-redis-on-windows
Redis installation and use
Guess you like
Origin http://43.154.161.224:23101/article/api/json?id=326391558&siteId=291194637
Recommended
Ranking