lnmp 安装Swoole扩展

admin9年前程序心得1673

下载swoole扩展逐渐,附件:

swoole-src-master.zip


github地址:https://github.com/swoole/swoole-src.git

安装swoole:

cd  swoole-src-master
/usr/local/php/bin/phpize
./configure --with-php-config=/usr/local/php/bin/php-config
make install
cd ..

安装成功时,会提示:

Libraries have been installed in:
   /root/swoole-src-master/modules

If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:
   - add LIBDIR to the `LD_LIBRARY_PATH' environment variable
     during execution
   - add LIBDIR to the `LD_RUN_PATH' environment variable
     during linking
   - use the `-Wl,--rpath -Wl,LIBDIR' linker flag
   - have your system administrator add LIBDIR to `/etc/ld.so.conf'

See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------
Installing shared extensions:     /usr/local/php/lib/php/extensions/no-debug-non-zts-20131226/

编译安装完后,修改php.ini加入extension=swoole.so开启swoole扩展。也可以通过dl('swoole.so')动态载入,推荐修改php.ini

分享到:

相关文章

jquery给url新增、修改、查询

(function ($) {  $.extend({   Request: function (m) {...

lnmp 安装mongodb以及 mongodb扩展

lnmp 安装mongodb以及 mongodb扩展

笔者环境:lnmp 一键安装包:centos7 +php5.6+mysql 5.6 附件:mongo-php-driver-legacy-master.zipgit clone h...

jQuery ajax使用$(this).parent()无效解决方法

本文章来给各位同学介绍一下关于jQuery ajax使用$(this).parent()无效解决方法,希望此方法对各位同学人有所帮助哦html 代码如下复制代码<p class=&qu...

PHP代码优化

PHP代码效率优化发表于2013/9/24 17:50:06  490人阅读分类: Web1、如果能将类的方法定义成static,就尽量定义成static,它的速度会提升将近4倍。2、$ro...

MySQL分区技术

MySQL分区技术

分区介绍基本概念,把一个表,从逻辑上分成多个区域,便于存储数据。采用分区的前提,数据量非常大。如果数据表的记录非常多,比如达到上亿条,数据表的活性就大大降低,数据表的运行速度就比较慢、效率低下,影响m...

月薪3万的程序员都避开了哪些坑

程序员薪水有高有低,有的人一个月可能拿30K、50K,有的人可能只有2K、3K。同样有五年工作经验的程序员,可能一个人每月拿20K,一个拿5K。是什么因素导致了这种差异?我特意总结了容易导致薪水低的九...

发表评论    

◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。