A Installation and startup of Redis (for example, Linux's Ubuntu version of the operating system)
1. Redis Download: $ wget http://download.redis.io/releases/redis-2.8.3.tar.gz
2. Unzip the file under the Redis folder: $ make
3. Start Redis Service: $ redis-server redis.conf
4. Start Redis client: $ redis-cli
Two Redis Graphics management tool installation and use of Redis desktop Manager
1. Download the client for Redis Desktop Manager (Http://pan.baidu.com/s/1cA3jWU or Http://redisdesktop.com/download)
2. Double-click the downloaded file to install it (REDIS-DESKTOP-MANAGER_0.8.3-120_AMD64.DEB)
Or in the terminal: sudo dpkg-i redis-desktop-manager_0.8.3-120_amd64.deb
If installation fails prompt to install ZLIBC, Terminal command installation: Execute sudo apt-get install Zlib1g-dev
Then execute the sudo apt-get-f install
3. After the Redis Desktop Manager installation is complete, we'll do some testing before we connect to the Redis service.
3. 1
# check Redis Server system processes
$ ps-aux|grep redis 4162 0.1 0.0 10676 1420? Ss 23:24 0:00/usr/bin/redis-server/etc/redis/redis.conf
Conan 4172 0.0 0.0 11064 924 pts/0 s+ 23:26 0:00 grep--color=auto Redis
3. 2
# check Redis server status by starting command
$ netstat-nlt|grep 6379
TCP 0 0 127.0.0.1:6379 0.0.0.0:* LISTEN
3. 3
# check Redis server status by starting command
$ sudo/etc/init.d/redis-server status
Redis-server is running
4. Configure Redis Password: Open the Redis folder under the redis.conf file, find the following line of code, followed by the number is the password, you can modify (default is not 123456, is a bunch of English I forgot
Requirepass 123456
5. Try to log on without using a password
Redis-cli-h 127.0.0.1-p 6379
You can log in and try to find an error using the command
Redis 127.0.0.1:6379> Keys *
(Error) ERR operation not permitted
Try to log in with a password and execute a specific command to see that it can be executed successfully
Redis-cli-h 127.0.0.1-p 6379-a 123456
The login is successful, and you can use the command
6. Modify Login Password
Config set Requirepass my_password
OK
7. In the management Tools Redis Desktop Manager, connect the Redis service, click Connect to Redis Server, in the popup window name is the custom string, host fills in the localhost local server, Port is 6379 local Redis service ports, Auth is the password we just set up in the redis.conf, click Test conection Display success can click OK to connect