日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當(dāng)前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

在centos6.7用yum安装redis

發(fā)布時間:2024/2/28 编程问答 29 豆豆
生活随笔 收集整理的這篇文章主要介紹了 在centos6.7用yum安装redis 小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.

1.?centos默認(rèn)的安裝源在官方centos.org上,而redis在第三方的yum源里,所以無法安裝,非官方的yum推薦用fedora的epel倉庫

[root@localhost install]# yum install redis
Loaded plugins: fastestmirror
Setting up Install Process
Determining fastest mirrors
?* base: mirrors.skyshe.cn
?* extras: mirrors.163.com
?* updates: mirrors.pubyun.com
base ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?| 3.7 kB ? ? 00:00 ? ??
extras ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?| 2.9 kB ? ? 00:00 ? ??
updates ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? | 3.4 kB ? ? 00:00 ? ??
No package redis available.
Error: Nothing to do

首先為yum添加epel源:yum install epel-release回車

yum install epel-release
Loaded plugins: fastestmirror
Setting up Install Process
Loading mirror speeds from cached hostfile
?* base: mirrors.skyshe.cn
?* extras: mirrors.163.com
?* updates: mirrors.pubyun.com
Resolving Dependencies
--> Running transaction check
---> Package epel-release.noarch 0:6-8 will be installed
--> Finished Dependency Resolution


Dependencies Resolved


=============================================================================================================================================================================================================================================
?Package ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? Arch ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?Version ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? Repository ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? Size
=============================================================================================================================================================================================================================================
Installing:
?epel-release ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?noarch ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?6-8 ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? extras ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? 14 k


Transaction Summary
=============================================================================================================================================================================================================================================
Install ? ? ? 1 Package(s)



2. yum 安裝redis

[root@localhost install]# yum install redis
Loaded plugins: fastestmirror
Setting up Install Process
Loading mirror speeds from cached hostfile
epel/metalink ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? | 3.6 kB ? ? 00:00 ? ??
?* base: mirrors.skyshe.cn
?* epel: mirrors.opencas.cn
?* extras: mirrors.163.com
?* updates: mirrors.pubyun.com
epel ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?| 4.3 kB ? ? 00:00 ? ??
epel/primary_db ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? | 5.7 MB ? ? 00:24 ? ??
Resolving Dependencies
--> Running transaction check
---> Package redis.x86_64 0:2.4.10-1.el6 will be installed
--> Finished Dependency Resolution


Dependencies Resolved


=============================================================================================================================================================================================================================================
?Package ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?Arch ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?Version ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?Repository ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? Size
=============================================================================================================================================================================================================================================
Installing:
?redis ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?x86_64 ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?2.4.10-1.el6 ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? epel ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?213 k


Transaction Summary
=============================================================================================================================================================================================================================================
Install ? ? ? 1 Package(s)


3. 查看redis文件

[root@localhost ~]# find / -name "redis*"

/usr/sbin/redis-server
/usr/bin/redis-check-aof
/usr/bin/redis-cli
/usr/bin/redis-check-dump
/usr/bin/redis-benchmark


4. 開啟redis-server服務(wù)

[root@localhost ~]# redis-server /root/redis_conf/redis6379/redis6379.conf?

[root@localhost ~]# redis-server /root/redis_conf/redis6380/redis6380.conf

[root@localhost ~]# redis-server /root/redis_conf/redis6378/redis6378.conf?

查看進(jìn)程

[root@localhost ~]# ps -ef|grep redis
root ? ? ?4970 ? ? 1 ?0 16:35 ? ? ? ? ?00:00:00 redis-server /root/redis_conf/redis6379/redis6379.conf
root ? ? ?4976 ? ? 1 ?0 16:36 ? ? ? ? ?00:00:00 redis-server /root/redis_conf/redis6380/redis6380.conf
root ? ? ?4982 ? ? 1 ?0 16:36 ? ? ? ? ?00:00:00 redis-server /root/redis_conf/redis6378/redis6378.conf
root ? ? ?4987 ?1489 ?0 16:36 pts/0 ? ?00:00:00 grep redis

總結(jié)

以上是生活随笔為你收集整理的在centos6.7用yum安装redis的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網(wǎng)站內(nèi)容還不錯,歡迎將生活随笔推薦給好友。