一、安裝 // 安裝依賴 # wget http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm && rpm -ivh epel-release-6-8.noarch.rpm # yum install -y jemalloc // 安裝Redis # wget http://www./linux/remi/enterprise/6/test/x86_64/redis-4.0.0-1.el6.remi.x86_64.rpm && rpm -ivh redis-4.0.0-1.el6.remi.x86_64.rpm 備注:http://www.通過(guò)這個(gè)網(wǎng)站查找到的RPM包。 二、設(shè)置服務(wù)開(kāi)機(jī)啟動(dòng) # chkconfig redis on 三、服務(wù)常用操作 // 服務(wù)狀態(tài) # service redis status // 服務(wù)啟動(dòng) # service redis start // 服務(wù)停止 # service redis stop // 服務(wù)重啟 # service redis restart CentOS 7: 一、安裝 // 安裝依賴 # wget http://dl.fedoraproject.org/pub/epel/7/x86_64/Packages/e/epel-release-7-11.noarch.rpm && rpm -ivh epel-release-7-11.noarch.rpm # yum install -y jemalloc // 安裝Redis # wget http://www./linux/remi/enterprise/7/test/x86_64/redis-4.0.0-1.el7.remi.x86_64.rpm && rpm -ivh redis-4.0.0-1.el7.remi.x86_64.rpm 二、設(shè)置服務(wù)開(kāi)機(jī)啟動(dòng) # systemctl enable redis 三、服務(wù)常用操作 // 服務(wù)狀態(tài) # systemctl status redis // 服務(wù)啟動(dòng) # systemctl start redis // 服務(wù)停止 # systemctl stop redis // 服務(wù)重啟 # systemctl restart redis
|
|
來(lái)自: 昵稱54185769 > 《待分類》