redis的基础学习
[root@mysql ~]# yum install redis
Loaded plugins: fastestmirror
Determining fastest mirrors
Exiting on user cancel
[root@mysql ~]# service network restart
Shutting down inte易做图ce eth0: [ OK ]
Shutting down loopback inte易做图ce: [ OK ]
Bringing up loopback inte易做图ce: [ OK ]
Bringing up inte易做图ce eth0:
Determining IP information for eth0... done.
[ OK ]
[root@mysql ~]# yum install redis
Loaded plugins: fastestmirror
Determining fastest mirrors
* addons: mirrors.yun-idc.com
* base: mirrors.yun-idc.com
* extras: mirror.esocc.com
* updates: mirrors.yun-idc.com
addons | 1.9 kB 00:00
base | 1.1 kB 00:00
extras | 2.1 kB 00:00
extras/primary_db | 167 kB 00:00
updates | 1.9 kB 00:00
updates/primary_db | 503 kB 00:03
Setting up Install Process
No package redis available.
Nothing to do
[root@mysql ~]# rpm -ivh http://dl.Fedoraproject.org/pub/ ... ease-5-4.noarch.rpm
Retrieving http://dl.Fedoraproject.org/pub/
/var/tmp/rpm-xfer.R5oV1p: not an rpm package (or package manifest):
[root@mysql ~]# rpm -ivh http://dl.fedoraproject.org/pub/epel/5/i386/epel-release-5-4.noarch.rpm
Retrieving http://dl.fedoraproject.org/pub/epel/5/i386/epel-release-5-4.noarch.rpm
warning: /var/tmp/rpm-xfer.JfhQhy: Header V3 DSA signature: NOKEY, key ID 217521f6
Preparing... ########################################### [100%]
1:epel-release ########################################### [100%]
[root@mysql ~]# yum install redis
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* addons: mirrors.grandcloud.cn
* base: mirrors.grandcloud.cn
* epel: mirrors.yun-idc.com
* extras: mirrors.grandcloud.cn
* updates: mirrors.grandcloud.cn
epel | 3.6 kB 00:00
epel/primary_db | 3.1 MB 00:13
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package redis.i386 0:2.4.10-1.el5 set to be updated
--> Finished Dependency Resolution
Dependencies Resolved
================================================================================
Package Arch Version Repository Size
================================================================================
Installing:
redis i386 2.4.10-1.el5 epel 299 k
Transaction Summary
================================================================================
Install 1 Package(s)
Upgrade 0 Package(s)
Total download size: 299 k
Is this ok [y/N]: y
Downloading Packages:
redis-2.4.10-1.el5.i386.rpm | 299 kB 00:02
warning: rpmts_HdrFromFdno: Header V4 DSA signature: NOKEY, key ID 217521f6
epel/gpgkey | 1.7 kB 00:00
Importing GPG key 0x217521F6 "Fedora EPEL <epel@fedoraproject.org>" from /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL
Is this ok [y/N]: y
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : redis 1/1
Installed:
redis.i386 0:2.4.10-1.el5
Complete!
[root@mysql ~]
[root@mysql ~]# find / -name "redis*"
/usr/share/doc/redis-2.4.10
/usr/bin/redis-check-dump
/usr/bin/redis-benchmark
/usr/bin/redis-cli
/usr/bin/redis-check-aof
/usr/sbin/redis-server
/etc/redis.conf
/etc/logrotate.d/redis
/etc/rc.d/init.d/redis
/var/run/redis
/var/lib/redis
/var/log/redis
[root@mysql ~]#
[root@mysql ~]# ps aux|grep redis
root 4148 0.0 0.2 31056 1088 ? &nb