一另锋,準(zhǔn)備工作
1,配置網(wǎng)絡(luò)&關(guān)閉SELINUX&配置防火墻
配置網(wǎng)絡(luò)&關(guān)閉SELINUX&配置防火墻
2狭归,升級(jí)系統(tǒng)
yum -y update
3夭坪,安裝依賴(lài)
yum -y install wget gcc gcc-c++ make
二、下載安裝
1过椎,下載redis源碼
cd /usr/local/src && wget http://download.redis.io/releases/redis-4.0.5.tar.gz && tar zxvf redis-4.0.5.tar.gz && cd redis-4.0.5
2室梅,編譯&安裝
make && make install
3,使用官方安裝腳本潭流,拷貝&修改配置文件及控制腳本
./utils/install_server.sh
Port : 6379
Config file : /etc/redis/6379.conf
Log file : /var/log/redis_6379.log
Data dir : /var/lib/redis/6379
Executable : /usr/local/bin/redis-server
Cli Executable : /usr/local/bin/redis-cli
service redis_6379 start
service redis_6379 stop
service redis_6379 restart
service redis_6379 status
三竞惋、優(yōu)化篇
暫無(wú)