//編譯安裝php 5.3.3
由於php5.3.X已經自帶了php-fpm所以不需要打補丁
# sudo ./configure --prefix=/usr/local/php-5.3. 3 --with-mcrypt --with-gettext --with-mysql --with-gd --with-jpeg-dir --with-png-dir --with-curl --with-freetype-dir --enable -gd-native-ttf --enable-mbstring --enable-sockets --with-png-dir --with-pdo-mysql --enable-fpm --with-zlib --with-fpm-user=daemon - -with-fpm-group=daemon
# sudo rm -rf /usr/local/php-5.3.3
# sudo make
# sudo make install
//編譯安裝meache
# sudo make install
//編譯安裝meache
sudo /usr/local/php-5.3.3/bin/phpize
sudo ./configure --with-php-c/local/php-5.3.3/bin/php-config
//修改php .ini設定檔
新增:
extension_dir = "/usr/local/php-5.3.3/lib/php/extensions/no-debug-non-zts-20090626/"
extension=memcache. so以上就介紹了Memcached ubuntu 編譯安裝php 533+memcache的方法,包括了Memcached方面的內容,希望對PHP教程有興趣的朋友有所幫助。