正常的

wget http://download.redis.io/releases/redis-3.0.7.tar.gz下载

解压缩

tar -zxvf redis-3.0.7.tar.gz

cd redis-3.0.7

这全很正常没有什么可以说的,主要是下面,进入到redis-3.0.7目录之后,要是执行

make

make install 会把redis默认安装到/usr/local/bin/redis下

但是我只是一个普通的redis用户,我不想给他sudo权限也不想用root去执行怎么办呢

方法是:

bash-4.1$ PREFIX=/opt/redis make
bash-4.1$ PREFIX=/opt/redis make install
cd src && make install
make[]: Entering directory `/opt/redis/redis-3.0./src' Hint: It's a good idea to run 'make test' ;) INSTALL install
INSTALL install
INSTALL install
INSTALL install
INSTALL install
make[]: Leaving directory `/opt/redis/redis-3.0./src'
bash-4.1$ pwd
/opt/redis/redis-3.0.
bash-4.1$ cd ..
bash-4.1$ ls -all
total
drwxr-xr-x redis redis May : .
drwxr-xr-x root root May : ..
drwxr-xr-x redis redis May : bin
drwxr-xr-x redis redis Jan : redis-3.0.
-rw-r--r-- redis redis May : redis-3.0..tar.gz
drwx------ redis redis May : .ssh

指定到你想要安装的目录下就可以了,大功告成

接下来设置主备和哨兵

Master(主)配置文件

 vi /opt/redis//.conf

 port
daemonize yes
appendonly yes
save ""
slave-read-only yes

自己在redis目录下建立一个6000的文件夹

Salve(从)配置文件

 vi /opt/redis//.conf

 port
daemonize yes
slaveof 10.171.132.17 ----主的地址和端口,一看就明白
appendonly yes
save ""
slave-read-only yes

配置sentinel 1

 vi /opt/redis//sentinel-.conf

 port
daemonize yes
sentinel monitor mymaster 10.171.132.17 --主的地址
sentinel down-after-milliseconds mymaster
sentinel failover-timeout mymaster
sentinel config-epoch mymaster
sentinel leader-epoch mymaster

配置sentinel 2

vi /opt/redis//sentinel-.conf

port
daemonize yes
sentinel monitor mymaster 10.171.132.17
sentinel down-after-milliseconds mymaster
sentinel failover-timeout mymaster
sentinel config-epoch mymaster
sentinel leader-epoch mymaster

然后再启动下:

./redis-server --include /opt/redis//.conf
./redis-server --include /opt/redis//.conf ./redis-sentinel /opt/redis//sentinel-.conf
./redis-sentinel /opt/redis//sentinel-.conf

这样子redis就安装配置好了~而且是用最普通的用户实现的,保证了系统权限的划分。

redis安装过程中遇到的问题的更多相关文章

  1. JAVA安装过程中出现的“javac不是内部或外部指令”的解决方法

    近来重新安装了JAVA,安装过程中出现问题,网上找到解决办法,汇总发布. 解决流程: 1.确定自己的环境变量设置没问题,没有出现遗漏 : . 等情况 (具体环境变量设置百度) 2.环境变量设置后 ,d ...

  2. SQL Server 2008 安装过程中遇到“性能计数器注册表配置单元一致性”检查失败 问题的解决方法

    操作步骤: 1. 在 Microsoft Windows 2003 或 Windows XP 桌面上,依次单击"开始"."运行",然后在"打开&quo ...

  3. 用友ERP-U8最新破解(再次更新版本,附安装过程中的解决办法)

    新版用友u8.70下载地址:http://ftp.shangyuchem.com/应用软件/用友ERP-U8管理软件(8.70版).rar 准备好安装环境,因为需要SQLSERVER和IIS支持,而个 ...

  4. cocoapods安装以及使用,安装过程中ruby版本过低

    cocoapods安装以及使用,安装过程中ruby版本过低 字数473 阅读103 评论1 喜欢2 1.打开终端 2.移除现有 Ruby 默认源 $ gem sources --remove http ...

  5. iOS 学习笔记二【cocopods安装使用和安装过程中遇到的问题及解决办法】【20160725更新】

    在osx 10.11之前cocopods问题不多,但是升级到11之后的版本,之前的cocopods大多用不了,需要重新安装,对于我这种使用测试版系统的技术狂来说,每次都需要重新安装很多东西, 当然,c ...

  6. rpm包安装过程中依赖问题“libc.so.6 is needed by XXX”解决方法

    rpm包安装过程中依赖问题"libc.so.6 is needed by XXX"解决方法 折腾了几天,终于搞定了CentOS上的Canon LBP2900打印机驱动.中间遇到了一 ...

  7. Linux学习笔记(1)Linux虚拟机安装过程中的知识点及常用管理工具

    1. VMware的相关知识 (1)建议的VMware的配置: CPU 主频1GHz以上 内存 1GB以上 硬盘 分区空闲空间8GB以上 (2)VMware创建快照 快照的作用是保存虚拟机的现有状态, ...

  8. mysql安装过程中出现错误ERROR 1820 (HY000): You must SET PASSWORD before executing this statement解决

    mysql安装过程中出现错误ERROR 1820 (HY000): You must SET PASSWORD before executing this statement解决   最近新装好的my ...

  9. mysql-5.5.28源码安装过程中错误总结

    介绍一下关于mysql-5.5.28源码安装过程中几大错误总结,希望此文章对各位同学有所帮助.系统centOS 6.3 mini (没有任何编译环境)预编译环境首先装了众所周知的 cmake(yum ...

随机推荐

  1. Using Notepad++ to Execute Oracle SQL

    原文链接:http://www.toadworld.com/products/toad-for-oracle/b/weblog/archive/2013/08/21/using-notepad-to- ...

  2. Selenium2+Python自动化测试实战

    本人在网上查找了很多做自动化的教程和实例,偶然的一个机会接触到了selenium,觉得非常好用.后来就在网上查阅各种selenium的教程,但是网上的东西真的是太多了,以至于很多东西参考完后无法系统的 ...

  3. 关于DDOS攻击中TCP半连接数与FD的关系

    TCP最大连接数 在tcp应用中,server事先在某个固定端口监听,client主动发起连接,经过三路握手后建立tcp连接.那么对单机,其最大并发tcp连接数是多少? 理论最大值 在确定最大连接数之 ...

  4. new Date参数问题

    new Date支持的参数: MDN:   new Date();   new Date(value);   new Date(dateString);   new Date(year, month, ...

  5. Effective Go -> Interface

    1.接口实现及类型转换 type Sequence []int // Methods required by sort.Interface. func (s Sequence) Len() int { ...

  6. Spark任务调度流程及调度策略分析

    Spark任务调度 TaskScheduler调度入口: (1)       CoarseGrainedSchedulerBackend 在启动时会创建DriverEndPoint. 而DriverE ...

  7. 转:BZERO()等的区别

    BZERO()等的区别 bzero  原型: extern void bzero(void *s, int n); 用法: #include <string.h> 功能:置字节字符串s的前 ...

  8. OCX控件的注册卸载,以及判断是否注册

    方法一:在dos或Windows命令行下运行:regsvr32 ocxname.ocx 注册 示例:regsvr32 netshare.ocx     //注册netshare.ocx控件regsvr ...

  9. bzoj2019 [Usaco2009 Nov]找工作

    Description 奶牛们没钱了,正在找工作.农夫约翰知道后,希望奶牛们四处转转,碰碰运气.而且他还加了一条要求:一头牛在一个城市最多只能赚D(1 <= D <= 1,000)美元,然 ...

  10. Acdream1157---Segments (CDQ分治)

    陈丹琦分治~~~其实一些数据小的时候可以用二维或者多维树状数组做的,而数据大的时候就无力的题目,都可以用陈丹琦分治解决. 题目:由3钟类型操作:1)D L R(1 <= L <= R &l ...