centos7 安裝php 多線程pthreads

來源:互聯網
上載者:User

標籤:安裝php7   ln -s   distrib   str   thread   tar.gz   dev   nbsp   update   

第一步:yum源更新

yum update

第二步:下載php7源碼

wget http://124.202.164.8/files/312100000A0BB72D/cn.php.net/distributions/php-7.0.18.tar.gz

第三步:安裝依賴庫檔案[注意dev/devel]

yum install gcc make libxml2 libxml2-devel autoconf

第四步:編譯安裝php7

make make install

第五步:通過pecl安裝pthreads,尋找pecl   (php編譯的時候要添加--with-pear)

find / -name pecl

./pecl install pthreads

第六步:配置php.ini檔案支援pthreads

cp /root/php-7.0.18/php.ini-production /usr/local/php7/lib/php.ini

第七步:建立軟串連,支援php全域訪問

ln -s /usr/local/php7/bin/php /usr/bin/php

 

 

轉:71091298

 

centos7 安裝php 多線程pthreads

聯繫我們

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