安装环境: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 <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 : memcached 1/1
Installed:
memcached.x86_64 0:1.4.5-1.el5
Complete!(6).memcached启动服务
[root@njdyw ~]# /etc/rc.d/init.d/memcached start
启动 memcached:[确定]
(7).确认进程是否启动
[root@njdyw ~]# pstree
init-+-acpid
|-atd
|-auditd-+-audispd—{audispd}
| `-{auditd}
|-automount—4*[{automount}]
|-avahi-daemon—avahi-daemon
|-brcm_iscsiuio—2*[{brcm_iscsiuio}]
|-crond
|-cssdagent—9*[{cssdagent}]
|-cupsd
|-dbus-daemon
|-diskmon.bin—5*[{diskmon.bin}]
|-evmd.bin-+-evmlogger.bin
| `-11*[{evmd.bin}]
|-gam_server
|-gdm-binary—gdm-binary-+-Xorg
| `-gdmgreeter
|-gdm-rh-security—{gdm-rh-security}
|-gpm
|-hald—hald-runner-+-hald-addon-acpi
| `-3*[hald-addon-keyb]
|-hcid
|-hidd
|-hpiod
|-hpssd.py
|-init.ohasd
|-irqbalance
|-2*[iscsid]
|-klogd
|-memcached—5*[{memcached}]
|-6*[mingetty]
|-ntpd
|-ocssd.bin—12*[{ocssd.bin}]
|-ohasd.bin—27*[{ohasd.bin}]
|-oraagent.bin—19*[{oraagent.bin}]
|-17*[Oracle]
|-orarootagent.bi—8*[{orarootagent.bi}]
|-pcscd—2*[{pcscd}]
|-portmap
|-rpc.idmapd
|-rpc.statd
|-sdpd
|-2*[sendmail]
|-smartd
|-snmpd—{snmpd}
|-sshd-+-sshd—sshd—bash
| `-sshd—bash—pstree
|-syslogd
|-tnslsnr—2*[{tnslsnr}]
|-udevd
|-xfs
|-xinetd
`-yum-updatesd
[root@njdyw ~]# ps aux|grep memcached
101 4434 0.0 0.0 189376 876 ? Ssl 19:36 0:00 memcached -d -p 11211 -u memcached -m 64 -c 1024 -P /var/run/memcached/memcached.pid
root 4465 0.0 0.0 63436 796 pts/2 S+ 19:38 0:00 grep memcached
(8).telnet测试memcached
[oracle@njdyw ~]$ telnet 127.0.0.1 11211
Trying 127.0.0.1…
Connected to njdyw (127.0.0.1).
Escape character is ‘^]’.
set zhang 0 10 3
bar
STORED
get zhang
VALUE zhang 0 3
bar
END
Memcached for Linux安装
转载请注明出处:服务器评测 » Memcached for Linux安装
相关推荐
- *★★★ 我们在底特律推出了新的 DC,服务器起价为 49 美元/月
- *229 美元/月 E-2276G + 128GB RAM + 2x1TB NVMe + 10TB 备份 + 1Gbps 20TB BW 限时优惠!
- *英特尔至强、AMD Ryzen 或 AMD EPYC 免费试用一个月。抓住你的🔥圣诞优惠
- *OVHcloud 黑色星期五最后机会 🖤 | 定期优惠 | 限量版专用服务器
- 微笑HaBangNet – 中国大陆、香港CTG-GIA、欧美独服优惠
- *OVHcloud 黑色星期五最后机会 🖤 | 定期优惠 | 限量版专用服务器
- Ryzens、Threadrippers、EPYC 和 GPU 服务器已准备好以折扣价进行部署
- ♥ HPC 特价:EGI Hosting CA – 44 核 – 512GB RAM – 1Gbps 无限制 ♥ 8TB SSD ♥