安装环境: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安装
相关推荐
- *██ 双倍 RAM 回归 ██ AMD RYZEN 7 █ 128GB RAM █ 1TB NVMe █ IPMI █ /24 IPv4 ██ 24 美元起
- *即将在 DedicatedNodes.IO 上推出高性能 AMD EPYC 9274F RPC SOL 节点
- 腾讯云服务器CentOS环境下通过YUM安装软件
- “php-cgi.exe – FastCGI进程意外退出” 的解决办法
- WordPress批量替换url插件:Velvet Blues Update URLs安装使用
- 教你使用阿里云ECS云服务器搭建网站全过程(图文教程)
- Linux系统有哪些?十大主流Linux发行版本
- wordpress建站教程:教你从零开始搭建WordPress个人博客