一文講解Ubuntu原生安裝Swoole擴展的方法

下面由centos教程欄目給大家介紹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?可執(zhí)行命令下面的這個來安裝?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?=&gt;?enabled Author?=&gt;?Swoole?Team?<team> Version?=&gt;?4.8.0 Built?=&gt;?Oct?15?2021?09:34:32 coroutine?=&gt;?enabled?with?boost?asm?context epoll?=&gt;?enabled eventfd?=&gt;?enabled signalfd?=&gt;?enabled cpu_affinity?=&gt;?enabled spinlock?=&gt;?enabled rwlock?=&gt;?enabled openssl?=&gt;?OpenSSL?1.1.1f??31?Mar?2020 dtls?=&gt;?enabled http2?=&gt;?enabled json?=&gt;?enabled curl-native?=&gt;?enabled zlib?=&gt;?1.2.11 mutex_timedlock?=&gt;?enabled pthread_barrier?=&gt;?enabled futex?=&gt;?enabled async_redis?=&gt;?enabled Directive?=&gt;?Local?Value?=&gt;?Master?Value swoole.enable_coroutine?=&gt;?On?=&gt;?On swoole.enable_library?=&gt;?On?=&gt;?On swoole.enable_preemptive_scheduler?=&gt;?Off?=&gt;?Off swoole.display_errors?=&gt;?On?=&gt;?On swoole.use_shortname?=&gt;?Off?=&gt;?Off swoole.unixsock_buffer_size?=&gt;?8388608?=&gt;?8388608</team>

推薦學習:《centos

? 版權(quán)聲明
THE END
喜歡就支持一下吧
點贊13 分享