红联Linux门户
Linux帮助
当前位置: 红联Linux门户 > Ubuntu

ubuntu 下安装memcache

发布时间:2008-07-16 00:22:54来源:红联作者:aoodo
安装服务器
sudo apt-get install memcached
$ memcached -d -m 50 -p 11211 -u root
参数说明 -m 指定使用多少兆的缓存空间;-p 指定要监听的端口; -u 指定以哪个用户来运行

安装php 模块
sudo apt-get install php5-memcache

编辑配置文件
$ sudo vim /etc/php5/conf.d/memcache.ini
; uncomment the next line to enable the module
extension=memcache.so

[memcache]
memcache.dbpath="/var/lib/memcache"
memcache.maxreclevel=0
memcache.maxfiles=0
memcache.archivememlim=0
memcache.maxfilesize=0
memcache.maxratio=0
文章评论

共有 0 条评论