安装memcached依赖包
【Centos7部署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]# lsmemcached-1.4.13.tar.gz[root@localhost tools]# tar xf memcached-1.4.13.tar.gz [root@localhost tools]# lsmemcached-1.4.13memcached-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:33211COMMANDPID USERFDTYPE DEVICE SIZE/OFF NODE NAMEmemcached 6373 root26uIPv4397640t0TCP *:33211 (LISTEN)memcached 6373 root27uIPv6397650t0TCP *:33211 (LISTEN)memcached 6373 root28uIPv4397680t0UDP *:33211 memcached 6373 root29uIPv6397690t0UDP *:33211
总结
这样memcached就安装成功了!
推荐阅读
- 几分钟轻松解决Jenkins自动化部署
- CentOS7.3 Linux系统搭建VPN服务器之PPTP
- 如何优雅的部署一个 Serverless Next.js 应用
- SharePoint 2016 服务器部署SharePoint 证书申请&访问方式加密
- 无服务器调研,部署REST API是最普遍用例
- 听说你还不会在服务器上部署项目?看这一篇文章就够了
- RHEL7部署TOMCAT8
- 含报错解决 Centos7一键脚本安装jumpServer 堡垒机
- 图文教程 部署hyper-V实现桌面虚拟化的步骤
- Ubuntu18.04部署django3.x