良许Linux教程网 干货合集 Centos7中安装memcached集中式缓存系统

Centos7中安装memcached集中式缓存系统

Memcached是一个自由开源的,高性能,分布式内存对象缓存系统。

Memcached是以LiveJournal旗下Danga Interactive公司的Brad Fitzpatric为首开发的一款软件。现在已成为mixi、hatena、Facebook、Vox、LiveJournal等众多服务中提高Web应用扩展性的重要因素。

环境:

CentOS 7.4 ip:172.16.1.112  Centos7中安装memcached集中式缓存系统

安装memcached依赖包

[root@localhost tools]# yum install -y libevent libevent-devel nc -y

将memcached包上传至服务器

[root@localhost tools]# ls
memcached-1.4.13.tar.gz

安装memcached

[root@localhost tools]# ls
memcached-1.4.13.tar.gz
[root@localhost tools]# tar xf memcached-1.4.13.tar.gz
[root@localhost tools]# ls
memcached-1.4.13  memcached-1.4.13.tar.gz
[root@localhost tools]# cd memcached-1.4.13/
[root@localhost memcached-1.4.13]# ./configure
[root@localhost memcached-1.4.13]# make
[root@localhost memcached-1.4.13]# make install

启动memcached

[root@localhost ~]# memcached -m 16 -p 33211 -d -u root -c 8192

查看结果

[root@localhost ~]# lsof -i:33211
COMMAND    PID USER   FD   TYPE DEVICE SIZE/OFF NODE NAME
memcached 6373 root   26u  IPv4  39764      0t0  TCP *:33211 (LISTEN)
memcached 6373 root   27u  IPv6  39765      0t0  TCP *:33211 (LISTEN)
memcached 6373 root   28u  IPv4  39768      0t0  UDP *:33211
memcached 6373 root   29u  IPv6  39769      0t0  UDP *:33211

以上就是良许教程网为各位朋友分享的Linu系统相关内容。想要了解更多Linux相关知识记得关注公众号“良许Linux”,或扫描下方二维码进行关注,更多干货等着你 !

img
本文由 良许Linux教程网 发布,可自由转载、引用,但需署名作者且注明文章出处。如转载至微信公众号,请在文末添加作者公众号二维码。
良许

作者: 良许

良许,世界500强企业Linux开发工程师,公众号【良许Linux】的作者,全网拥有超30W粉丝。个人标签:创业者,CSDN学院讲师,副业达人,流量玩家,摄影爱好者。
上一篇
下一篇

发表评论

联系我们

联系我们

公众号:良许Linux

在线咨询: QQ交谈

邮箱: yychuyu@163.com

关注微信
微信扫一扫关注我们

微信扫一扫关注我们

关注微博
返回顶部