Memcached 安装

CentOS 7 安装 Memcached:

[root@localhost ~]# yum install -y memcached                                  //安装 Memcached
[root@localhost ~]# systemctl start memcached                                 //启动 Memcached,默认分配 64M 物理内存
[root@localhost ~]# /usr/bin/memcached -u memcached -p 11211 -m 64 -c 1024    //也可以手动启动 Memcached 并分配内存
-p    //指定监听的端口
-d    //以daemon方式运行
-u    //指定运行Memcached的用户
-m    //指定分配给Memcached的物理内存
-c    //指定最大并发连接数

     

原文地址:https://www.cnblogs.com/pzk7788/p/10459733.html