Webmaster Forumu

Geri git   Webmaster Forumu > Webmaster Kaynak Eğitim Tanıtım Hizmet > Programlama Dilleri > PHP

PHP PHP & PHP Hızlandırıcılar

Anketimiz: memcached makalesi size fayda sağladı mı
Evet 22 88,00%
Hayır 3 12,00%
Katılımcı sayısı: 25. Sizin bu Ankette oy kullanma yetkiniz bulunmuyor

Cevapla
 
LinkBack (12) Seçenekler Stil
  #11 (permalink)   iTrader 
Alt 2007-12-11, 23:04
iyinet - ait Kullanıcı Resmi (Avatar)
Paylaşım için teşekkürler
 
Üyelik tarihi: Sep 2002
Mesajlar: 6.223
Blog Entries: 2
Teşekkür: 2
Thanked 31 Times in 10 Posts
Tecrübe Puanı: 3
iTrader: %100/6
iyinet is just really niceiyinet is just really niceiyinet is just really niceiyinet is just really nice
Standart Ve son olarak

Kurulum burada tamamlanmıştır, eğer sisteminiz ve siteleriniz sorunsuz olarak çalışıyorsa tebrikler.

Son olarak memcahced i makina her kapanıp açıldığında manuel olarak elle çalıştırmamak için otomatiğe bağlayalım.

1. Yine favori editörünüz ile /etc/rc.local dosyasını açalım
# vi /etc/rc.local


2. Dosyanın tercihen komutların başladığı kısımdaki ilk bölüme bu şekilde memcached i çalıştıran komutu ekleyip dosyayı kaydedip çıkalım.
#!/bin/sh
#
# This script will be executed *after* all the other init scripts.
# You can put your own initialization stuff in here if you don't
# want to do the full Sys V style init stuff.

/usr/local/bin/memcached -u nobody -d -m 64 -l 127.0.0.3 -p 11211


Artık sisteminiz her yeniden açıldığında memcached de otomatik olarak başlayacaktır.

Kurulum tamamlanmıştır.

----------------------------------

memcached istatistiklerine ulaşmak için ssh de:

# echo -ne "stats\n\r" | nc -i1 127.0.0.3 11211


----------------------------------

Memcached i kendi PHP kodunuzu hızlandırmak için kullanmak isterseniz bu makaleyi okumanızı tavsiye ederim:
http://forum.iyinet.com/php/80911-me...landirmak.html

Soru ve sorunlarınız için bu başlık altına yazınız.
__________________
Forum Reklam Site Reklam

Konu iyinet tarafından (2008-01-18 Saat 22:55 ) değiştirilmiştir..
Alıntı ile Cevapla

  #12 (permalink)   iTrader 
Alt 2007-12-11, 23:05
iyinet - ait Kullanıcı Resmi (Avatar)
Paylaşım için teşekkürler
 
Üyelik tarihi: Sep 2002
Mesajlar: 6.223
Blog Entries: 2
Teşekkür: 2
Thanked 31 Times in 10 Posts
Tecrübe Puanı: 3
iTrader: %100/6
iyinet is just really niceiyinet is just really niceiyinet is just really niceiyinet is just really nice
Standart

Alıntı:
Mywedding´isimli üyeden Alıntı Mesajı göster
bunu fedora 5 te uygulayabiliriz dimi , şef
Sanırım uygulayabilirsiniz, ben Redhat de kurdum.
__________________
Forum Reklam Site Reklam
Alıntı ile Cevapla

  #13 (permalink)   iTrader 
Alt 2007-12-11, 23:29
mami
 
Üyelik tarihi: Sep 2006
Nerden: dreamcity
Mesajlar: 4.309
Blog Entries: 3
Teşekkür: 0
Thanked 0 Times in 0 Posts
Tecrübe Puanı: 0
iTrader: %100/18
Mywedding is just really niceMywedding is just really niceMywedding is just really niceMywedding is just really nice
Standart

burda takıldım iyinet, ,



Alıntı:
iyinet´isimli üyeden Alıntı Mesajı göster
1. Dosyaları indirdikten sonra önce libevent i açıp derleyelim
# tar xvzf libevent-1.3e.tar.gz
# cd /root/mc/libevent-1.3e
# ./configure
# make
# make install


3. memcached derlenirken her nedense libevent in kurulduğu dizini sevmiyor, bu nedenle aşağıdaki şekilde link etmemiz gerekiyor.
# ln -s /usr/local/lib/libevent-1.3e.so.1 /usr/lib/libevent-1.3e.so.1


4. Şimdi memcached i açıp derleyelim
# cd /root/mc/
# tar xvzf memcached-1.2.4.tar.gz
# cd /root/mc/memcached-1.2.4
# ./configure --with-libevent=/usr/local/lib/libevent-1.3e.so.1
# make
# make install


5. Sıra memcache i açıp derlemekte, adları çok benziyor dikkat edin bu memcache-3.0.0 bir önceki memcached-1.2.4
# cd /root/mc/
# tar xvzf memcache-3.0.0.tgz
# cd /root/mc/memcache-3.0.0
# phpize
# ./configure
# make
# make install


memcache-3.0.0 ı derlemenizin ardından ekrana /usr/local/lib/php/extensions/no-debug-non-zts-20060613/ gibi bir dizin çıkacak bunu biryere kaydedin kullanacağız.
Alıntı ile Cevapla

  #14 (permalink)   iTrader 
Alt 2007-12-11, 23:31
iyinet - ait Kullanıcı Resmi (Avatar)
Paylaşım için teşekkürler
 
Üyelik tarihi: Sep 2002
Mesajlar: 6.223
Blog Entries: 2
Teşekkür: 2
Thanked 31 Times in 10 Posts
Tecrübe Puanı: 3
iTrader: %100/6
iyinet is just really niceiyinet is just really niceiyinet is just really niceiyinet is just really nice
Standart

Alıntı:
Mywedding´isimli üyeden Alıntı Mesajı göster
burda takıldım iyinet, ,
# which phpize
yap
Bende /usr/local/bin/phpize çıkıyor
phpize yerine /usr/local/bin/phpize kullan
__________________
Forum Reklam Site Reklam

Konu iyinet tarafından (2007-12-11 Saat 23:35 ) değiştirilmiştir..
Alıntı ile Cevapla

  #15 (permalink)   iTrader 
Alt 2007-12-11, 23:33
Member
 
Üyelik tarihi: Sep 2006
Mesajlar: 346
Blog Entries: 1
Teşekkür: 2
Thanked 0 Times in 0 Posts
Tecrübe Puanı: 2
iTrader: %100/3
ENVER is an unknown quantity at this point
Standart

Alıntı:
// ****** DATASTORE CACHE CONFIGURATION *****
// Here you can configure different methods for caching datastore items.
// vB_Datastore_Filecache - for using a cache file
// $config['Datastore']['class'] = 'vB_Datastore_Filecache';
// vB_Datastore_Memcached - for using a Memcache server
// It is also necessary to specify the hostname or IP address and the port the server is listening on
/*
$config['Datastore']['class'] = 'vB_Datastore_Memcached';
$i = 0;
// First Server
$i++;
$config['Misc']['memcacheserver'][$i] = '127.0.0.1';
$config['Misc']['memcacheport'][$i] = 11211;
$config['Misc']['memcachepersistent'][$i] = true;
$config['Misc']['memcacheweight'][$i] = 1;
$config['Misc']['memcachetimeout'][$i] = 1;
$config['Misc']['memcacheretry_interval'][$i] = 15;
*/
bu kısım komple mi değişmeli tam anlamadım
Alıntı ile Cevapla

  #16 (permalink)   iTrader 
Alt 2007-12-11, 23:35
mami
 
Üyelik tarihi: Sep 2006
Nerden: dreamcity
Mesajlar: 4.309
Blog Entries: 3
Teşekkür: 0
Thanked 0 Times in 0 Posts
Tecrübe Puanı: 0
iTrader: %100/18
Mywedding is just really niceMywedding is just really niceMywedding is just really niceMywedding is just really nice
Standart

locate den , bu çıktı,


/usr/local/psa/admin/man/man1/phpize.1
Alıntı ile Cevapla

  #17 (permalink)   iTrader 
Alt 2007-12-11, 23:36
iyinet - ait Kullanıcı Resmi (Avatar)
Paylaşım için teşekkürler
 
Üyelik tarihi: Sep 2002
Mesajlar: 6.223
Blog Entries: 2
Teşekkür: 2
Thanked 31 Times in 10 Posts
Tecrübe Puanı: 3
iTrader: %100/6
iyinet is just really niceiyinet is just really niceiyinet is just really niceiyinet is just really nice
Standart

Alıntı:
ENVER´isimli üyeden Alıntı Mesajı göster
bu kısım komple mi değişmeli tam anlamadım
Bu kısım olduğu gibi kalsın, zaten kapalı (comment-out) durumda.
Bunun altına verdiğim satırları eklemeniz yeterli.
__________________
Forum Reklam Site Reklam
Alıntı ile Cevapla

  #18 (permalink)   iTrader 
Alt 2007-12-11, 23:37
iyinet - ait Kullanıcı Resmi (Avatar)
Paylaşım için teşekkürler
 
Üyelik tarihi: Sep 2002
Mesajlar: 6.223
Blog Entries: 2
Teşekkür: 2
Thanked 31 Times in 10 Posts
Tecrübe Puanı: 3
iTrader: %100/6
iyinet is just really niceiyinet is just really niceiyinet is just really niceiyinet is just really nice
Standart

Alıntı:
Mywedding´isimli üyeden Alıntı Mesajı göster
locate den , bu çıktı,


/usr/local/psa/admin/man/man1/phpize.1
# which phpize
yap
__________________
Forum Reklam Site Reklam
Alıntı ile Cevapla

  #19 (permalink)   iTrader 
Alt 2007-12-11, 23:40
Member
 
Üyelik tarihi: Sep 2006
Mesajlar: 346
Blog Entries: 1
Teşekkür: 2
Thanked 0 Times in 0 Posts
Tecrübe Puanı: 2
iTrader: %100/3
ENVER is an unknown quantity at this point
Standart

Fatal error: Memcache is not installed in /includes/class_datastore.php on line 271 şeklinde hata aldım

confige ekleyince

Alıntı:
$config['Datastore']['class'] = 'vB_Datastore_Memcached';
$i = 0;
// First Server
$i++;
$config['Misc']['memcacheserver'][$i] = '127.0.0.1';
$config['Misc']['memcacheport'][$i] = 11211;
$config['Misc']['memcachepersistent'][$i] = true;
$config['Misc']['memcacheweight'][$i] = 1;
$config['Misc']['memcachetimeout'][$i] = 1;
$config['Misc']['memcacheretry_interval'][$i] = 15;
*/
$config['Datastore']['class'] = 'vB_Datastore_Memcached';
$config['Misc']['memcacheserver'] = '127.0.0.3';
$config['Misc']['memcacheport'] = '11211';

// ****** The following options are only needed in special cases ******

// ****** MySQLI OPTIONS *****
// When using MySQL 4.1+, MySQLi should be used to connect to the database.
// If you need to set the default connection charset because your database
// is using a charset other than latin1, you can set the charset here.
// If you don't set the charset to be the same as your database, you
// may receive collation errors. Ignore this setting unless you
// are sure you need to use it.
// $config['Mysqli']['charset'] = 'utf8';
şeklinde config.php
Alıntı ile Cevapla

  #20 (permalink)   iTrader 
Alt 2007-12-11, 23:41
mami
 
Üyelik tarihi: Sep 2006
Nerden: dreamcity
Mesajlar: 4.309
Blog Entries: 3
Teşekkür: 0
Thanked 0 Times in 0 Posts
Tecrübe Puanı: 0
iTrader: %100/18
Mywedding is just really niceMywedding is just really niceMywedding is just really niceMywedding is just really nice
Standart

Alıntı:
iyinet´isimli üyeden Alıntı Mesajı göster
# which phpize
yap
yaptım sanki yok diyor, offf şu phpize yaktı beni

Alıntı ile Cevapla

Cevapla

LinkBacks (?)
LinkBack to this Thread: http://forum.iyinet.com/php/78093-memcached-kurulumu-php-vbulletin-vbseo-ve-mysql-icin.html
Konuyu Başlatan For Type Tarih
OnurHosting - Destek This thread Refback 2008-02-27 12:47
Dedicated server optimizasonuna ihtiyac olanlar - vBulletin SEO Forums This thread Refback 2008-02-01 23:58
Memcached ile kendi yazdığınız PHP kodunu hızlandırmak : gncturkler.com This thread Pingback 2008-01-18 22:59
memcached kurulumu - PHP, VBulletin VBSEO ve MySQL iin - Google - Webmaster Forum / Google Webmaster Fan This thread Refback 2008-01-05 15:51
Serverda neler yapmam gerek ? - Webmaster Forum & Webmaster Okulu This thread Pingback 2007-12-31 21:26
memcached kurulumu vbseo iin - vBulletin SEO Forums This thread Pingback 2007-12-23 23:09
Güncel Blog Blog Arşivi memcached kullan?n This thread Pingback 2007-12-20 22:56
Xcache Kurulumu - Php Hzlandrc - vBulletin SEO Forums Post #0 Refback 2007-12-12 22:26
» memcached kurulumu - PHP, VBulletin VBSEO ve MySQL için - Webmaster Dünyası! | Webmaster Forumları | Google Adsense ve Adwords | Seo | HTML | PHP | ASP This thread Pingback 2007-12-12 00:15
» PHP, VBulletin ve MySQL için memcached kurulumu - Webmaster Dünyası! | Webmaster Forumları | Google Adsense ve Adwords | Seo | HTML | PHP | ASP This thread Pingback 2007-12-11 23:16
» PHP ve VBulletin ve MySQL için memcached kurulumu - Webmaster Dünyası! | Webmaster Forumları | Google Adsense ve Adwords | Seo | HTML | PHP | ASP This thread Pingback 2007-12-11 21:43
Load sorunu yaşayanlar için genel tartışma konusu - Page 2 - vBulletin SEO Forums This thread Pingback 2007-12-11 20:59

Seçenekler
Stil

Yetkileriniz
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is Açık
Smileler Açık
[IMG] Kodları Açık
HTML-KodlarıKapalı
Trackbacks are Açık
Pingbacks are Açık
Refbacks are Açık

Benzer Konular
Konu Konuyu Başlatan Forum Cevaplar Son Mesaj
vBulletin Radyo Kurulumu / Yardim d3aTh Vbulletin VbSEO 6 2007-10-30 15:44
Vbseo Vbulletin ve Site Giriş Sorunu qdin Vbulletin VbSEO 11 2006-09-28 10:11
Vbulletin Forum Kurulumu-Bakımı-Eklentileri Yapılır.. emucu Vbulletin VbSEO 23 2006-09-05 02:04


Bütün Zaman Ayarları WEZ +2 olarak düzenlenmiştir. Şu Anki Saat: 22:25 .


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.1.0

Firefox