码迷,mamicode.com
首页 > 系统相关 > 详细

ubuntu上安装redis和配置远程访问

时间:2019-06-06 14:06:38      阅读:108      评论:0      收藏:0      [点我收藏+]

标签:远程   下载安装   安装包   cte   配置文件   protect   font   bsp   prot   

ubuntu上安装redis和配置远程访问


 

  • 安装redis:
    • 下载安装包:
      • wget http://download.redis.io/releases/redis-4.0.1.tar.gz
    • 解压:
      • tar -zxvf redis-4.0.1.tar.gz
    • 进入压缩目录:
      • cd redis-4.0.1
    • 编译:
      • make
    • 安装Redis:
      • make install PREFIX=/usr/local/redis
    • 拷贝redis.conf文件:
      • cp -r redis.conf /usr/local/redis/bin/
  • 配置远程访问:
    • 进入redis目录:
      • cd  /usr/local/redis/bin/
    • 编辑redis配置文件:
      • vim redis.conf
        • 注释掉bind 127.0.0.1
        • daemonize no 修改为  daemonize yes
        • protected-mode no  修改为 protected-mode  yes
    • 启动redis:
      • ./redis-server  redis.conf

ubuntu上安装redis和配置远程访问

标签:远程   下载安装   安装包   cte   配置文件   protect   font   bsp   prot   

原文地址:https://www.cnblogs.com/ivy-blogs/p/10984303.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!