Blogger Information
Blog 15
fans 0
comment 0
visits 27721
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
lnmp 下 php5.6搭建swoole服务
陈序员的博客
Original
1815 people have browsed it

一、环境介绍

    1、lnmp版本:lnmp1.2-full.tar.gz

    2、php版本:  php5.6

    3、mysql版本:mysql5.6

    4、系统版本: centos7.4

    5、swoole版本: 1.9.1-stable.tar.gz

二、开始搭建swoole

    1、查看php.ini路径  例如我的路径是:/usr/local/php/etc/php.ini

    2、进入src目录 cd /usr/local/src

    3、下载swoole:wget https://github.com/swoole/swoole-src/archive/v1.9.1-stable.tar.gz 

    4、解压: tar zxvf v1.9.1-stable.tar.gz

    5、进入解压目录:cd swoole-src-1.9.1-stable

    6、执行:/usr/local/php/bin/phpize

    7、执行: ./configure --with-php-config=/usr/local/php/bin/php-config

    8、执行:make

    9、执行:make install

    10、配置php.ini加入swoole.io:   extension=swoole.so

    11、重启服务: lnmp restart

    12、最后在phpinfo页面可以看到关于swoole的选项,说明安装成功。  或者使用 PHP -m 查看 模块中包含 swoole,说明安装成功


Statement of this Website
The copyright of this blog article belongs to the blogger. Please specify the address when reprinting! If there is any infringement or violation of the law, please contact admin@php.cn Report processing!
All comments Speak rationally on civilized internet, please comply with News Comment Service Agreement
0 comments
Author's latest blog post