文章詳情頁(yè)
CentOS系統(tǒng)中使用yum命令安裝redis的方法
瀏覽:168日期:2022-06-06 18:16:26
在linux CentOS系統(tǒng)中使用yum命令安裝redis報(bào)錯(cuò):
[root@localhost install]# yum install redis Loaded plugins: fastestmirror Setting up Install Process Determining fastest mirrors * base: mirrors.skyshe.cn * extras: mirrors.163.com
這是因?yàn)椋琧entos默認(rèn)的安裝源在官方centos.org上,而Redis在第三方的yum源里,所以無(wú)法安裝,非官方的yum推薦用fedora的epel倉(cāng)庫(kù)
使用如下命令安裝第三方庫(kù): yum install epel-release
再安裝redis即可: yum install redis
使用service redis start命令啟動(dòng)redis服務(wù)端:
[root@localhost etc]# service redis start Redirecting to /bin/systemctl start redis.service
使用ps -ef | grep redis查看redis進(jìn)程:
[root@localhost etc]# ps -ef | grep redis redis 47664 1 0 05:31 ? 00:00:00 /usr/bin/redis-server 127.0.0.1:6379 root 47808 45376 0 05:32 pts/0 00:00:00 grep –color=auto redis
相關(guān)文章:
1. linux 配置本地yum源,配置國(guó)內(nèi)yum源,配置epel源的步驟2. CentOS安裝銳速serverspeeder教程3. Centos7安裝Chacha20加密算法詳解4. Linux(CentOS7)使用 RPM 安裝 mysql 8.0.11的教程5. 如何使用Xmanager遠(yuǎn)程連接Centos6.5?6. centos7怎么關(guān)閉ipv6僅使用ipv4?7. centos7使用docker部署gitlab-ce-zh應(yīng)用詳解8. Centos 7安裝Rclone如何用命令同步國(guó)外網(wǎng)盤文件?9. CentOS7中無(wú)法找到pci find device函數(shù)的解決方法10. CentOS Linux下的3款分區(qū)工具詳解
排行榜
