zoukankan      html  css  js  c++  java
  • 20170822、在Linux上部署使用Redis

    (1)参考连接

    http://blog.csdn.net/kenkao/article/details/53419773

    (2)解压

    [root@xiaofeibao src]# tar zxf redis-3.2.0.tar.gz
    [root@xiaofeibao src]# ll
    总用量 2684
    -rw-r--r--. 1 root root 1214744 8月 7 19:40 autoconf-2.69.tar.xz
    drwxrwxr-x. 6 root root 4096 5月 6 2016 redis-3.2.0
    -rw-r--r--. 1 root root 1525900 5月 6 2016 redis-3.2.0.tar.gz

    (2.0)查看readme

    [root@xiaofeibao redis-3.2.0]# more README.md

    (2.1)

    [root@xiaofeibao redis-3.2.0]# make

    (2.2)安装

    [root@xiaofeibao redis-3.2.0]# make PREFIX=/usr/local/redis install

    Hint: It's a good idea to run 'make test' ;)

    INSTALL install
    INSTALL install
    INSTALL install
    INSTALL install
    INSTALL install
    [root@xiaofeibao src]# cd /usr/local

    (2.3)复制:

    [root@xiaofeibao redis]# cp /usr/local/src/redis-3.2.0/redis.conf .
    cp:是否覆盖"./redis.conf"? yes

    (3)查看redis进程

    [root@xiaofeibao redis]# ps aux|grep redis
    root 5716 0.0 0.0 103256 848 pts/0 S+ 00:54 0:00 grep redis

    (4)开启redis服务:

    [root@xiaofeibao redis]# ./bin/redis-server ./redis.conf

    (5)客户端连接

    [root@xiaofeibao redis]# ./bin/redis-cli

    (6)重新启动虚拟机

    [root@xiaofeibao redis]# shutdown -r now

  • 相关阅读:
    flask点滴
    CMD批量处理
    pymssql中文乱码
    vb cllection
    更改用户环境变量
    解开未完成的事务,用变量接收另一个存储过程反回的值
    gitlab-ci一些笔记
    Linux系统查看cache/buffer占用比较大的进程
    kubeadm证书过期解决方案
    ceph12版本部署实践
  • 原文地址:https://www.cnblogs.com/choucat/p/7411875.html
Copyright © 2011-2022 走看看