1、下载libevent-1.4.14b-stable.tar.gz和memcached-1.4.15.tar.gz这两个文件,上传到服务器,并给它一个可用的下载地址,
如http://地址/memcache/libevent-1.4.14b-stable.tar.gz
http://地址/memcache/memcached-1.4.15.tar.gz
2、
#cd /tmp
#wget -c http://down.wdlinux.cn/in/memcached_ins.sh
3、这时memcached_ins.sh就下载在/tmp目录下,用vi编辑memcached_ins.sh,将
###
cd /tmp
wget -c https://github.com/downloads/libevent/libevent/libevent-1.4.14b-stable.tar.gz
wget -c http://memcached.googlecode.com/files/memcached-1.4.15.tar.gz
wget -c http://pecl.php.net/get/memcache-2.2.7.tgz
改成
###
cd /tmp
wget -c http://地址/libevent-1.4.14b-stable.tar.gz
wget -c http://地址/memcached-1.4.15.tar.gz
wget -c http://pecl.php.net/get/memcache-2.2.7.tgz
4、执行安装命令
#sh memcached_ins.sh
5、安装成功
Build complete.
Don't forget to run 'make test'.
Installing shared extensions: /www/wdlinux/apache_php-5.2.17/lib/php/extensions/no-debug-non-zts-20060613/
Stopping httpd: [ OK ]
Starting httpd: [ OK ]
memcache install is OK
vi命令如下:
x删除光标后的字符
按esc
:wq保存并推出vi