• REDIS


    https://redis.io/

    Redis 3.2.9 is the latest stable version.

    卸载redis

    265 install: all
    266 @mkdir -p $(INSTALL_BIN)
    267 $(REDIS_INSTALL) $(REDIS_SERVER_NAME) $(INSTALL_BIN)
    268 $(REDIS_INSTALL) $(REDIS_BENCHMARK_NAME) $(INSTALL_BIN)
    269 $(REDIS_INSTALL) $(REDIS_CLI_NAME) $(INSTALL_BIN)
    270 $(REDIS_INSTALL) $(REDIS_CHECK_RDB_NAME) $(INSTALL_BIN)
    271 $(REDIS_INSTALL) $(REDIS_CHECK_AOF_NAME) $(INSTALL_BIN)
    272 @ln -sf $(REDIS_SERVER_NAME) $(INSTALL_BIN)/$(REDIS_SENTINEL_NAME)

    如果make执行时,带入make参数“-n”或“--just-print”,只是显示命令,但不会执行命令,这个功能很有利于我们调试我们的Makefile,看看我们书写的命令是执行起来是什么样子的或是什么顺序的。
    而make参数“-s”或“--slient”则是全面禁止命令的显示。

    ln -sf

    -f, --force                 remove existing destination files

    make 

    cd src

    make install PREFIX=/usr/local/redis

    /usr/local/redis/bin/redis-server /usr/local/redis/etc/redis.conf

    * Install the packages libc6-dev-i386 (also try g++-multilib).
    * Try using the following command line instead of `make 32bit`:
    `make CFLAGS="-m32 -march=native" LDFLAGS="-m32"`

    让redis开机自启(SUSE下不知道这样搞)(COPY FROM http://www.cnblogs.com/it-cen/p/4295984.html)
    vim /etc/rc.local
    加入
    /usr/local/redis/bin/redis-server /usr/local/redis/etc/redis-conf

    
    
  • 相关阅读:
    Fiddler filter 过滤隐藏css、js、图片等
    十三、单元测试
    十二、文件操作
    Go_客户信息管理系统
    十一、面向对象编程_下
    十、面向对象编程_上
    九、map
    八、排序和查找
    七、数组和切片
    六、函数、包和错误处理
  • 原文地址:https://www.cnblogs.com/zhang-pengcheng/p/6885527.html
Copyright © 2020-2023  润新知