Home > PHP Framework > Swoole > body text

swoole installation steps

Release: 2019-12-12 10:41:32
Original
4235 people have browsed it

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
Copy after login

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!

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
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!