Linux下安裝php開發架構yaf

來源:互聯網
上載者:User

標籤:http   io   os   ar   java   for   檔案   sp   問題   


本人備忘的文章~~~


Linux下安裝php開發架構yaf


yaf架構中文手冊:http://yaf.laruence.com/manual/index.html

yaf手冊:http://www.php.net/manual/en/book.yaf.php

1.下載並安裝yaf擴充 http://pecl.php.net/package/yaf

#wget http://pecl.php.net/get/yaf-2.2.9.tgz#tar zxvf yaf-2.2.9.tgz#cd yaf-2.2.9[[email protected] yaf-2.2.9]# whereis phpizephpize: /usr/bin/phpize /usr/share/man/man1/phpize.1.gz/usr/bin/phpize[[email protected] yaf-2.2.9]# /usr/bin/phpizeConfiguring for:PHP Api Version: 20090626Zend Module Api No: 20090626Zend Extension Api No: 220090626#whereis php-configphp-config: /usr/bin/php-config /usr/share/man/man1/php-config.1.gz#./configure --with-php-config=/usr/bin/php-config#make && make install

2.添加擴充配置到PHP.ini

在/etc/php.ini檔案裡添加一行

extension=yaf.so


重啟webserver 即可。

如果phpinfo看不到yaf擴充(我就遇到了這個問題)

 最後一步可以替換成全路徑

extension="/usr/local/php/lib/php/extensions/no-debug-non-zts-20090626/yaf.so"


Linux下安裝php開發架構yaf

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.