نمایش نتایج: از شماره 1 تا 2 , از مجموع 2

موضوع: آموزش کامل نصب MemCache

  1. #1
    عضو انجمن P-CO آواتار ها
    تاریخ عضویت
    Mar 2009
    محل سکونت
    Tehran, Iran
    نوشته ها
    277
    تشکر تشکر کرده 
    460
    تشکر تشکر شده 
    1,642
    تشکر شده در
    1,202 پست

    پیش فرض آموزش کامل نصب MemCache

    با سلام، این هم از آموزش. امیدوارم موثر واقع بشه...

    کد:
    Make sure before you start tying to install memcache that you have gcc (# yum install gcc) and libevent-devel (# yum install libevent-devel) installed.
    
    [root@server1 ~]# wget http://www.danga.com/memcached/dist/memcached-1.2.6.tar.gz
    [root@server1 ~]# tar -zxvf memcached-1.2.6.tar.gz
    [root@server1 ~]# cd memcached-1.2.6
    [root@server1 memcached-1.2.6]# ./configure
    [root@server1 memcached-1.2.6]# make
    [root@server1 memcached-1.2.6]# make install
    
    Now if you are lazy like me and don’t want to have to remember what the memcached flags are every time you start it I would recommend using an init.d script. I recommend using the one located at http://www.dev411.com/wiki/Memcached_startup_files_for_Red_Hat_(RHEL). To install the init.d script on your server you need to place the start-memcached perl script in /usr/local/bin/start-memcached. Make sure you have given this file chmod 755 and is chown root:root. Then you must place the memcached-init into /etc/init.d/memcached, make sure this script has the same permissions as the previous file. Finally create the configuration file /etc/memcached.conf, you can place any options that you want ran by the memcached binary in this file. I use the following in my file.
    
    # /etc/memcached.conf
    
    # user to run memcached as
    -u apache
    
    # we want to run memcached as a daemon
    -d
    
    # amount of RAM we want to dedicate to memcached in MB
    -m 512
    
    # interface to listen to for memcached connections on
    -l 127.0.0.1
    
    # port to listen for memcached connections on
    -p 11211
    
    Starting Memcached
    
    Now you should be able to start and stop memcached quickly by using the following commands.
    
    [root@server1 ~]# /sbin/service memcached start
    [root@server1 ~]# /sbin/service memcached stop
    
    If you did not install the init.d script then you can start memcached with the following command.
    
    [root@server1 ~]# memcached -d -u apache -m 512 -l 127.0.0.1 -p 11211
    
    Installing the Memcache PHP extension
    
    Installing the memcache php module from source is fairly strait forward, it is just like installing any other php module. Please note that you must have zlib-devel and php-devel packages installed.
    
    
    [root@server1 ~]# wget http://pecl.php.net/get/memcache
    [root@server1 ~]# tar -zxvf memcache-3.0.2.tgz
    [root@server1 ~]# cd memcache-3.0.2
    [root@server1 memcache-3.0.2]# phpize
    [root@server1 memcache-3.0.2]# ./configure
    [root@server1 memcache-3.0.2]# make
    [root@server1 memcache-3.0.2]# make install
    
    
    Now we need to tell php to include our memcache extension when it starts up. We do this by putting the following configuration data in /etc/php.d/memcache.ini
    
    ; /etc/php.d/memcache.ini
    
    ; include the memcache php extension
    extension=memcache.so
    
    You will be able to verify that the memcache php extension has been installed by typing # php -m and looking for memcache in the php extension list.

    Ded24.com - Parnak LTD - Since 2009▌
    Email : sales[@]ded24.com▌
    Tell : 021 77246118 | 24x7 Support And Sales : 0912 197 8921▌
    ... ,ColoCrossing, Redstation, Gigepipe, HETZNER▌

  2. تعداد تشکر ها ازP-CO به دلیل پست مفید


  3. # ADS




     

  4. #2
    عضو انجمن sodahost آواتار ها
    تاریخ عضویت
    Aug 2008
    محل سکونت
    قم
    نوشته ها
    511
    تشکر تشکر کرده 
    63
    تشکر تشکر شده 
    340
    تشکر شده در
    264 پست

    پیش فرض پاسخ : آموزش کامل نصب MemCache

    مزایای این کار رو می تونید کامل بگید ؟

  5. تعداد تشکر ها ازsodahost به دلیل پست مفید


اطلاعات موضوع

کاربرانی که در حال مشاهده این موضوع هستند

در حال حاضر 1 کاربر در حال مشاهده این موضوع است. (0 کاربران و 1 مهمان ها)

موضوعات مشابه

  1. کانفیگ nginx + memcache
    توسط reza0071 در انجمن سوالات و مشکلات
    پاسخ ها: 5
    آخرين نوشته: October 23rd, 2014, 03:38
  2. راهنمایی برای نصب سیستم کش memcache در دایرکت ادمین
    توسط succes در انجمن سوالات و مشکلات
    پاسخ ها: 4
    آخرين نوشته: July 24th, 2014, 18:45
  3. نصب memcache server
    توسط Sina810 در انجمن سوالات و مشکلات
    پاسخ ها: 4
    آخرين نوشته: March 8th, 2014, 02:40
  4. نصب memcache
    توسط cyrax در انجمن ردهت,فدورا,سنت-او-اس Redhat,Fedora,CentOS
    پاسخ ها: 5
    آخرين نوشته: May 29th, 2013, 21:55
  5. مشکل memcache
    توسط sajjadd در انجمن ردهت,فدورا,سنت-او-اس Redhat,Fedora,CentOS
    پاسخ ها: 3
    آخرين نوشته: December 6th, 2012, 14:33

مجوز های ارسال و ویرایش

  • شما نمیتوانید موضوع جدیدی ارسال کنید
  • شما امکان ارسال پاسخ را ندارید
  • شما نمیتوانید فایل پیوست کنید.
  • شما نمیتوانید پست های خود را ویرایش کنید
  •