下面由1818ip网给大家介绍Ubuntu 原生安装 Swoole 扩展的方法,希望对需要的朋友有所帮助!
Ubuntu 原生安装 Swoole 扩展
官方编译安装教程 点击(https://wiki.swoole.com/#/environment)
进入 swoole 的 Github 版本列表,选择最新版本的压缩包下载
swoole 版本列表(https://github.com/swoole/swoole-src/releases)
$ wget https://github.com/swoole/swoole-src/archive/refs/tags/v4.8.0.zip
下载完成后进行操作
# 如果没有unzip 的话 $ apt-get unzip #之后解压下载的压缩包 $ unzip v4.8.0.zip # 进入目录 $ cd v4.8.0.zip # 编译 $ phpize # ubuntu 没有安装 phpize 可执行命令下面的这个来安装 phpize $ sudo apt-get install php-dev # 编译配置检测 $ ./configure --enable-openssl --enable-http2 --enable-swoole-curl --enable-swoole-json # 编译 $ make # 安装 $ make install #查看扩展 $ php --ri swoole
如果显示以下代码 正确
Swoole => enabled Author => Swoole Team Version => 4.8.0 Built => Oct 15 2021 09:34:32 coroutine => enabled with boost asm context epoll => enabled eventfd => enabled signalfd => enabled cpu_affinity => enabled spinlock => enabled rwlock => enabled openssl => OpenSSL 1.1.1f 31 Mar 2020 dtls => enabled http2 => enabled json => enabled curl-native => enabled zlib => 1.2.11 mutex_timedlock => enabled pthread_barrier => enabled futex => enabled async_redis => enabled Directive => Local Value => Master Value swoole.enable_coroutine => On => On swoole.enable_library => On => On swoole.enable_preemptive_scheduler => Off => Off swoole.display_errors => On => On swoole.use_shortname => Off => Off swoole.unixsock_buffer_size => 8388608 => 8388608
以上就是“一文讲解Ubuntu原生安装Swoole扩展的方法 ubuntu安装sqoop详细教程”的详细内容,更多请关注1818ip网其它相关文章!
相关文章
标签:CentOS
- •centos中的uuid是必须的吗 centos安装minicom必须联网吗
- •centos如何查看用户 centos如何查看用户密码
- •centos重启后时间不对怎么办 centos时间不同步怎么解决
- •如何解决centos7下chrome打不开的问题 centos安装chrome
- •centos下ping不通网关怎么办 centos ping不通网关怎么解决
- •centos7系统找不到网卡 centos7装完系统找不到网卡
- •centos中pear命令无法使用怎么办 pear是什么意思
- •centos怎么实现开机进入命令行模式 centos7开机进入命令行模式
- •centos无法进入图形界面怎么解决 centos无法进入图形界面
- •centos默认用户名密码是什么 centos默认用户名密码