歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux基礎 >> Linux教程 >> Memcached for Linux安裝

Memcached for Linux安裝

日期:2017/2/28 14:50:43   编辑:Linux教程
安裝環境:Oracle Linux 5.6

(1).嘗試安裝memcached失敗,因缺少EPEL擴展包。
[root@njdyw ~]# yum install memcached
Loaded plugins: rhnplugin, security
This system is not registered with ULN.
ULN support will be disabled.
Setting up Install Process
No package memcached available.
Nothing to do

(2).repolist檢查
[root@njdyw ~]# yum repolist
Loaded plugins: rhnplugin, security
This system is not registered with ULN.
ULN support will be disabled.
repolist: 0

(3).安裝EPEL擴展包(Extra Packages for Enterprise Linux)
[root@njdyw ~]# rpm -ivh http://dl.Fedoraproject.org/pub/epel/5/x86_64/epel-release-5-4.noarch.rpm
Retrieving http://dl.fedoraproject.org/pub/epel/5/x86_64/epel-release-5-4.noarch.rpm
warning: /var/tmp/rpm-xfer.Bw4fvR: Header V3 DSA signature: NOKEY, key ID 217521f6
Preparing... ########################################### [100%]
1:epel-release ########################################### [100%]

(4).repolist再次檢查
[root@njdyw ~]# yum repolist
Loaded plugins: rhnplugin, security
This system is not registered with ULN.
ULN support will be disabled.
epel | 3.7 kB 00:00
epel/primary_db | 3.8 MB 00:16
repo id repo name status
epel Extra Packages for Enterprise Linux 5 - x86_64 enabled: 7,228
repolist: 7,228

(5).再次安裝memcached成功
[root@njdyw ~]# yum install memcached
Loaded plugins: rhnplugin, security
This system is not registered with ULN.
ULN support will be disabled.
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package memcached.x86_64 0:1.4.5-1.el5 set to be updated
--> Finished Dependency Resolution
Dependencies Resolved
====================================================================================================================================
Package Arch Version Repository Size
====================================================================================================================================
Installing:
memcached x86_64 1.4.5-1.el5 epel 72 k
Transaction Summary
====================================================================================================================================
Install 1 Package(s)
Upgrade 0 Package(s)
Total download size: 72 k
Is this ok [y/N]: y
Downloading Packages:
memcached-1.4.5-1.el5.x86_64.rpm | 72 kB 00:01
warning: rpmts_HdrFromFdno: Header V3 DSA signature: NOKEY, key ID 217521f6
epel/gpgkey | 1.7 kB 00:00
Importing GPG key 0x217521F6 "Fedora EPEL <[email protected]>" 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 : memcached 1/1
Installed:
memcached.x86_64 0:1.4.5-1.el5
Complete!
Copyright © Linux教程網 All Rights Reserved