• 欢迎访问搞代码网站,推荐使用最新版火狐浏览器和Chrome浏览器访问本网站!
  • 如果您觉得本站非常有看点,那么赶紧使用Ctrl+D 收藏搞代码吧

centOS下 PHP + swoole 安装记录

php 搞代码 3年前 (2022-01-23) 11次浏览 已收录 0个评论

<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 = 'Asia/Shanghai'&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;&l!本文来源gaodai#ma#com搞*!代#%^码网5

搞gaodaima代码

t;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>


搞代码网(gaodaima.com)提供的所有资源部分来自互联网,如果有侵犯您的版权或其他权益,请说明详细缘由并提供版权或权益证明然后发送到邮箱[email protected],我们会在看到邮件的第一时间内为您处理,或直接联系QQ:872152909。本网站采用BY-NC-SA协议进行授权
转载请注明原文链接:centOS下 PHP + swoole 安装记录
喜欢 (0)
[搞代码]
分享 (0)
发表我的评论
取消评论

表情 贴图 加粗 删除线 居中 斜体 签到

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址