CentOS7.4安装memcached
yum install memcached -y
启动
命令行启动
/usr/bin/memcached -d -m 64 -I 20m -u root -l 192.168.119.128 -p 11211 -c 1024 -P /var/run/memcached.pid
警告
WARNING: Setting item max size above 1MB is not recommended!
Raising this limit increases the minimum memory requirements
and will decrease your memory efficiency.
memcached的简单限制就是键(key)和item的限制。最大键长为250个字符。可以接受的储存数据不能超过1MB,因为这是典型slab 的最大值。据说修改源码可以增大限制。