Home > PHP Framework > Swoole > swoole compilation and installation steps

swoole compilation and installation steps

(*-*)浩
Release: 2019-12-06 11:25:07
Original
2122 people have browsed it

swoole compilation and installation steps

Swoole compilation and installation steps

The Swoole extension is built according to the PHP standard extension. Use phpize to generate PHP compilation configuration, ./configure to do compilation configuration detection, make to compile, and make install to install. (Recommended learning: swoole video tutorial)

Please download the releases version of swoole, and pulling the latest code directly from the github trunk may not compile

If The current user is not root and may not have write permissions to the php directory. You need sudo or su

during installation. If you are directly git pulling the update code on the git branch, be sure to execute make clean

## before recompiling.

#Install PHP 7.3.1

https://blog.csdn.net/uisoul/article/details/86631469
Copy after login

Download Swoole

wget https://github.com/swoole/swoole-src/archive/v4.3.3.tar.gz
Copy after login

Unzip

tar -xzvf v4.3.3.tar.gz1
Copy after login

Compile and install

/usr/local/php/bin/phpize

./configure --with-php-config=/usr/local/php/bin/php-config --enable-openssl  --enable-http2  --enable-async-redis --enable-sockets --enable-mysqlnd 

make && make install
Copy after login

The above is the detailed content of swoole compilation and installation steps. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template