第一部分 下载源码进行安装
wget https://github.com/downloads/libevent/libevent/libevent-2.0.19-stable.tar.gz tar xvf libevent-2.0.19-stable.tar.gz cd libevent-2.0.19-stable ./configure make make install wget http://memcached.googlecode.com/files/memcached-1.4.13.tar.gz tar xvf memcached-1.4.13.tar.gz cd memcached-1.4.13 ./configure make make install echo "/usr/local/lib" >> /etc/ld.so.conf ldconfig /usr/local/bin/memcached -m 32m -p 11211 -d -u root -P /var/run/memcached.pid -c 1024 wget https://launchpad.net/libmemcached/1.0/0.34/+download/libmemcached-0.34.tar.gz tar xvf libmemcached-0.34.tar.gz cd libmemcached-0.34 ./configure --with-memcached=/usr/local/bin/memcached i#./configure --prefix=/usr/local/libmemcached --with-memcached=/usr/local/bin/memcached make make install #wget https://launchpad.net/libmemcached/1.0/1.0.8/+download/libmemcached-1.0.8.tar.gz #wget https://launchpad.net/memcached-udfs/trunk/version-1.0/+download/memcached_functions_mysql-1.0.tar.gz wget https://launchpad.net/memcached-udfs/trunk/1.1/+download/memcached_functions_mysql-1.1.tar.gz tar xvf memcached_functions_mysql-1.1.tar.gz cd memcached_functions_mysql-1.1 ./configure --with-mysql=/usr/local/mysql/bin/mysql_config --libdir=/usr/local/mysql/lib/mysql --with-libmemcached=/usr/local make make install cd utils/ #注意此处的my.cnf 必须为osocket=/var/lib/mysql/mysql.sock,否则,运行脚本会报错 #find /usr/ -name libmemcached_functions_mysql.so ln -s /usr/local/mysql/lib/mysql/libmemcached_functions_mysql.so /usr/local/mysql/lib/plugin/libmemcached_functions_mysql.so ./install.pl -s -u=root -p=itnihao
以上是小编为您精心准备的的内容,在的博客、问答、公众号、人物、课程等栏目也有的相关内容,欢迎继续使用右上角搜索按钮进行搜索mysql
, memcached
, tar
, memcached和mysql
, make
, usr
, local
, UDFs
Functions
memcached 安装使用、memcached 性能测试、memcached 测试、php memcached 测试、memcached 测试连接,以便于您获取更多的相关知识。
时间: 2024-10-06 11:25:42