Single-host redis deployment

Source: Internet
Author: User
1. Download:
Wget http://download.redis.io/releases/redis-2.8.4.tar.gz2#unzip
Tar xzvf redis-2.8.4.tar.gz-C
/home/hadoop/zkcd /home/hadoop/zk/redis-2.8.4sudo make PREFIX=/home/hadoop/zk/redis-2.8.4Install
3. Go to the bin directory and execute
./redis-server --port 9999
 bin]$ ./redis-server --port 9999[21365] 29 Oct 09:22:22.741 # Unable to set the max number of files limit to 10032 (Operation not permitted), setting the max clients configuration to 3984.                _._                                                             _.-``__ ‘‘-._                                                   _.-``    `.  `_.  ‘‘-._           Redis 2.8.4 (00000000/0) 64 bit  .-`` .-```.  ```\/    _.,_ ‘‘-._                                    (    ‘      ,       .-`  | `,    )     Running in stand alone mode |`-._`-...-` __...-.``-._|‘` _.-‘|     Port: 9999 |    `-._   `._    /     _.-‘    |     PID: 21365  `-._    `-._  `-./  _.-‘    _.-‘                                    |`-._`-._    `-.__.-‘    _.-‘_.-‘|                                   |    `-._`-._        _.-‘_.-‘    |           http://redis.io          `-._    `-._`-.__.-‘_.-‘    _.-‘                                    |`-._`-._    `-.__.-‘    _.-‘_.-‘|                                   |    `-._`-._        _.-‘_.-‘    |                                    `-._    `-._`-.__.-‘_.-‘    _.-‘                                         `-._    `-.__.-‘    _.-‘                                                 `-._        _.-‘                                                         `-.__.-‘     

4. Test

. /Redis-cli-H master-P 9999 master: 9999> Set Name zhangglokmaster: 9999> get name "zhanggl" master: 9999> Get username (NiL) MASTER: 9999> set sex male okmaster: 9999> get sex "\ xe7 \ x94 \ xb7" master: 9999>

References: http://redis.io/documentation

 


Single-host redis deployment

Related Article

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.