با عرض پوزش بخش که فرمودید را بنده مطالعه نکردم؛ این لینک میتواند به شما کمک کند: http://www.google.com/webhp?output=s...DA%AF+memcache
با عرض پوزش بخش که فرمودید را بنده مطالعه نکردم؛ این لینک میتواند به شما کمک کند: http://www.google.com/webhp?output=s...DA%AF+memcache
اُکسين سرور ارائه دهنده خدمات ميزباني وب|شماره ثبت 4587|یـ11ـازده سال سابقه درخشان|شماره تماس 42254600-061
فروش سرور اختصاصی از ديتاسنتر OVH همراه با کنترل پنل مدیریت و بدون هزینه ستاپ!
شما برای کانفیگی به گستردگی Memcached منابع فارسی را پیشنهاد میدهید که همه ترجمه شده منابع خارجی و کپی هست؟!
سی پنل :
برای تمامی موارد فوق می توان با استفاده از دستورات زیر استفاده کنید :
کد:/scripts/phpextensionmgr list /scripts/phpextensionmgr install Xcache
دایرکت ادمین :
برای apc از Installing Alternative PHP Cache (APC) کمک بگیرید.
برای memcached :
برای xcache میتوانید از لینک زیر استفاده کنید :کد:1. Steps to Install memcached You have to activate the RPMForge custom repository to install latest memcached rpm. rpm -Uhv http://apt.sw.be/redhat/el5/en/i386/rpmforge/RPMS/rpmforge-release-0.3.6-1.el5.rf.i386.rpm or rpm -Uhv http://apt.sw.be/redhat/el5/en/x86_64/rpmforge/RPMS/rpmforge-release-0.3.6-1.el5.rf.x86_64.rpm You can now use yum to install memcached yum -y install memcached Once the installation is completed, you will be able to locate the config file at the location /etc/sysconfig/memcached . Edit the file according to your requirement. It will be something like below. PORT="11211" #define on which port to urn USER="nobody" #same as apache user MAXCONN="2048" #maximum number of connections allowed CACHESIZE="32" #memory used for caching OPTIONS="" #use for any custom options Always specify a user for memcached when you start it from the shell. You can use nobody user or a user named memcached. Now you can test it with the following command. memcached -u memcached -d -m 1048 -l 127.0.0.1 -p 11211 or memcached -d -u nobody -m 1048 -p 11211 127.0.0.1 Check if memcached is listening on port 11211 netstat -plan | grep ":11211" Done. Now you can go to step 2 to perform the installation of php extension. 2. Steps to Install PHP Memcache Download and install the latest version of PHP extension from PECL. cd /usr/share wget http://pecl.php.net/get/memcache-2.2.7.tgz tar -xvf memcache-2.2.7.tgz cd memcache-2.2.7.tgz phpize ./configure make make install After successful installation check if memcache.so is added to php.ini. If its not there add it manually to php.ini, restart apache and create a phpinfo page and check for memcache. To locate php.ini php -i | grep php.ini vi /usr/local/lib/php.ini Add the following extension="memcache.so" Restart httpd /etc/rc.d/init.d/httpd restart Check if its loaded in command line by using the following. php -i | grep memcache It will show something like below. memcache memcache support => enabled
How to install XCache 3.0.1 on CentOS, DirectAdmin | 7x24NET Blogging
برای eaccelerator هم منبع زیر مناسب می باشد :
» How to install eAccelerator in directadmin serverSyslint Technologies
- - - Updated - - -
برای آشنایی با توابع eAccelerator از آموزش http://www.openlogic.com/wazi/bid/221168/Improve-PHP-performance-with-PHP-eAccelerator استفاده کنید که باید مقادیر رو در php.ini سیو کنید.
برای توابع و مقادیر Xcache میتوانید از آموزش http://www.tecmint.com/install-xcache-to-accelerate-and-optimize-php-performance/ استفاده کنید. ( البته بعد از build توسط compile php در کنسول لایت اسپید نیز مقادیر خیلی جالب و خوبی داده می شود که برای speed بیشتر و بهینه بودن میتوانید از آنها نیز استفاده کنید(در حال حاضر موجود ندارم)
برای Memcached هم این مطلب رو بخونید http://www.pontikis.net/blog/install-memcached-php-debian
پا نوشت :
برای همه کش ها میتوان کانفیگ مناسبی نوشت.
شما میتوانید برای بهینه بودن در آپاچی بعلاوه به cache از mpm ها یا event در apache 2.4 استفاده کنید که بسیار stable می باشد.
پیروز باشید.
در حال حاضر 1 کاربر در حال مشاهده این موضوع است. (0 کاربران و 1 مهمان ها)