zoukankan      html  css  js  c++  java
  • hadoop redis install (4)

    reference: http://dblab.xmu.edu.cn/blog/131/

           https://github.com/dmajkic/redis

          https://blog.csdn.net/eroswang/article/details/7080412

    hadoop@iZuf68496ttdogcxs22w6sZ:/usr/local$ sudo tar zvxf /home/hadoop/redis-3.2.7.tar.gz -C ./
    [sudo] password for hadoop:

    ....

    hadoop@iZuf68496ttdogcxs22w6sZ:/usr/local$ cd redis/
    hadoop@iZuf68496ttdogcxs22w6sZ:/usr/local/redis$ ls
    00-RELEASENOTES CONTRIBUTING deps Makefile README.md runtest runtest-sentinel src utils
    BUGS COPYING INSTALL MANIFESTO redis.conf runtest-cluster sentinel.conf tests
    hadoop@iZuf68496ttdogcxs22w6sZ:/usr/local/redis$ make
    cd src && make all

    .....

    add export PATH=$PATH:/usr/local/mongodb/bin  to "~/.bashrc" 

    start redis-server:

    hadoop@iZuf68496ttdogcxs22w6sZ:/usr/local/redis/src$ redis-server ../redis.conf
    _._
    _.-``__ ''-._
    _.-`` `. `_. ''-._ Redis 3.2.7 (00000000/0) 64 bit
    .-`` .-```. ```/ _.,_ ''-._
    ( ' , .-` | `, ) Running in standalone mode
    |`-._`-...-` __...-.``-._|'` _.-'| Port: 6379
    | `-._ `._ / _.-' | PID: 2011
    `-._ `-._ `-./ _.-' _.-'
    |`-._`-._ `-.__.-' _.-'_.-'|
    | `-._`-._ _.-'_.-' | http://redis.io
    `-._ `-._`-.__.-'_.-' _.-'
    |`-._`-._ `-.__.-' _.-'_.-'|
    | `-._`-._ _.-'_.-' |
    `-._ `-._`-.__.-'_.-' _.-'
    `-._ `-.__.-' _.-'
    `-._ _.-'
    `-.__.-'

    2011:M 28 Jan 14:28:21.761 # Server started, Redis version 3.2.7
    2011:M 28 Jan 14:28:21.762 # WARNING overcommit_memory is set to 0! Background save may fail under low memory condition. To fix this issue add 'vm.overcommit_memory = 1' to /etc/sysctl.conf and then reboot or run the command 'sysctl vm.overcommit_memory=1' for this to take effect.
    2011:M 28 Jan 14:28:21.762 # WARNING you have Transparent Huge Pages (THP) support enabled in your kernel. This will create latency and memory usage issues with Redis. To fix this issue run the command 'echo never > /sys/kernel/mm/transparent_hugepage/enabled' as root, and add it to your /etc/rc.local in order to retain the setting after a reboot. Redis must be restarted after THP is disabled.
    2011:M 28 Jan 14:28:21.762 * The server is now ready to accept connections on port 6379

    start redis-cli for test:

    hadoop@iZuf68496ttdogcxs22w6sZ:~$ redis-cli
    127.0.0.1:6379> set foo bar
    OK
    127.0.0.1:6379> get foo
    "bar"
    127.0.0.1:6379> incr mycounter
    (integer) 1
    127.0.0.1:6379> incr mycounter
    (integer) 2
    127.0.0.1:6379> get mycounter
    "2"
    127.0.0.1:6379>

  • 相关阅读:
    TCP/IP资料整理
    对谷歌自带闹钟应用中材料设计的吹毛求疵
    如何给非AppCompatActivity添加Toolbar?--关于5.0新特性兼容5.0以下设备的探索
    Android 5.0自定义动画
    Android开发Tips-1
    Android控件RecyclerView与ListView的异同
    有关Android存储的相关概念辨析
    关于RecyclerView中Viewholder和View的缓存机制的探究
    Android Wear和二维码
    构建具有深度和灵活性的安卓Wear应用
  • 原文地址:https://www.cnblogs.com/lianghong881018/p/10330117.html
Copyright © 2011-2022 走看看