centOS下 PHP + swoole 安装记录
程序员文章站
2022-05-28 07:53:02
...
<p>swoole 有点类似node.js , swoole纯C编写的PHP扩展. 多进程和非阻塞 <br/><br/><br/>安装php : <br/>先卸载: <br/># 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-odbc php-pdo php-pear php-pecl-igbinary php-xml php-xmlrpc <br/><br/>源 <br/># rpm -Uvh http://mirror.webtatic.com/yum/el6/latest.rpm <br/><br/>安装php5.5 <br/>yum install php55w php55w-bcmath php55w-cli php55w-common php55w-devel php55w-fpm php55w-gd php55w-imap php55w-ldap php55w-mbstring php55w-mcrypt php55w-mysql php55w-odbc php55w-pdo php55w-pear php55w-pecl-igbinary php55w-xml php55w-xmlrpc php55w-opcache php55w-intl php55w-pecl-memcache <br/><br/>php5.5 默认带有pdo,不需要先安装 mysql <br/><br/>php.ini修改 <br/>date.timezone = 'Asia/Shanghai' <br/><br/>注意卸载: <br/>yum remove httpd <br/><br/>安装swoole: <br/>https://github.com/swoole/swoole-src/releases <br/><br/># wget https://github.com/swoole/swoole-src/archive/swoole-1.7.6-stable.tar.gz <br/>tar zxvf swoole-1.7.6-stable.tar.gz <br/>swoole-1.7.6-stable.tar.gz <br/>phpize <br/>./configure <br/>make <br/>make install <br/><br/>下面扩展加入到php.ini <br/>extension=swoole.so</p>
下一篇: 学习Java分为几个阶段,分别是什么?