Objective
As a developer, I've always wanted to follow up on big data and the pace of cloud computing.
So you're going to start learning about cloud computing and distributed data in a variety of ways, starting with Redis.
Redis is an abbreviation for Remote Dictionary server, which was originally developed as a tool to use as a database.
Installing Redis under Linux is easy
Run the following command at the terminal
wget http://download.redis.io/redis-stable.tar.gztar zxf redis-stable. Tar . GZCD Redis-stable. Tar . GZ Make
Of course, you can download http://download.redis.io/redis-stable.tar.gz directly for installation
It is best to run the make test test if the correct installation is complete and I am prompted for the TCL 8.5 or higher when I run make test
My Linux is Centos 7 direct Run command installation TCL 8.5
sudo Yum install-y tcl
And then it's make test when you see
When the test is complete. Then sudo make install installs Redis into the/usr/local/bin directory for invocation.
will produce the following executable files
Redis-server Redis Service Side
REDIS-CLI Redis command-line Client
Redis-benchmark Redis Performance Testing Tool
Redis-check-aof aof File Repair Tool
Redis-check-dump Rdb File Repair Tool
Redis-sentinel Sentinel Server
Command line start Redis-server directly to start the default Redis server
。 But for further configuration-related parameters, we go to the root of the source code to get to the profile template redis.conf
There are several configuration items that you might want to configure are described below
Parameter Value Description
Daemonize Yes enables Redis to run in daemon mode
Pidfile/var/run/redis_6379.pid Setting the location of the Redis PID file
Port 6379 default Redis's listening port number
dir/var/redis/6379 setting where persistent files are stored
Renaming the modified redis.conf file to 6379.conf is used to separate the Redis-server area of the different listening ports
I put the 6379.conf file into the/etc/redis/directory, of course, if you need to create/var/redis and/var/redis/6379 directories, otherwise you will not be able to find the corresponding directory error.
Run redis-server/etc/redis/6379.conf again to start the server.
You can see that the server is already listening on the 6379 connection and can test connectivity with the REDIS-CLI connection server.
has been installed and connected to the server, the next is to organize the relevant data into the database, and later find a daily case for the simple storage of data experiments.
Well, it's written here today ~ It is said that tonight there are five years of the biggest cold wave to attack, or early to hide in bed to warm up.
Redis Learning Note (1) Redis Installation and startup