آموزش نصب Memcached بر روی Cent Os
آموزش نصب Memcached بر روی Cent Os
Make the Sources Folder
First of all lets make a folder to put all our sources in
1
mkdir ~/memcache
Compile and Install LibEvent
Compile and Install Memcache
Starting Memcache
Try starting memcache.
1
memcached
If you get the following error then you may beed to register libevent:
1
error while loading shared libraries: libevent-1.4.so.2: cannot open shared object file: No such file or directory
Register LibEvent
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.
01
cd ~/memcache02
wget http://pecl.php.net/get/memcache-3.0.3.tgz03
tar xvfz memcache-3.0.3.tgz
04
cd memcache-3.0.305
phpize06
./configure07
make
08
make install
09
vi /usr/local/lib/php.ini
10
--[paste]--
11
extension=memcache.so12
--[/paste]--
13
service httpd restart تاریخ ارسال: 2012-01-21
تعداد بازدید: 4457
نویسنده: admin