Redis 單機部署

來源:互聯網
上載者:User

標籤:style   blog   http   io   color   os   ar   sp   div   

1、下載:
  wget http://download.redis.io/releases/redis-2.8.4.tar.gz2、解壓
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.4 install
3、進入目錄 bin下執行
./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、測試

./redis-cli -h master -p 9999master:9999> set name zhangglOKmaster:9999> get name"zhanggl"master:9999> get username(nil)master:9999> set sex 男OKmaster:9999> get sex"\xe7\x94\xb7"master:9999> 

 參考資料:http://redis.io/documentation

 


Redis 單機部署

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

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.