確定可以聯網,用ifconfig查看網絡地址,用ping命令檢測能否進行網絡連接,
如果顯示ifconfig command not found,先安裝ifconfig組件:yum install net-tools
安裝gcc編譯器:yum install gcc-c++
安裝wget:yum -y install wget
下載redis:wget http://download.redis.io/releases/redis-3.0.7.tar.gz
redis下載完後,進入redis目錄下執行編譯命令:make && make install
Redis默認配置文件是redis文件目錄下的redis.conf
啓動Redis服務器:redis-server +配置文件目錄
啓動Redis客戶端:redis-cli -h ip地址 -p 端口