Home  >  Article  >  PHP Framework  >  swoole installation steps

swoole installation steps

尚
Original
2019-12-12 10:41:324159browse

swoole installation steps

1. Install git: yum –y install git

The picture is the already installed git

swoole installation steps

2. Clone the swoole source code: git clone …

Address:

https://github.com/swoole/swoole-src/releases

http:/ /pecl.php.net/package/swoole

http://git.oschina.net/swoole/swoole

to http://git.oschina.net/swoole /swoole is an example, copy the address https://gitee.com/swoole/swoole.git

execute

git clone https://gitee.com/swoole/swoole.git

swoole installation steps

3. Execute and compile the following commands

cd swoole

phpize (ubuntu does not have phpize installed executable command: sudo apt-get install php-dev to install phpize)

./configure

make

sudo make install

(The picture shows two commands)

swoole installation steps

##4. Install pecl: yum install php-devel php -pear performs one-click installation: pecl install swoole

5. Configure php.ini

Find the php.ini file: find / -name "php.ini"

Compile After successful installation: extension=swoole.so

swoole installation steps

swoole installation steps

6. Check whether swoole is installed successfully: php –m

If you see swoole, the installation is successful

swoole installation steps

Recommended learning:

swoole video tutorial

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

Statement:
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