centos7 安装memcached

发布于:2025-08-29 ⋅ 阅读:(22) ⋅ 点赞:(0)

1.安装wget

yum install wget -y

2.下载memcached源码

wget http://www.memcached.org/files/memcached-1.6.38.tar.gz

3.解压缩

tar -zxvf memcached-1.6.38.tar.gz

4.安装依赖

yum install libevent libevent-devel -y

5.在源码路径下执行配置命令

./configure --prefix=/usr/local/memcached

6.执行编译安装

make && make install

    ┌──────────────────────────────────────────────────────────────────────┐
    │                 • MobaXterm Personal Edition v24.2 •                 │
    │               (SSH client, X server and network tools)               │
    │                                                                      │
    │ ⮞ SSH session to root@172.26.5.7                                     │
    │   • Direct SSH      :  ✓                                             │
    │   • SSH compression :  ✓                                             │
    │   • SSH-browser     :  ✓                                             │
    │   • X11-forwarding  :  ✓  (remote display is forwarded through SSH)  │
    │                                                                      │
    │ ⮞ For more info, ctrl+click on help or visit our website.            │
    └──────────────────────────────────────────────────────────────────────┘

Last login: Mon Jul 14 17:56:11 2025 from 172.26.5.28
[root@db ~]# pwd
/root
[root@db ~]# ls
anaconda-ks.cfg
[root@db ~]# su - oracle
上一次登录:一 7月 14 17:57:09 CST 2025pts/1 上
[oracle@db ~]$ sqlplus / as sysdba

SQL*Plus: Release 11.2.0.1.0 Production on Wed Jul 16 08:43:16 2025

Copyright (c) 1982, 2009, Oracle.  All rights reserved.

Connected to an idle instance.

SQL> startup
ORACLE instance started.

Total System Global Area 1068937216 bytes
Fixed Size                  2220200 bytes
Variable Size             306188120 bytes
Database Buffers          754974720 bytes
Redo Buffers                5554176 bytes
Database mounted.
Database opened.
SQL> quit
Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
[oracle@db ~]$ lsnrctl start

LSNRCTL for Linux: Version 11.2.0.1.0 - Production on 16-JUL-2025 08:43:47

Copyright (c) 1991, 2009, Oracle.  All rights reserved.

Starting /home/oracle/app/oracle/product/11.2.0/dbhome_1/bin/tnslsnr: please wait...

TNSLSNR for Linux: Version 11.2.0.1.0 - Production
Log messages written to /home/oracle/app/oracle/diag/tnslsnr/db/listener/alert/log.xml
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=db.jlrc)(PORT=1521)))

Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521))
STATUS of the LISTENER
------------------------
Alias                     LISTENER
Version                   TNSLSNR for Linux: Version 11.2.0.1.0 - Production
Start Date                16-JUL-2025 08:43:48
Uptime                    0 days 0 hr. 0 min. 1 sec
Trace Level               off
Security                  ON: Local OS Authentication
SNMP                      OFF
Listener Log File         /home/oracle/app/oracle/diag/tnslsnr/db/listener/alert/log.xml
Listening Endpoints Summary...
  (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=db.jlrc)(PORT=1521)))
The listener supports no services
The command completed successfully
[oracle@db ~]$ exit
logout
[root@db ~]# id
uid=0(root) gid=0(root) 组=0(root)
[root@db ~]# /usr/local/memcached/bin/memcached -d -m 1024 -u root -p 11211 -c 10240 –P /usr/local/memcached/memcached.pid
-bash: /usr/local/memcached/bin/memcached: 权限不够
[root@db ~]# /usr/local/memcached/bin/memcached -d -m 1024 -u root -p 11211 -c 10240 –P /usr/local/memcached/memcached.pid
/usr/local/memcached/bin/memcached: error while loading shared libraries: libevent-2.1.so.6: cannot open shared object file: No such file or directory
[root@db ~]# pwd
/root
[root@db ~]# ls
anaconda-ks.cfg
[root@db ~]# wget http://www.memcached.org/files/memcached-1.6.38.tar.gz
-bash: wget: 未找到命令
[root@db ~]# yum install wget -y
已加载插件:fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirrors.aliyun.com
 * extras: mirrors.aliyun.com
 * updates: mirrors.aliyun.com
base                                                                                                              | 3.6 kB  00:00:00
extras                                                                                                            | 2.9 kB  00:00:00
updates                                                                                                           | 2.9 kB  00:00:00
正在解决依赖关系
--> 正在检查事务
---> 软件包 wget.x86_64.0.1.14-18.el7_6.1 将被 安装
--> 解决依赖关系完成

依赖关系解决

=========================================================================================================================================
 Package                      架构                           版本                                     源                            大小
=========================================================================================================================================
正在安装:
 wget                         x86_64                         1.14-18.el7_6.1                          base                         547 k

事务概要
=========================================================================================================================================
安装  1 软件包

总下载量:547 k
安装大小:2.0 M
Downloading packages:
wget-1.14-18.el7_6.1.x86_64.rpm                                                                                   | 547 kB  00:00:00
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  正在安装    : wget-1.14-18.el7_6.1.x86_64                                                                                          1/1
  验证中      : wget-1.14-18.el7_6.1.x86_64                                                                                          1/1

已安装:
  wget.x86_64 0:1.14-18.el7_6.1

完毕!
[root@db ~]# wget http://www.memcached.org/files/memcached-1.6.38.tar.gz
--2025-07-16 11:47:04--  http://www.memcached.org/files/memcached-1.6.38.tar.gz
正在解析主机 www.memcached.org (www.memcached.org)... 107.170.231.145
正在连接 www.memcached.org (www.memcached.org)|107.170.231.145|:80... 已连接。
已发出 HTTP 请求,正在等待回应... 200 OK
长度:1282099 (1.2M) [application/octet-stream]
正在保存至: “memcached-1.6.38.tar.gz”

100%[===============================================================================================>] 1,282,099   1.14MB/s 用时 1.1s

2025-07-16 11:47:06 (1.14 MB/s) - 已保存 “memcached-1.6.38.tar.gz” [1282099/1282099])

[root@db ~]# pwd
/root
[root@db ~]# ls
anaconda-ks.cfg  memcached-1.6.38.tar.gz
[root@db ~]# tar -zxvf memcached-1.6.38.tar.gz
memcached-1.6.38/
memcached-1.6.38/util.c
memcached-1.6.38/extstore.c
memcached-1.6.38/bipbuffer.h
memcached-1.6.38/proxy_jump_hash.c
memcached-1.6.38/proxy.h
memcached-1.6.38/sizes.c
memcached-1.6.38/jenkins_hash.c
memcached-1.6.38/proto_text.h
memcached-1.6.38/slab_automove.c
memcached-1.6.38/trace.h
memcached-1.6.38/openbsd_priv.c
memcached-1.6.38/testapp.c
memcached-1.6.38/darwin_priv.c
memcached-1.6.38/crc32c.c
memcached-1.6.38/itoa_ljust.c
memcached-1.6.38/timedrun.c
memcached-1.6.38/NEWS
memcached-1.6.38/proto_bin.c
memcached-1.6.38/memcached_dtrace.d
memcached-1.6.38/storage.h
memcached-1.6.38/itoa_ljust.h
memcached-1.6.38/sasl_defs.h
memcached-1.6.38/extstore.h
memcached-1.6.38/memcached.c
memcached-1.6.38/sasl_defs.c
memcached-1.6.38/storage.c
memcached-1.6.38/thread.c
memcached-1.6.38/slab_automove_extstore.c
memcached-1.6.38/xxhash.h
memcached-1.6.38/daemon.c
memcached-1.6.38/assoc.h
memcached-1.6.38/configure
memcached-1.6.38/murmur3_hash.c
memcached-1.6.38/slabs.h
memcached-1.6.38/configure.ac
memcached-1.6.38/tls.c
memcached-1.6.38/proxy_luafgen.c
memcached-1.6.38/util.h
memcached-1.6.38/config.h.in
memcached-1.6.38/proto_proxy.c
memcached-1.6.38/proto_text.c
memcached-1.6.38/logger.c
memcached-1.6.38/proxy_tls.c
memcached-1.6.38/proto_proxy.h
memcached-1.6.38/compile
memcached-1.6.38/proxy_inspector.c
memcached-1.6.38/crawler.c
memcached-1.6.38/config.sub
memcached-1.6.38/protocol_binary.h
memcached-1.6.38/t/
memcached-1.6.38/t/chunked-extstore.t
memcached-1.6.38/t/proxyintext.lua
memcached-1.6.38/t/malicious-commands.t
memcached-1.6.38/t/proxyinternal2.t
memcached-1.6.38/t/refhang.t
memcached-1.6.38/t/sasl/
memcached-1.6.38/t/sasl/memcached.conf
memcached-1.6.38/t/metaget.t
memcached-1.6.38/t/proxymut.lua
memcached-1.6.38/t/issue_260.t
memcached-1.6.38/t/server_key.pem
memcached-1.6.38/t/bogus-commands.t
memcached-1.6.38/t/issue_61.t
memcached-1.6.38/t/stats-conns.t
memcached-1.6.38/t/extstore-tiered.t
memcached-1.6.38/t/proxytags.lua
memcached-1.6.38/t/proxybestats.t
memcached-1.6.38/t/stats.t
memcached-1.6.38/t/ssl_proto_version.t
memcached-1.6.38/t/cakey.pem
memcached-1.6.38/t/slabs-reassign-chunked.t
memcached-1.6.38/t/extstore-jbod.t
memcached-1.6.38/t/idle-timeout.t
memcached-1.6.38/t/00-startup.t
memcached-1.6.38/t/proxyconfigmulti.t
memcached-1.6.38/t/lru-maintainer.t
memcached-1.6.38/t/cacert.pem
memcached-1.6.38/t/proxyinternal3.lua
memcached-1.6.38/t/getandtouch.t
memcached-1.6.38/t/binary-extstore.t
memcached-1.6.38/t/multiversioning.t
memcached-1.6.38/t/watcher_connid.t
memcached-1.6.38/t/server_crt.pem
memcached-1.6.38/t/authfile2
memcached-1.6.38/t/line-lengths.t
memcached-1.6.38/t/shutdown.t
memcached-1.6.38/t/proxyustats.t
memcached-1.6.38/t/touch.t
memcached-1.6.38/t/proxyrctxtimeout.t
memcached-1.6.38/t/proxyunits.t
memcached-1.6.38/t/ssl_cert_refresh.t
memcached-1.6.38/t/proxyinternal.lua
memcached-1.6.38/t/issue_67.t
memcached-1.6.38/t/client_key.pem
memcached-1.6.38/t/misbehave.t
memcached-1.6.38/t/extstore-tiered2.t
memcached-1.6.38/t/extstore-buckets.t
memcached-1.6.38/t/stress-memcached.pl
memcached-1.6.38/t/slabs-reassign2.t
memcached-1.6.38/t/ssl_session_resumption.t
memcached-1.6.38/t/expirations.t
memcached-1.6.38/t/proxyroutelib.t
memcached-1.6.38/t/proxylimits.lua
memcached-1.6.38/t/binary-get.t
memcached-1.6.38/t/proxyantiflap.lua
memcached-1.6.38/t/proxymatch.lua
memcached-1.6.38/t/lib/
memcached-1.6.38/t/lib/MemcachedTest.pm
memcached-1.6.38/t/extstore-overdel.t
memcached-1.6.38/t/slabs-mover.t
memcached-1.6.38/t/issue_22.t
memcached-1.6.38/t/quit.t
memcached-1.6.38/t/proxyconfigmulti1.lua
memcached-1.6.38/t/issue_3.t
memcached-1.6.38/t/server.pem
memcached-1.6.38/t/proxyrctxtimeout.lua
memcached-1.6.38/t/issue_104.t
memcached-1.6.38/t/slabhang.t
memcached-1.6.38/t/evictions.t
memcached-1.6.38/t/chunked-items.t
memcached-1.6.38/t/binary-sasl.t
memcached-1.6.38/t/proxydepthlim.t
memcached-1.6.38/t/issue_68.t
memcached-1.6.38/t/authfile
memcached-1.6.38/t/issue_41.t
memcached-1.6.38/t/issue_192.t
memcached-1.6.38/t/maxconns.t
memcached-1.6.38/t/ssl_settings.t
memcached-1.6.38/t/issue_152.t
memcached-1.6.38/t/proxyintstats.t
memcached-1.6.38/t/error-extstore.t
memcached-1.6.38/t/udp.t
memcached-1.6.38/t/getset.t
memcached-1.6.38/t/proxyconfigmulti2.lua
memcached-1.6.38/t/daemonize.t
memcached-1.6.38/t/dyn-maxbytes.t
memcached-1.6.38/t/proxyunits.lua
memcached-1.6.38/t/.proxyfuncgen.lua.swp
memcached-1.6.38/t/slabs_reassign.t
memcached-1.6.38/t/proxyratelim.t
memcached-1.6.38/t/proxyrouter.t
memcached-1.6.38/t/proxycron.lua
memcached-1.6.38/t/.proxymatch.lua.swp
memcached-1.6.38/t/64bit.t
memcached-1.6.38/t/proxyinternal2.lua
memcached-1.6.38/t/strtol-testing.t
memcached-1.6.38/t/issue_29.t
memcached-1.6.38/t/issue_70.t
memcached-1.6.38/t/ascii-auth.t
memcached-1.6.38/t/noreply.t
memcached-1.6.38/t/restart.t
memcached-1.6.38/t/proxyroutelib.lua
memcached-1.6.38/t/ascii-auth2.t
memcached-1.6.38/t/flush-all.t
memcached-1.6.38/t/proxyratelim.lua
memcached-1.6.38/t/issue_42.t
memcached-1.6.38/t/proxyfuncgen.lua
memcached-1.6.38/t/client_crt.pem
memcached-1.6.38/t/lru.t
memcached-1.6.38/t/proxyinternal.t
memcached-1.6.38/t/watcher.t
memcached-1.6.38/t/item_size_max.t
memcached-1.6.38/t/whitespace.t
memcached-1.6.38/t/unixsocket.t
memcached-1.6.38/t/binary.t
memcached-1.6.38/t/extstore.t
memcached-1.6.38/t/slabs-cas.t
memcached-1.6.38/t/proxyconfig.t
memcached-1.6.38/t/issue_50.t
memcached-1.6.38/t/ssl_ports.t
memcached-1.6.38/t/proxyustats.lua
memcached-1.6.38/t/issue_140.t
memcached-1.6.38/t/cas.t
memcached-1.6.38/t/proxyrequest.t
memcached-1.6.38/t/README-TLS.md
memcached-1.6.38/t/proxyslotcache.t
memcached-1.6.38/t/proxymatch.t
memcached-1.6.38/t/proxymut.t
memcached-1.6.38/t/proxyrequest.lua
memcached-1.6.38/t/lru-crawler.t
memcached-1.6.38/t/proxyins.t
memcached-1.6.38/t/issue_14.t
memcached-1.6.38/t/flags.t
memcached-1.6.38/t/proxyintext.t
memcached-1.6.38/t/.proxymatch.t.swp
memcached-1.6.38/t/conn-limits.t
memcached-1.6.38/t/proxyantiflap.t
memcached-1.6.38/t/extstore-cas.t
memcached-1.6.38/t/proxyins.lua
memcached-1.6.38/t/proxydepthlim.lua
memcached-1.6.38/t/proxyconfig.lua
memcached-1.6.38/t/proxyfuncgen.t
memcached-1.6.38/t/proxyslotcache.lua
memcached-1.6.38/t/dash-M.t
memcached-1.6.38/t/proxyintstats.lua
memcached-1.6.38/t/proxyrouter.lua
memcached-1.6.38/t/proxybestats.lua
memcached-1.6.38/t/proxycron.t
memcached-1.6.38/t/proxylimits.t
memcached-1.6.38/t/proxytags.t
memcached-1.6.38/t/ssl_verify_modes.t
memcached-1.6.38/t/stats-detail.t
memcached-1.6.38/t/issue_108.t
memcached-1.6.38/t/.proxyfuncgen.t.swp
memcached-1.6.38/t/issue_183.t
memcached-1.6.38/t/issue_163.t
memcached-1.6.38/t/incrdecr.t
memcached-1.6.38/queue.h
memcached-1.6.38/items.h
memcached-1.6.38/stats_prefix.h
memcached-1.6.38/proxy_network.c
memcached-1.6.38/crc32c.h
memcached-1.6.38/m4/
memcached-1.6.38/m4/c99-backport.m4
memcached-1.6.38/version.m4
memcached-1.6.38/LICENSE.bipbuffer
memcached-1.6.38/proxy_ustats.c
memcached-1.6.38/items.c
memcached-1.6.38/restart.h
memcached-1.6.38/base64.h
memcached-1.6.38/hash.c
memcached-1.6.38/proxy_request.c
memcached-1.6.38/stats_prefix.c
memcached-1.6.38/logger.h
memcached-1.6.38/missing
memcached-1.6.38/config.guess
memcached-1.6.38/memcached.h
memcached-1.6.38/COPYING
memcached-1.6.38/Makefile.in
memcached-1.6.38/ChangeLog
memcached-1.6.38/crawler.h
memcached-1.6.38/proxy_config.c
memcached-1.6.38/proxy_xxhash.c
memcached-1.6.38/proxy_result.c
memcached-1.6.38/freebsd_priv.c
memcached-1.6.38/linux_priv.c
memcached-1.6.38/proxy_ratelim.c
memcached-1.6.38/base64.c
memcached-1.6.38/md5.h
memcached-1.6.38/doc/
memcached-1.6.38/doc/Makefile
memcached-1.6.38/doc/CONTRIBUTORS
memcached-1.6.38/doc/protocol-binary.xml
memcached-1.6.38/doc/napi_ids.txt
memcached-1.6.38/doc/tls.txt
memcached-1.6.38/doc/new_lru.txt
memcached-1.6.38/doc/protocol-binary.txt
memcached-1.6.38/doc/Makefile.in
memcached-1.6.38/doc/memcached.1
memcached-1.6.38/doc/Doxyfile
memcached-1.6.38/doc/protocol-binary.full
memcached-1.6.38/doc/xml2rfc/
memcached-1.6.38/doc/xml2rfc/rfc2629-refchk.xsl
memcached-1.6.38/doc/xml2rfc/rfc2629.dtd
memcached-1.6.38/doc/xml2rfc/reference.RFC.0768.xml
memcached-1.6.38/doc/xml2rfc/rfc2629-xhtml.ent
memcached-1.6.38/doc/xml2rfc/rfc2629-other.ent
memcached-1.6.38/doc/xml2rfc/rfc2629-noinc.xsl
memcached-1.6.38/doc/xml2rfc/reference.RFC.2119.xml
memcached-1.6.38/doc/Makefile.am
memcached-1.6.38/doc/protocol.txt
memcached-1.6.38/doc/protocol-binary-range.txt
memcached-1.6.38/doc/storage.txt
memcached-1.6.38/doc/threads.txt
memcached-1.6.38/doc/protocol-binary-range.xml
memcached-1.6.38/doc/readme.txt
memcached-1.6.38/Makefile.am
memcached-1.6.38/assoc.c
memcached-1.6.38/proto_bin.h
memcached-1.6.38/slabs_mover.h
memcached-1.6.38/cache.c
memcached-1.6.38/memcached.spec
memcached-1.6.38/README.md
memcached-1.6.38/authfile.h
memcached-1.6.38/depcomp
memcached-1.6.38/jenkins_hash.h
memcached-1.6.38/solaris_priv.c
memcached-1.6.38/proxy_ring_hash.c
memcached-1.6.38/cache.h
memcached-1.6.38/slab_automove_extstore.h
memcached-1.6.38/vendor/
memcached-1.6.38/vendor/Makefile
memcached-1.6.38/vendor/mcmc/
memcached-1.6.38/vendor/mcmc/Makefile
memcached-1.6.38/vendor/mcmc/mcmc.c
memcached-1.6.38/vendor/mcmc/LICENSE
memcached-1.6.38/vendor/mcmc/README.md
memcached-1.6.38/vendor/mcmc/example.c
memcached-1.6.38/vendor/mcmc/mcmc.h
memcached-1.6.38/vendor/lua/
memcached-1.6.38/vendor/lua/Makefile
memcached-1.6.38/vendor/lua/README
memcached-1.6.38/vendor/lua/src/
memcached-1.6.38/vendor/lua/src/lundump.c
memcached-1.6.38/vendor/lua/src/ltablib.c
memcached-1.6.38/vendor/lua/src/Makefile
memcached-1.6.38/vendor/lua/src/ldebug.c
memcached-1.6.38/vendor/lua/src/lopcodes.h
memcached-1.6.38/vendor/lua/src/lualib.h
memcached-1.6.38/vendor/lua/src/lapi.c
memcached-1.6.38/vendor/lua/src/lopnames.h
memcached-1.6.38/vendor/lua/src/ljumptab.h
memcached-1.6.38/vendor/lua/src/lmem.h
memcached-1.6.38/vendor/lua/src/lvm.h
memcached-1.6.38/vendor/lua/src/ltable.h
memcached-1.6.38/vendor/lua/src/loslib.c
memcached-1.6.38/vendor/lua/src/luac.c
memcached-1.6.38/vendor/lua/src/lcode.c
memcached-1.6.38/vendor/lua/src/lctype.c
memcached-1.6.38/vendor/lua/src/lvm.c
memcached-1.6.38/vendor/lua/src/ldblib.c
memcached-1.6.38/vendor/lua/src/lparser.c
memcached-1.6.38/vendor/lua/src/lua.c
memcached-1.6.38/vendor/lua/src/lzio.h
memcached-1.6.38/vendor/lua/src/lundump.h
memcached-1.6.38/vendor/lua/src/lstrlib.c
memcached-1.6.38/vendor/lua/src/llex.c
memcached-1.6.38/vendor/lua/src/ldo.h
memcached-1.6.38/vendor/lua/src/llex.h
memcached-1.6.38/vendor/lua/src/lmem.c
memcached-1.6.38/vendor/lua/src/linit.c
memcached-1.6.38/vendor/lua/src/loadlib.c
memcached-1.6.38/vendor/lua/src/ldo.c
memcached-1.6.38/vendor/lua/src/llimits.h
memcached-1.6.38/vendor/lua/src/lparser.h
memcached-1.6.38/vendor/lua/src/ltable.c
memcached-1.6.38/vendor/lua/src/lauxlib.c
memcached-1.6.38/vendor/lua/src/lfunc.c
memcached-1.6.38/vendor/lua/src/lfunc.h
memcached-1.6.38/vendor/lua/src/lauxlib.h
memcached-1.6.38/vendor/lua/src/luaconf.h
memcached-1.6.38/vendor/lua/src/lbaselib.c
memcached-1.6.38/vendor/lua/src/lctype.h
memcached-1.6.38/vendor/lua/src/lutf8lib.c
memcached-1.6.38/vendor/lua/src/lstring.h
memcached-1.6.38/vendor/lua/src/lzio.c
memcached-1.6.38/vendor/lua/src/ltm.c
memcached-1.6.38/vendor/lua/src/lgc.h
memcached-1.6.38/vendor/lua/src/lgc.c
memcached-1.6.38/vendor/lua/src/ldump.c
memcached-1.6.38/vendor/lua/src/lprefix.h
memcached-1.6.38/vendor/lua/src/lmathlib.c
memcached-1.6.38/vendor/lua/src/lopcodes.c
memcached-1.6.38/vendor/lua/src/lapi.h
memcached-1.6.38/vendor/lua/src/lstate.c
memcached-1.6.38/vendor/lua/src/lstate.h
memcached-1.6.38/vendor/lua/src/liolib.c
memcached-1.6.38/vendor/lua/src/lcorolib.c
memcached-1.6.38/vendor/lua/src/ltm.h
memcached-1.6.38/vendor/lua/src/lstring.c
memcached-1.6.38/vendor/lua/src/lcode.h
memcached-1.6.38/vendor/lua/src/ldebug.h
memcached-1.6.38/vendor/lua/src/lua.h
memcached-1.6.38/vendor/lua/src/lobject.c
memcached-1.6.38/vendor/lua/src/lobject.h
memcached-1.6.38/vendor/lua/doc/
memcached-1.6.38/vendor/lua/doc/lua.1
memcached-1.6.38/vendor/lua/doc/luac.1
memcached-1.6.38/vendor/lua/doc/logo.gif
memcached-1.6.38/vendor/lua/doc/contents.html
memcached-1.6.38/vendor/lua/doc/osi-certified-72x60.png
memcached-1.6.38/vendor/lua/doc/index.css
memcached-1.6.38/vendor/lua/doc/readme.html
memcached-1.6.38/vendor/lua/doc/lua.css
memcached-1.6.38/vendor/lua/doc/manual.css
memcached-1.6.38/vendor/lua/doc/manual.html
memcached-1.6.38/vendor/routelib/
memcached-1.6.38/vendor/routelib/routelib.h
memcached-1.6.38/vendor/routelib/routelib.lua
memcached-1.6.38/install-sh
memcached-1.6.38/slabs_mover.c
memcached-1.6.38/proxy_tls.h
memcached-1.6.38/scripts/
memcached-1.6.38/scripts/memcached.sysv
memcached-1.6.38/scripts/memcached-tool
memcached-1.6.38/scripts/memcached-tool.1
memcached-1.6.38/scripts/memcached-automove
memcached-1.6.38/scripts/memcached@.service
memcached-1.6.38/scripts/memcached.service
memcached-1.6.38/scripts/memcached.upstart
memcached-1.6.38/scripts/README.damemtop
memcached-1.6.38/scripts/memcached.sysconfig
memcached-1.6.38/scripts/memcached-automove-extstore
memcached-1.6.38/scripts/memcached-init
memcached-1.6.38/scripts/damemtop
memcached-1.6.38/scripts/start-memcached
memcached-1.6.38/scripts/memcached-server.upstart
memcached-1.6.38/scripts/damemtop.yaml
memcached-1.6.38/tls.h
memcached-1.6.38/AUTHORS
memcached-1.6.38/proxy_mutator.c
memcached-1.6.38/proxy_lua.c
memcached-1.6.38/md5.c
memcached-1.6.38/bipbuffer.c
memcached-1.6.38/hash.h
memcached-1.6.38/authfile.c
memcached-1.6.38/restart.c
memcached-1.6.38/slab_automove.h
memcached-1.6.38/slabs.c
memcached-1.6.38/aclocal.m4
memcached-1.6.38/murmur3_hash.h
memcached-1.6.38/proxy_internal.c
[root@db ~]# ls
anaconda-ks.cfg  memcached-1.6.38  memcached-1.6.38.tar.gz
[root@db ~]# cd memcached-1.6.38
[root@db memcached-1.6.38]# ls
aclocal.m4    configure       items.c             memcached.h        proxy_internal.c   restart.h                 storage.h
assoc.c       configure.ac    items.h             memcached.spec     proxy_jump_hash.c  sasl_defs.c               t
assoc.h       COPYING         itoa_ljust.c        missing            proxy_lua.c        sasl_defs.h               testapp.c
authfile.c    crawler.c       itoa_ljust.h        murmur3_hash.c     proxy_luafgen.c    scripts                   thread.c
authfile.h    crawler.h       jenkins_hash.c      murmur3_hash.h     proxy_mutator.c    sizes.c                   timedrun.c
AUTHORS       crc32c.c        jenkins_hash.h      NEWS               proxy_network.c    slab_automove.c           tls.c
base64.c      crc32c.h        LICENSE.bipbuffer   openbsd_priv.c     proxy_ratelim.c    slab_automove_extstore.c  tls.h
base64.h      daemon.c        linux_priv.c        proto_bin.c        proxy_request.c    slab_automove_extstore.h  trace.h
bipbuffer.c   darwin_priv.c   logger.c            proto_bin.h        proxy_result.c     slab_automove.h           util.c
bipbuffer.h   depcomp         logger.h            protocol_binary.h  proxy_ring_hash.c  slabs.c                   util.h
cache.c       doc             m4                  proto_proxy.c      proxy_tls.c        slabs.h                   vendor
cache.h       extstore.c      Makefile.am         proto_proxy.h      proxy_tls.h        slabs_mover.c             version.m4
ChangeLog     extstore.h      Makefile.in         proto_text.c       proxy_ustats.c     slabs_mover.h             xxhash.h
compile       freebsd_priv.c  md5.c               proto_text.h       proxy_xxhash.c     solaris_priv.c
config.guess  hash.c          md5.h               proxy_config.c     queue.h            stats_prefix.c
config.h.in   hash.h          memcached.c         proxy.h            README.md          stats_prefix.h
config.sub    install-sh      memcached_dtrace.d  proxy_inspector.c  restart.c          storage.c
[root@db memcached-1.6.38]# yum install libevent libevent-devel -y
已加载插件:fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirrors.aliyun.com
 * extras: mirrors.aliyun.com
 * updates: mirrors.aliyun.com
正在解决依赖关系
--> 正在检查事务
---> 软件包 libevent.x86_64.0.2.0.21-4.el7 将被 安装
---> 软件包 libevent-devel.x86_64.0.2.0.21-4.el7 将被 安装
--> 解决依赖关系完成

依赖关系解决

=========================================================================================================================================
 Package                              架构                         版本                                 源                          大小
=========================================================================================================================================
正在安装:
 libevent                             x86_64                       2.0.21-4.el7                         base                       214 k
 libevent-devel                       x86_64                       2.0.21-4.el7                         base                        85 k

事务概要
=========================================================================================================================================
安装  2 软件包

总下载量:298 k
安装大小:1.1 M
Downloading packages:
(1/2): libevent-devel-2.0.21-4.el7.x86_64.rpm                                                                     |  85 kB  00:00:00
(2/2): libevent-2.0.21-4.el7.x86_64.rpm                                                                           | 214 kB  00:00:00
-----------------------------------------------------------------------------------------------------------------------------------------
总计                                                                                                     348 kB/s | 298 kB  00:00:00
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  正在安装    : libevent-2.0.21-4.el7.x86_64                                                                                         1/2
  正在安装    : libevent-devel-2.0.21-4.el7.x86_64                                                                                   2/2
  验证中      : libevent-devel-2.0.21-4.el7.x86_64                                                                                   1/2
  验证中      : libevent-2.0.21-4.el7.x86_64                                                                                         2/2

已安装:
  libevent.x86_64 0:2.0.21-4.el7                                   libevent-devel.x86_64 0:2.0.21-4.el7

完毕!
[root@db memcached-1.6.38]# whereis libevent
libevent: /usr/lib64/libevent.so
[root@db memcached-1.6.38]# ./configure --prefix=/usr/local/memcached
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a race-free mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether the compiler supports GNU C... yes
checking whether gcc accepts -g... yes
checking for gcc option to enable C11 features... -std=gnu11
checking whether gcc -std=gnu11 understands -c and -o together... yes
checking whether make supports the include directive... yes (GNU style)
checking dependency style of gcc -std=gnu11... gcc3
checking how to run the C preprocessor... gcc -std=gnu11 -E
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for icc in use... no
checking for clang in use... no
checking for gcc -std=gnu11 options needed to detect all undeclared functions... none needed
checking for stdio.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for strings.h... yes
checking for sys/stat.h... yes
checking for sys/types.h... yes
checking for unistd.h... yes
checking whether __SUNPRO_C is declared... no
checking for gcc -std=gnu11 option to accept ISO C99... none needed
checking for sasl/sasl.h... no
checking for gcov... /usr/bin/gcov
checking for main in -lgcov... yes
checking size of void *... 8
checking for library containing clock_gettime... none required
checking for library containing socket... none required
checking for library containing gethostbyname... none required
checking for libevent directory... (system)
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for library containing gethugepagesizes... no
checking for _Bool... yes
checking for stdbool.h that conforms to C99... yes
checking for inttypes.h... (cached) yes
checking for sys/auxv.h... yes
checking for sasl_callback_ft... no
checking for print macros for integers (C99 section 7.8.1)... yes
checking for an ANSI C-conforming const... yes
checking for socklen_t... yes
checking whether byte ordering is bigendian... no
checking for htonll... no
checking for library containing pthread_create... none required
checking for mlockall... yes
checking for getpagesizes... no
checking for sysconf... yes
checking for memcntl... no
checking for clock_gettime... yes
checking for preadv... yes
checking for pread... yes
checking for eventfd... yes
checking for pthread_setname_np... yes
checking for accept4... yes
checking for getopt_long... yes
checking for alignment... none
checking for GCC atomics... yes
checking for GCC 64bit atomics... yes
checking for setppriv... no
checking for pledge... no
checking for cap_enter... no
checking for sandbox_init... no
checking for xml2rfc... no
checking for xsltproc... no
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating doc/Makefile
config.status: creating config.h
config.status: executing depfiles commands
[root@db memcached-1.6.38]# make && make install
make  all-recursive
make[1]: 进入目录“/root/memcached-1.6.38”
Making all in doc
make[2]: 进入目录“/root/memcached-1.6.38/doc”
make  all-am
make[3]: 进入目录“/root/memcached-1.6.38/doc”
make[3]: 对“all-am”无需做任何事。
make[3]: 离开目录“/root/memcached-1.6.38/doc”
make[2]: 离开目录“/root/memcached-1.6.38/doc”
make[2]: 进入目录“/root/memcached-1.6.38”
gcc -std=gnu11 -DHAVE_CONFIG_H -I.  -DNDEBUG   -g -O2 -pthread -pthread -Wall -pedantic -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -MT memcached-memcached.o -MD -MP -MF .deps/memcached-memcached.Tpo -c -o memcached-memcached.o `test -f 'memcached.c' || echo './'`memcached.c
mv -f .deps/memcached-memcached.Tpo .deps/memcached-memcached.Po
gcc -std=gnu11 -DHAVE_CONFIG_H -I.  -DNDEBUG   -g -O2 -pthread -pthread -Wall -pedantic -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -MT memcached-hash.o -MD -MP -MF .deps/memcached-hash.Tpo -c -o memcached-hash.o `test -f 'hash.c' || echo './'`hash.c
mv -f .deps/memcached-hash.Tpo .deps/memcached-hash.Po
gcc -std=gnu11 -DHAVE_CONFIG_H -I.  -DNDEBUG   -g -O2 -pthread -pthread -Wall -pedantic -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -MT memcached-jenkins_hash.o -MD -MP -MF .deps/memcached-jenkins_hash.Tpo -c -o memcached-jenkins_hash.o `test -f 'jenkins_hash.c' || echo './'`jenkins_hash.c
mv -f .deps/memcached-jenkins_hash.Tpo .deps/memcached-jenkins_hash.Po
gcc -std=gnu11 -DHAVE_CONFIG_H -I.  -DNDEBUG   -g -O2 -pthread -pthread -Wall -pedantic -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -MT memcached-murmur3_hash.o -MD -MP -MF .deps/memcached-murmur3_hash.Tpo -c -o memcached-murmur3_hash.o `test -f 'murmur3_hash.c' || echo './'`murmur3_hash.c
mv -f .deps/memcached-murmur3_hash.Tpo .deps/memcached-murmur3_hash.Po
gcc -std=gnu11 -DHAVE_CONFIG_H -I.  -DNDEBUG   -g -O2 -pthread -pthread -Wall -pedantic -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -MT memcached-slabs.o -MD -MP -MF .deps/memcached-slabs.Tpo -c -o memcached-slabs.o `test -f 'slabs.c' || echo './'`slabs.c
mv -f .deps/memcached-slabs.Tpo .deps/memcached-slabs.Po
gcc -std=gnu11 -DHAVE_CONFIG_H -I.  -DNDEBUG   -g -O2 -pthread -pthread -Wall -pedantic -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -MT memcached-items.o -MD -MP -MF .deps/memcached-items.Tpo -c -o memcached-items.o `test -f 'items.c' || echo './'`items.c
mv -f .deps/memcached-items.Tpo .deps/memcached-items.Po
gcc -std=gnu11 -DHAVE_CONFIG_H -I.  -DNDEBUG   -g -O2 -pthread -pthread -Wall -pedantic -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -MT memcached-assoc.o -MD -MP -MF .deps/memcached-assoc.Tpo -c -o memcached-assoc.o `test -f 'assoc.c' || echo './'`assoc.c
mv -f .deps/memcached-assoc.Tpo .deps/memcached-assoc.Po
gcc -std=gnu11 -DHAVE_CONFIG_H -I.  -DNDEBUG   -g -O2 -pthread -pthread -Wall -pedantic -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -MT memcached-thread.o -MD -MP -MF .deps/memcached-thread.Tpo -c -o memcached-thread.o `test -f 'thread.c' || echo './'`thread.c
mv -f .deps/memcached-thread.Tpo .deps/memcached-thread.Po
gcc -std=gnu11 -DHAVE_CONFIG_H -I.  -DNDEBUG   -g -O2 -pthread -pthread -Wall -pedantic -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -MT memcached-daemon.o -MD -MP -MF .deps/memcached-daemon.Tpo -c -o memcached-daemon.o `test -f 'daemon.c' || echo './'`daemon.c
mv -f .deps/memcached-daemon.Tpo .deps/memcached-daemon.Po
gcc -std=gnu11 -DHAVE_CONFIG_H -I.  -DNDEBUG   -g -O2 -pthread -pthread -Wall -pedantic -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -MT memcached-stats_prefix.o -MD -MP -MF .deps/memcached-stats_prefix.Tpo -c -o memcached-stats_prefix.o `test -f 'stats_prefix.c' || echo './'`stats_prefix.c
mv -f .deps/memcached-stats_prefix.Tpo .deps/memcached-stats_prefix.Po
gcc -std=gnu11 -DHAVE_CONFIG_H -I.  -DNDEBUG   -g -O2 -pthread -pthread -Wall -pedantic -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -MT memcached-util.o -MD -MP -MF .deps/memcached-util.Tpo -c -o memcached-util.o `test -f 'util.c' || echo './'`util.c
mv -f .deps/memcached-util.Tpo .deps/memcached-util.Po
gcc -std=gnu11 -DHAVE_CONFIG_H -I.  -DNDEBUG   -g -O2 -pthread -pthread -Wall -pedantic -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -MT memcached-cache.o -MD -MP -MF .deps/memcached-cache.Tpo -c -o memcached-cache.o `test -f 'cache.c' || echo './'`cache.c
mv -f .deps/memcached-cache.Tpo .deps/memcached-cache.Po
gcc -std=gnu11 -DHAVE_CONFIG_H -I.  -DNDEBUG   -g -O2 -pthread -pthread -Wall -pedantic -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -MT memcached-bipbuffer.o -MD -MP -MF .deps/memcached-bipbuffer.Tpo -c -o memcached-bipbuffer.o `test -f 'bipbuffer.c' || echo './'`bipbuffer.c
mv -f .deps/memcached-bipbuffer.Tpo .deps/memcached-bipbuffer.Po
gcc -std=gnu11 -DHAVE_CONFIG_H -I.  -DNDEBUG   -g -O2 -pthread -pthread -Wall -pedantic -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -MT memcached-base64.o -MD -MP -MF .deps/memcached-base64.Tpo -c -o memcached-base64.o `test -f 'base64.c' || echo './'`base64.c
mv -f .deps/memcached-base64.Tpo .deps/memcached-base64.Po
gcc -std=gnu11 -DHAVE_CONFIG_H -I.  -DNDEBUG   -g -O2 -pthread -pthread -Wall -pedantic -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -MT memcached-logger.o -MD -MP -MF .deps/memcached-logger.Tpo -c -o memcached-logger.o `test -f 'logger.c' || echo './'`logger.c
mv -f .deps/memcached-logger.Tpo .deps/memcached-logger.Po
gcc -std=gnu11 -DHAVE_CONFIG_H -I.  -DNDEBUG   -g -O2 -pthread -pthread -Wall -pedantic -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -MT memcached-crawler.o -MD -MP -MF .deps/memcached-crawler.Tpo -c -o memcached-crawler.o `test -f 'crawler.c' || echo './'`crawler.c
mv -f .deps/memcached-crawler.Tpo .deps/memcached-crawler.Po
gcc -std=gnu11 -DHAVE_CONFIG_H -I.  -DNDEBUG   -g -O2 -pthread -pthread -Wall -pedantic -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -MT memcached-itoa_ljust.o -MD -MP -MF .deps/memcached-itoa_ljust.Tpo -c -o memcached-itoa_ljust.o `test -f 'itoa_ljust.c' || echo './'`itoa_ljust.c
mv -f .deps/memcached-itoa_ljust.Tpo .deps/memcached-itoa_ljust.Po
gcc -std=gnu11 -DHAVE_CONFIG_H -I.  -DNDEBUG   -g -O2 -pthread -pthread -Wall -pedantic -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -MT memcached-slab_automove.o -MD -MP -MF .deps/memcached-slab_automove.Tpo -c -o memcached-slab_automove.o `test -f 'slab_automove.c' || echo './'`slab_automove.c
mv -f .deps/memcached-slab_automove.Tpo .deps/memcached-slab_automove.Po
gcc -std=gnu11 -DHAVE_CONFIG_H -I.  -DNDEBUG   -g -O2 -pthread -pthread -Wall -pedantic -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -MT memcached-slabs_mover.o -MD -MP -MF .deps/memcached-slabs_mover.Tpo -c -o memcached-slabs_mover.o `test -f 'slabs_mover.c' || echo './'`slabs_mover.c
mv -f .deps/memcached-slabs_mover.Tpo .deps/memcached-slabs_mover.Po
gcc -std=gnu11 -DHAVE_CONFIG_H -I.  -DNDEBUG   -g -O2 -pthread -pthread -Wall -pedantic -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -MT memcached-authfile.o -MD -MP -MF .deps/memcached-authfile.Tpo -c -o memcached-authfile.o `test -f 'authfile.c' || echo './'`authfile.c
mv -f .deps/memcached-authfile.Tpo .deps/memcached-authfile.Po
gcc -std=gnu11 -DHAVE_CONFIG_H -I.  -DNDEBUG   -g -O2 -pthread -pthread -Wall -pedantic -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -MT memcached-restart.o -MD -MP -MF .deps/memcached-restart.Tpo -c -o memcached-restart.o `test -f 'restart.c' || echo './'`restart.c
mv -f .deps/memcached-restart.Tpo .deps/memcached-restart.Po
gcc -std=gnu11 -DHAVE_CONFIG_H -I.  -DNDEBUG   -g -O2 -pthread -pthread -Wall -pedantic -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -MT memcached-proto_text.o -MD -MP -MF .deps/memcached-proto_text.Tpo -c -o memcached-proto_text.o `test -f 'proto_text.c' || echo './'`proto_text.c
mv -f .deps/memcached-proto_text.Tpo .deps/memcached-proto_text.Po
gcc -std=gnu11 -DHAVE_CONFIG_H -I.  -DNDEBUG   -g -O2 -pthread -pthread -Wall -pedantic -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -MT memcached-proto_bin.o -MD -MP -MF .deps/memcached-proto_bin.Tpo -c -o memcached-proto_bin.o `test -f 'proto_bin.c' || echo './'`proto_bin.c
mv -f .deps/memcached-proto_bin.Tpo .deps/memcached-proto_bin.Po
gcc -std=gnu11 -DHAVE_CONFIG_H -I.  -DNDEBUG   -g -O2 -pthread -pthread -Wall -pedantic -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -MT memcached-extstore.o -MD -MP -MF .deps/memcached-extstore.Tpo -c -o memcached-extstore.o `test -f 'extstore.c' || echo './'`extstore.c
mv -f .deps/memcached-extstore.Tpo .deps/memcached-extstore.Po
gcc -std=gnu11 -DHAVE_CONFIG_H -I.  -DNDEBUG   -g -O2 -pthread -pthread -Wall -pedantic -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -MT memcached-crc32c.o -MD -MP -MF .deps/memcached-crc32c.Tpo -c -o memcached-crc32c.o `test -f 'crc32c.c' || echo './'`crc32c.c
mv -f .deps/memcached-crc32c.Tpo .deps/memcached-crc32c.Po
gcc -std=gnu11 -DHAVE_CONFIG_H -I.  -DNDEBUG   -g -O2 -pthread -pthread -Wall -pedantic -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -MT memcached-storage.o -MD -MP -MF .deps/memcached-storage.Tpo -c -o memcached-storage.o `test -f 'storage.c' || echo './'`storage.c
mv -f .deps/memcached-storage.Tpo .deps/memcached-storage.Po
gcc -std=gnu11 -DHAVE_CONFIG_H -I.  -DNDEBUG   -g -O2 -pthread -pthread -Wall -pedantic -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -MT memcached-slab_automove_extstore.o -MD -MP -MF .deps/memcached-slab_automove_extstore.Tpo -c -o memcached-slab_automove_extstore.o `test -f 'slab_automove_extstore.c' || echo './'`slab_automove_extstore.c
mv -f .deps/memcached-slab_automove_extstore.Tpo .deps/memcached-slab_automove_extstore.Po
gcc -std=gnu11  -g -O2 -pthread -pthread -Wall -pedantic -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls   -o memcached memcached-memcached.o memcached-hash.o memcached-jenkins_hash.o memcached-murmur3_hash.o memcached-slabs.o memcached-items.o memcached-assoc.o memcached-thread.o memcached-daemon.o memcached-stats_prefix.o memcached-util.o memcached-cache.o memcached-bipbuffer.o memcached-base64.o memcached-logger.o memcached-crawler.o memcached-itoa_ljust.o memcached-slab_automove.o memcached-slabs_mover.o memcached-authfile.o memcached-restart.o memcached-proto_text.o memcached-proto_bin.o        memcached-extstore.o memcached-crc32c.o memcached-storage.o memcached-slab_automove_extstore.o      -levent
gcc -std=gnu11 -DHAVE_CONFIG_H -I.    -fprofile-arcs -ftest-coverage -DMEMCACHED_DEBUG -g -O2 -pthread -pthread -Wall -pedantic -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -MT memcached_debug-memcached.o -MD -MP -MF .deps/memcached_debug-memcached.Tpo -c -o memcached_debug-memcached.o `test -f 'memcached.c' || echo './'`memcached.c
mv -f .deps/memcached_debug-memcached.Tpo .deps/memcached_debug-memcached.Po
gcc -std=gnu11 -DHAVE_CONFIG_H -I.    -fprofile-arcs -ftest-coverage -DMEMCACHED_DEBUG -g -O2 -pthread -pthread -Wall -pedantic -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -MT memcached_debug-hash.o -MD -MP -MF .deps/memcached_debug-hash.Tpo -c -o memcached_debug-hash.o `test -f 'hash.c' || echo './'`hash.c
mv -f .deps/memcached_debug-hash.Tpo .deps/memcached_debug-hash.Po
gcc -std=gnu11 -DHAVE_CONFIG_H -I.    -fprofile-arcs -ftest-coverage -DMEMCACHED_DEBUG -g -O2 -pthread -pthread -Wall -pedantic -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -MT memcached_debug-jenkins_hash.o -MD -MP -MF .deps/memcached_debug-jenkins_hash.Tpo -c -o memcached_debug-jenkins_hash.o `test -f 'jenkins_hash.c' || echo './'`jenkins_hash.c
mv -f .deps/memcached_debug-jenkins_hash.Tpo .deps/memcached_debug-jenkins_hash.Po
gcc -std=gnu11 -DHAVE_CONFIG_H -I.    -fprofile-arcs -ftest-coverage -DMEMCACHED_DEBUG -g -O2 -pthread -pthread -Wall -pedantic -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -MT memcached_debug-murmur3_hash.o -MD -MP -MF .deps/memcached_debug-murmur3_hash.Tpo -c -o memcached_debug-murmur3_hash.o `test -f 'murmur3_hash.c' || echo './'`murmur3_hash.c
mv -f .deps/memcached_debug-murmur3_hash.Tpo .deps/memcached_debug-murmur3_hash.Po
gcc -std=gnu11 -DHAVE_CONFIG_H -I.    -fprofile-arcs -ftest-coverage -DMEMCACHED_DEBUG -g -O2 -pthread -pthread -Wall -pedantic -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -MT memcached_debug-slabs.o -MD -MP -MF .deps/memcached_debug-slabs.Tpo -c -o memcached_debug-slabs.o `test -f 'slabs.c' || echo './'`slabs.c
mv -f .deps/memcached_debug-slabs.Tpo .deps/memcached_debug-slabs.Po
gcc -std=gnu11 -DHAVE_CONFIG_H -I.    -fprofile-arcs -ftest-coverage -DMEMCACHED_DEBUG -g -O2 -pthread -pthread -Wall -pedantic -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -MT memcached_debug-items.o -MD -MP -MF .deps/memcached_debug-items.Tpo -c -o memcached_debug-items.o `test -f 'items.c' || echo './'`items.c
mv -f .deps/memcached_debug-items.Tpo .deps/memcached_debug-items.Po
gcc -std=gnu11 -DHAVE_CONFIG_H -I.    -fprofile-arcs -ftest-coverage -DMEMCACHED_DEBUG -g -O2 -pthread -pthread -Wall -pedantic -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -MT memcached_debug-assoc.o -MD -MP -MF .deps/memcached_debug-assoc.Tpo -c -o memcached_debug-assoc.o `test -f 'assoc.c' || echo './'`assoc.c
mv -f .deps/memcached_debug-assoc.Tpo .deps/memcached_debug-assoc.Po
gcc -std=gnu11 -DHAVE_CONFIG_H -I.    -fprofile-arcs -ftest-coverage -DMEMCACHED_DEBUG -g -O2 -pthread -pthread -Wall -pedantic -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -MT memcached_debug-thread.o -MD -MP -MF .deps/memcached_debug-thread.Tpo -c -o memcached_debug-thread.o `test -f 'thread.c' || echo './'`thread.c
mv -f .deps/memcached_debug-thread.Tpo .deps/memcached_debug-thread.Po
gcc -std=gnu11 -DHAVE_CONFIG_H -I.    -fprofile-arcs -ftest-coverage -DMEMCACHED_DEBUG -g -O2 -pthread -pthread -Wall -pedantic -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -MT memcached_debug-daemon.o -MD -MP -MF .deps/memcached_debug-daemon.Tpo -c -o memcached_debug-daemon.o `test -f 'daemon.c' || echo './'`daemon.c
mv -f .deps/memcached_debug-daemon.Tpo .deps/memcached_debug-daemon.Po
gcc -std=gnu11 -DHAVE_CONFIG_H -I.    -fprofile-arcs -ftest-coverage -DMEMCACHED_DEBUG -g -O2 -pthread -pthread -Wall -pedantic -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -MT memcached_debug-stats_prefix.o -MD -MP -MF .deps/memcached_debug-stats_prefix.Tpo -c -o memcached_debug-stats_prefix.o `test -f 'stats_prefix.c' || echo './'`stats_prefix.c
mv -f .deps/memcached_debug-stats_prefix.Tpo .deps/memcached_debug-stats_prefix.Po
gcc -std=gnu11 -DHAVE_CONFIG_H -I.    -fprofile-arcs -ftest-coverage -DMEMCACHED_DEBUG -g -O2 -pthread -pthread -Wall -pedantic -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -MT memcached_debug-util.o -MD -MP -MF .deps/memcached_debug-util.Tpo -c -o memcached_debug-util.o `test -f 'util.c' || echo './'`util.c
mv -f .deps/memcached_debug-util.Tpo .deps/memcached_debug-util.Po
gcc -std=gnu11 -DHAVE_CONFIG_H -I.    -fprofile-arcs -ftest-coverage -DMEMCACHED_DEBUG -g -O2 -pthread -pthread -Wall -pedantic -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -MT memcached_debug-cache.o -MD -MP -MF .deps/memcached_debug-cache.Tpo -c -o memcached_debug-cache.o `test -f 'cache.c' || echo './'`cache.c
mv -f .deps/memcached_debug-cache.Tpo .deps/memcached_debug-cache.Po
gcc -std=gnu11 -DHAVE_CONFIG_H -I.    -fprofile-arcs -ftest-coverage -DMEMCACHED_DEBUG -g -O2 -pthread -pthread -Wall -pedantic -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -MT memcached_debug-bipbuffer.o -MD -MP -MF .deps/memcached_debug-bipbuffer.Tpo -c -o memcached_debug-bipbuffer.o `test -f 'bipbuffer.c' || echo './'`bipbuffer.c
mv -f .deps/memcached_debug-bipbuffer.Tpo .deps/memcached_debug-bipbuffer.Po
gcc -std=gnu11 -DHAVE_CONFIG_H -I.    -fprofile-arcs -ftest-coverage -DMEMCACHED_DEBUG -g -O2 -pthread -pthread -Wall -pedantic -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -MT memcached_debug-base64.o -MD -MP -MF .deps/memcached_debug-base64.Tpo -c -o memcached_debug-base64.o `test -f 'base64.c' || echo './'`base64.c
mv -f .deps/memcached_debug-base64.Tpo .deps/memcached_debug-base64.Po
gcc -std=gnu11 -DHAVE_CONFIG_H -I.    -fprofile-arcs -ftest-coverage -DMEMCACHED_DEBUG -g -O2 -pthread -pthread -Wall -pedantic -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -MT memcached_debug-logger.o -MD -MP -MF .deps/memcached_debug-logger.Tpo -c -o memcached_debug-logger.o `test -f 'logger.c' || echo './'`logger.c
mv -f .deps/memcached_debug-logger.Tpo .deps/memcached_debug-logger.Po
gcc -std=gnu11 -DHAVE_CONFIG_H -I.    -fprofile-arcs -ftest-coverage -DMEMCACHED_DEBUG -g -O2 -pthread -pthread -Wall -pedantic -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -MT memcached_debug-crawler.o -MD -MP -MF .deps/memcached_debug-crawler.Tpo -c -o memcached_debug-crawler.o `test -f 'crawler.c' || echo './'`crawler.c
mv -f .deps/memcached_debug-crawler.Tpo .deps/memcached_debug-crawler.Po
gcc -std=gnu11 -DHAVE_CONFIG_H -I.    -fprofile-arcs -ftest-coverage -DMEMCACHED_DEBUG -g -O2 -pthread -pthread -Wall -pedantic -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -MT memcached_debug-itoa_ljust.o -MD -MP -MF .deps/memcached_debug-itoa_ljust.Tpo -c -o memcached_debug-itoa_ljust.o `test -f 'itoa_ljust.c' || echo './'`itoa_ljust.c
mv -f .deps/memcached_debug-itoa_ljust.Tpo .deps/memcached_debug-itoa_ljust.Po
gcc -std=gnu11 -DHAVE_CONFIG_H -I.    -fprofile-arcs -ftest-coverage -DMEMCACHED_DEBUG -g -O2 -pthread -pthread -Wall -pedantic -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -MT memcached_debug-slab_automove.o -MD -MP -MF .deps/memcached_debug-slab_automove.Tpo -c -o memcached_debug-slab_automove.o `test -f 'slab_automove.c' || echo './'`slab_automove.c
mv -f .deps/memcached_debug-slab_automove.Tpo .deps/memcached_debug-slab_automove.Po
gcc -std=gnu11 -DHAVE_CONFIG_H -I.    -fprofile-arcs -ftest-coverage -DMEMCACHED_DEBUG -g -O2 -pthread -pthread -Wall -pedantic -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -MT memcached_debug-slabs_mover.o -MD -MP -MF .deps/memcached_debug-slabs_mover.Tpo -c -o memcached_debug-slabs_mover.o `test -f 'slabs_mover.c' || echo './'`slabs_mover.c
mv -f .deps/memcached_debug-slabs_mover.Tpo .deps/memcached_debug-slabs_mover.Po
gcc -std=gnu11 -DHAVE_CONFIG_H -I.    -fprofile-arcs -ftest-coverage -DMEMCACHED_DEBUG -g -O2 -pthread -pthread -Wall -pedantic -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -MT memcached_debug-authfile.o -MD -MP -MF .deps/memcached_debug-authfile.Tpo -c -o memcached_debug-authfile.o `test -f 'authfile.c' || echo './'`authfile.c
mv -f .deps/memcached_debug-authfile.Tpo .deps/memcached_debug-authfile.Po
gcc -std=gnu11 -DHAVE_CONFIG_H -I.    -fprofile-arcs -ftest-coverage -DMEMCACHED_DEBUG -g -O2 -pthread -pthread -Wall -pedantic -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -MT memcached_debug-restart.o -MD -MP -MF .deps/memcached_debug-restart.Tpo -c -o memcached_debug-restart.o `test -f 'restart.c' || echo './'`restart.c
mv -f .deps/memcached_debug-restart.Tpo .deps/memcached_debug-restart.Po
gcc -std=gnu11 -DHAVE_CONFIG_H -I.    -fprofile-arcs -ftest-coverage -DMEMCACHED_DEBUG -g -O2 -pthread -pthread -Wall -pedantic -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -MT memcached_debug-proto_text.o -MD -MP -MF .deps/memcached_debug-proto_text.Tpo -c -o memcached_debug-proto_text.o `test -f 'proto_text.c' || echo './'`proto_text.c
mv -f .deps/memcached_debug-proto_text.Tpo .deps/memcached_debug-proto_text.Po
gcc -std=gnu11 -DHAVE_CONFIG_H -I.    -fprofile-arcs -ftest-coverage -DMEMCACHED_DEBUG -g -O2 -pthread -pthread -Wall -pedantic -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -MT memcached_debug-proto_bin.o -MD -MP -MF .deps/memcached_debug-proto_bin.Tpo -c -o memcached_debug-proto_bin.o `test -f 'proto_bin.c' || echo './'`proto_bin.c
mv -f .deps/memcached_debug-proto_bin.Tpo .deps/memcached_debug-proto_bin.Po
gcc -std=gnu11 -DHAVE_CONFIG_H -I.    -fprofile-arcs -ftest-coverage -DMEMCACHED_DEBUG -g -O2 -pthread -pthread -Wall -pedantic -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -MT memcached_debug-extstore.o -MD -MP -MF .deps/memcached_debug-extstore.Tpo -c -o memcached_debug-extstore.o `test -f 'extstore.c' || echo './'`extstore.c
mv -f .deps/memcached_debug-extstore.Tpo .deps/memcached_debug-extstore.Po
gcc -std=gnu11 -DHAVE_CONFIG_H -I.    -fprofile-arcs -ftest-coverage -DMEMCACHED_DEBUG -g -O2 -pthread -pthread -Wall -pedantic -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -MT memcached_debug-crc32c.o -MD -MP -MF .deps/memcached_debug-crc32c.Tpo -c -o memcached_debug-crc32c.o `test -f 'crc32c.c' || echo './'`crc32c.c
mv -f .deps/memcached_debug-crc32c.Tpo .deps/memcached_debug-crc32c.Po
gcc -std=gnu11 -DHAVE_CONFIG_H -I.    -fprofile-arcs -ftest-coverage -DMEMCACHED_DEBUG -g -O2 -pthread -pthread -Wall -pedantic -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -MT memcached_debug-storage.o -MD -MP -MF .deps/memcached_debug-storage.Tpo -c -o memcached_debug-storage.o `test -f 'storage.c' || echo './'`storage.c
mv -f .deps/memcached_debug-storage.Tpo .deps/memcached_debug-storage.Po
gcc -std=gnu11 -DHAVE_CONFIG_H -I.    -fprofile-arcs -ftest-coverage -DMEMCACHED_DEBUG -g -O2 -pthread -pthread -Wall -pedantic -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -MT memcached_debug-slab_automove_extstore.o -MD -MP -MF .deps/memcached_debug-slab_automove_extstore.Tpo -c -o memcached_debug-slab_automove_extstore.o `test -f 'slab_automove_extstore.c' || echo './'`slab_automove_extstore.c
mv -f .deps/memcached_debug-slab_automove_extstore.Tpo .deps/memcached_debug-slab_automove_extstore.Po
gcc -std=gnu11 -fprofile-arcs -ftest-coverage -DMEMCACHED_DEBUG -g -O2 -pthread -pthread -Wall -pedantic -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls   -o memcached-debug memcached_debug-memcached.o memcached_debug-hash.o memcached_debug-jenkins_hash.o memcached_debug-murmur3_hash.o memcached_debug-slabs.o memcached_debug-items.o memcached_debug-assoc.o memcached_debug-thread.o memcached_debug-daemon.o memcached_debug-stats_prefix.o memcached_debug-util.o memcached_debug-cache.o memcached_debug-bipbuffer.o memcached_debug-base64.o memcached_debug-logger.o memcached_debug-crawler.o memcached_debug-itoa_ljust.o memcached_debug-slab_automove.o memcached_debug-slabs_mover.o memcached_debug-authfile.o memcached_debug-restart.o memcached_debug-proto_text.o memcached_debug-proto_bin.o        memcached_debug-extstore.o memcached_debug-crc32c.o memcached_debug-storage.o memcached_debug-slab_automove_extstore.o  -lgcov     -levent
gcc -std=gnu11 -DHAVE_CONFIG_H -I.     -g -O2 -pthread -pthread -Wall -pedantic -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -MT sizes.o -MD -MP -MF .deps/sizes.Tpo -c -o sizes.o sizes.c
mv -f .deps/sizes.Tpo .deps/sizes.Po
gcc -std=gnu11  -g -O2 -pthread -pthread -Wall -pedantic -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls   -o sizes sizes.o  -levent
gcc -std=gnu11 -DHAVE_CONFIG_H -I.     -g -O2 -pthread -pthread -Wall -pedantic -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -MT testapp.o -MD -MP -MF .deps/testapp.Tpo -c -o testapp.o testapp.c
mv -f .deps/testapp.Tpo .deps/testapp.Po
gcc -std=gnu11 -DHAVE_CONFIG_H -I.     -g -O2 -pthread -pthread -Wall -pedantic -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -MT util.o -MD -MP -MF .deps/util.Tpo -c -o util.o util.c
mv -f .deps/util.Tpo .deps/util.Po
gcc -std=gnu11 -DHAVE_CONFIG_H -I.     -g -O2 -pthread -pthread -Wall -pedantic -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -MT stats_prefix.o -MD -MP -MF .deps/stats_prefix.Tpo -c -o stats_prefix.o stats_prefix.c
mv -f .deps/stats_prefix.Tpo .deps/stats_prefix.Po
gcc -std=gnu11 -DHAVE_CONFIG_H -I.     -g -O2 -pthread -pthread -Wall -pedantic -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -MT jenkins_hash.o -MD -MP -MF .deps/jenkins_hash.Tpo -c -o jenkins_hash.o jenkins_hash.c
mv -f .deps/jenkins_hash.Tpo .deps/jenkins_hash.Po
gcc -std=gnu11 -DHAVE_CONFIG_H -I.     -g -O2 -pthread -pthread -Wall -pedantic -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -MT murmur3_hash.o -MD -MP -MF .deps/murmur3_hash.Tpo -c -o murmur3_hash.o murmur3_hash.c
mv -f .deps/murmur3_hash.Tpo .deps/murmur3_hash.Po
gcc -std=gnu11 -DHAVE_CONFIG_H -I.     -g -O2 -pthread -pthread -Wall -pedantic -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -MT cache.o -MD -MP -MF .deps/cache.Tpo -c -o cache.o cache.c
mv -f .deps/cache.Tpo .deps/cache.Po
gcc -std=gnu11 -DHAVE_CONFIG_H -I.     -g -O2 -pthread -pthread -Wall -pedantic -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -MT crc32c.o -MD -MP -MF .deps/crc32c.Tpo -c -o crc32c.o crc32c.c
mv -f .deps/crc32c.Tpo .deps/crc32c.Po
gcc -std=gnu11  -g -O2 -pthread -pthread -Wall -pedantic -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls   -o testapp testapp.o util.o stats_prefix.o jenkins_hash.o murmur3_hash.o cache.o crc32c.o  -levent
gcc -std=gnu11 -DHAVE_CONFIG_H -I.     -g -O2 -pthread -pthread -Wall -pedantic -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -MT timedrun.o -MD -MP -MF .deps/timedrun.Tpo -c -o timedrun.o timedrun.c
mv -f .deps/timedrun.Tpo .deps/timedrun.Po
gcc -std=gnu11  -g -O2 -pthread -pthread -Wall -pedantic -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls   -o timedrun timedrun.o  -levent
make[2]: 离开目录“/root/memcached-1.6.38”
make[1]: 离开目录“/root/memcached-1.6.38”
make  install-recursive
make[1]: 进入目录“/root/memcached-1.6.38”
Making install in doc
make[2]: 进入目录“/root/memcached-1.6.38/doc”
make  install-am
make[3]: 进入目录“/root/memcached-1.6.38/doc”
make[4]: 进入目录“/root/memcached-1.6.38/doc”
make[4]: 对“install-exec-am”无需做任何事。
 /usr/bin/mkdir -p '/usr/local/memcached/share/man/man1'
 /usr/bin/install -c -m 644 memcached.1 '/usr/local/memcached/share/man/man1'
make[4]: 离开目录“/root/memcached-1.6.38/doc”
make[3]: 离开目录“/root/memcached-1.6.38/doc”
make[2]: 离开目录“/root/memcached-1.6.38/doc”
make[2]: 进入目录“/root/memcached-1.6.38”
make[3]: 进入目录“/root/memcached-1.6.38”
 /usr/bin/mkdir -p '/usr/local/memcached/bin'
  /usr/bin/install -c memcached '/usr/local/memcached/bin'
 /usr/bin/mkdir -p '/usr/local/memcached/include/memcached'
 /usr/bin/install -c -m 644 protocol_binary.h xxhash.h '/usr/local/memcached/include/memcached'
make[3]: 离开目录“/root/memcached-1.6.38”
make[2]: 离开目录“/root/memcached-1.6.38”
make[1]: 离开目录“/root/memcached-1.6.38”
[root@db memcached-1.6.38]# /usr/local/memcached/bin/memcached -d -m 1024 -u root -p 11211 -c 10240 –P /usr/local/memcached/memcached.pid[root@db memcached-1.6.38]# /usr/local/memcached/bin/memcached -d -m 1024 -u root -p 11611 -c 10240 –P /usr/local/memcached/memcached.pid[root@db memcached-1.6.38]# /usr/local/memcached/bin/memcached -d -m 1024 -u root -p 11711 -c 10240 –P /usr/local/memcached/memcached.pid[root@db memcached-1.6.38]# ps -ef |grep mem
root     14477     1  0 11:52 ?        00:00:00 /usr/local/memcached/bin/memcached -d -m 1024 -u root -p 11211 -c 10240 –P /usr/local/memcached/memcached.pid
root     14542     1  0 11:53 ?        00:00:00 /usr/local/memcached/bin/memcached -d -m 1024 -u root -p 11611 -c 10240 –P /usr/local/memcached/memcached.pid
root     14589     1  0 11:53 ?        00:00:00 /usr/local/memcached/bin/memcached -d -m 1024 -u root -p 11711 -c 10240 –P /usr/local/memcached/memcached.pid
root     14700  1238  0 12:02 ?        00:00:00 bash -c while true; do sleep 1;head -v -n 8 /proc/meminfo; head -v -n 2 /proc/stat /proc/version /proc/uptime /proc/loadavg /proc/sys/fs/file-nr /proc/sys/kernel/hostname; tail -v -n 32 /proc/net/dev;echo '==> /proc/df <==';df -l;echo '==> /proc/who <==';who;echo '==> /proc/end <==';echo '##Moba##'; done
root     14769  1242  0 12:02 pts/0    00:00:00 grep --color=auto mem
[root@db memcached-1.6.38]#

7.启动memcached

/usr/local/memcached/bin/memcached -d -m 1024 -u root -p 11211 -c 10240 –P /usr/local/memcached/memcached.pid
/usr/local/memcached/bin/memcached -d -m 1024 -u root -p 11611 -c 10240 –P /usr/local/memcached/memcached.pid
/usr/local/memcached/bin/memcached -d -m 1024 -u root -p 11711 -c 10240 –P /usr/local/memcached/memcached.pid