文章詳情頁
CentOS系統中使用yum命令安裝redis的方法
瀏覽:146日期:2022-06-06 18:16:26
在linux CentOS系統中使用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服務端:
[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
相關文章:
1. 在CentOS或RHEL 7上修改主機名的方法2. Centos6.6系統如何做profile?3. CentOS部署kodexplorer可道云搭建私有網盤的方法4. CentOS 7系統怎么安裝極點五筆輸入法?5. centos7怎么進去tmp目錄并清除垃圾?6. Centos7安裝完畢后無法聯網顯示Server not found如何解決?7. centos7怎么關閉ipv6僅使用ipv4?8. centos6.5配置靜態IP時BCAST不能設置的解決方法9. centos7安裝clickhouse并設置用戶名密碼案例詳解10. centos7如何設置密碼規則?centos7設置密碼規則的方法
排行榜
