阮佳被黄光剑抄袭的画:Install Memcache onto cPanel running CentOS | Mr PHP
来源:百度文库 编辑:九乡新闻网 时间:2024/04/29 07:28:06
Every time I install Memcache on cPanel I get a little bit stuck, so Iwrote this quick guide in the hopes of helping myself next time and alsohelping other people who want the advantages of super fast caching.
Make the Sources Folder
First of all lets make a folder to put all our sources in1
mkdir
~/memcache
Compile and Install LibEvent
Memcache requires LibEvent. Go to their site and get the latest version.1
cd
~/memcache
2
wget http://www.monkey.org/~provos/libevent-1.4.9-stable.
tar
.gz
3
tar
xvfz libevent-1.4.9-stable.
tar
.gz
4
cd
libevent-1.4.9-stable
5
./configure;
make
;
make
install
Compile and Install Memcache
Now you can install Memcache. Again you should check their site for the latest version.1
cd
~/memcache
2
wget http://www.danga.com/memcached/dist/memcached-1.2.6.
tar
.gz
3
tar
xvfz memcached-1.2.6.
tar
.gz
4
cd
memcached-1.2.6
5
./configure --with-lib-event=/usr/
local
/;
make
;
make
install
Starting Memcache
Try starting memcache.If you get the following error then you may beed to register libevent:1
memcached
Register LibEvent1
error while loading shared libraries: libevent-1.4.so.2: cannot open shared object file: No such file or directory
1
vi
/etc/ld.so.conf.d/libevent-i386.conf
2
--[
paste
]--
3
/usr/
local
/lib/
4
--[/
paste
]--
5
ldconfig
Installing PHP Memcache
Install the PHP Memcache extension. Check their site for the latest version.If you would like memcache to run as a service you may follow this post by Danny Bembibre:http://www.vbseo.com/blogs/danny-bembibre/daemon-scripts-memcached-44/01
cd
~/memcache
02
wget http://pecl.php.net/get/memcache-3.0.3.tgz
03
tar
xvfz memcache-3.0.3.tgz
04
cd
memcache-3.0.3
05
phpize
06
./configure
07
make
08
make
install
09
vi
/usr/
local
/lib/php.ini
10
--[
paste
]--
11
extension=memcache.so
12
--[/
paste
]--
13
service httpd restart
Install Memcache onto cPanel running CentOS | Mr PHP
Centos 6 install ntfs-3g
memcache
How to install Nginx, PHP, PHP-FPM and MySQL under Windows with Cygwin
CentOS 6.0 系统 LAMP(Apache+MySQL+PHP) 安装步骤
php
install omniORBpy
Memcache and Mongodb
Mr. Right
centos 相关
Install mysql without installer
install Tiny OS
Running Joke (uk bonus)
Walker running the show
running on sunshine
Clothing categories - Running shoes
Clothing care - Running shoes
cPanel的中国区分销商
Install?SSH?on?AIX?5.3
How to Install Microsoft Backup
Mr.Lee*PS
Mr.Lee*摆脱glass
Mr.Lee*看透
Mr.Lee*PS精华