swoole 有點類似node.js , swoole純C寫的PHP擴充。 多進程與非阻塞
安裝php :
先卸載:
# yum remove php php-bcmath php-cli php-common php- devel php-fpm php-gd php-imap php-ldap php-mbstring php-mcrypt php-mysql php-mbstring php-mcrypt php-mysql php-odbc php-p. xmlrpc
來源
# rpm -Uvh http://mirror.webtatic.com/yum/el6/latest.rpm
安裝php5. 5
yum install php55w php55w-bcmath php55w-cli php55w-common php55w-devel php55w-fpm php55w-gd 55555w-fpm 55wry 5w-mysql php55w- odbc php55w-pdo php55w-梨子php55w-pecl-igbinary php55w-pecl-igbinary php55w-xml php55w-xmlrpc php55w-opcache php55w-intl php55w-xmlrpc php55w-opcache php55w-intl php55w-xmlrpc php55w-opcache php55w-intl php55-xmlrpc php55w-opcache php55w-intl php55-pachep需先安裝mysql
php.ini修改
date.timezone = '亞洲/上海'
注意卸載:  ;
yum remove httpd
安裝swoole:
https://github.com/swoole/swoole-src/releases
# wget https://github.com/swoole/swoole -src/archive/swoole-1.7.6-stable.tar.gz
tar zxvf swoole-1.7.6-stable.tar.gz
swoole-1.7.6-stable.tar.gz
phpize
./configure make
make install
下面
>擴充加入到php.ini
extension=swoole.so