文章詳情頁
CentOS系統(tǒng)中使用yum命令安裝redis的方法
瀏覽:159日期:2022-06-06 18:16:26
在linux CentOS系統(tǒng)中使用yum命令安裝redis報錯:
[root@localhost install]# yum install redis Loaded plugins: fastestmirror Setting up Install Process Determining fastest mirrors * base: mirrors.skyshe.cn * extras: mirrors.163.com
這是因為,centos默認的安裝源在官方centos.org上,而Redis在第三方的yum源里,所以無法安裝,非官方的yum推薦用fedora的epel倉庫
使用如下命令安裝第三方庫: yum install epel-release
再安裝redis即可: yum install redis
使用service redis start命令啟動redis服務(wù)端:
[root@localhost etc]# service redis start Redirecting to /bin/systemctl start redis.service
使用ps -ef | grep redis查看redis進程:
[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. centos7如何快速啟動應(yīng)用程序?2. centos7使用docker部署gitlab-ce-zh應(yīng)用詳解3. CentOS7中無法找到pci find device函數(shù)的解決方法4. CentOS 7系統(tǒng)怎么安裝極點五筆輸入法?5. CentOS下libiconv庫的安裝和使用介紹6. 在vmware虛擬機中安裝Linux系統(tǒng)CentOS7詳細教程7. CentOS 6.6系統(tǒng)怎么安裝?CentOS Linux系統(tǒng)安裝配置圖解教程8. Centos7安裝部署免費confluence wiki(知識庫)詳細操作步驟9. CentOS Linux下的3款分區(qū)工具詳解10. CentOS7無法使用Tab鍵補全命令的解決方法
排行榜
