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>

  • 相关阅读:
    Leetcode951. Flip Equivalent Binary Trees翻转等价二叉树
    Leetcode938. Range Sum of BST二叉搜索树的范围和
    Leetcode962. Maximum Width最大宽度坡 Ramp
    STL容器-deque-双端队列
    Leetcode950. Reveal Cards In Increasing Order按递增顺序显示卡牌
    idea修改运行内存
    Web服务器进程连接数和请求连接数
    Vue问题总结
    Vue项目搭建过程
    去掉vue 中的代码规范检测(Eslint验证)
  • 原文地址:https://www.cnblogs.com/lianghong881018/p/10330117.html
Copyright © 2011-2022 走看看