centOS下 PHP + swoole 安裝記錄

來源:互聯網
上載者:User
<p>swoole 有點類似node.js&nbsp; ,&nbsp; swoole純C編寫的PHP擴充. 多進程和非阻塞&nbsp;<br/><br/><br/>安裝php :&nbsp;<br/>先卸載:&nbsp;<br/># yum remove php&nbsp; php-bcmath php-cli php-common&nbsp; php-devel php-fpm&nbsp;&nbsp;&nbsp; php-gd php-imap&nbsp; php-ldap php-mbstring php-mcrypt php-mysql&nbsp;&nbsp; php-odbc&nbsp;&nbsp; php-pdo&nbsp;&nbsp; php-pear&nbsp; php-pecl-igbinary&nbsp; php-xml php-xmlrpc&nbsp;<br/><br/>源&nbsp;<br/># rpm -Uvh http://mirror.webtatic.com/yum/el6/latest.rpm&nbsp;<br/><br/>安裝php5.5&nbsp;<br/>yum install php55w&nbsp; php55w-bcmath php55w-cli php55w-common&nbsp; php55w-devel php55w-fpm&nbsp;&nbsp;&nbsp; php55w-gd php55w-imap&nbsp; php55w-ldap php55w-mbstring php55w-mcrypt php55w-mysql&nbsp;&nbsp; php55w-odbc&nbsp;&nbsp; php55w-pdo&nbsp;&nbsp; php55w-pear&nbsp; php55w-pecl-igbinary&nbsp; php55w-xml php55w-xmlrpc php55w-opcache php55w-intl php55w-pecl-memcache&nbsp;<br/><br/>php5.5 預設帶有pdo,不需要先安裝 mysql&nbsp;<br/><br/>php.ini修改&nbsp;<br/>date.timezone = &#39;Asia/Shanghai&#39;&nbsp;<br/><br/>注意卸載:&nbsp;<br/>yum remove httpd&nbsp;<br/><br/>安裝swoole:&nbsp;<br/>https://github.com/swoole/swoole-src/releases&nbsp;<br/><br/># wget https://github.com/swoole/swoole-src/archive/swoole-1.7.6-stable.tar.gz&nbsp;<br/>tar zxvf swoole-1.7.6-stable.tar.gz&nbsp;<br/>swoole-1.7.6-stable.tar.gz&nbsp;<br/>phpize&nbsp;<br/>./configure&nbsp;<br/>make&nbsp;<br/>make install&nbsp;<br/><br/>下面擴充加入到php.ini&nbsp;<br/>extension=swoole.so</p>
  • 聯繫我們

    該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在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.