Home > PHP Framework > Swoole > body text

What are the prerequisites for installing swoole on Linux?

Release: 2019-12-09 09:27:03
Original
1419 people have browsed it

What are the prerequisites for installing swoole on Linux?

Prerequisites for installing swoole under Linux: (Recommended: swoole video tutorial)

Execute phpize (if php is not added to the path environment Variable, write the absolute path such as: /usr/local/php/bin/phpize )

phpize
Copy after login

phpize command is used to prepare the compilation environment of the PHP extension library

Compile and install

You can first check the parameters required for compilation with ./configure --help

./configure --with-php-config=/usr/local/php/bin/php-config --enable-sockets --enable-swoole --enable-mysqlnd
Copy after login

swoole Compilation and installation require specifying the location of the php-config file, and other parameters are determined according to your own situation.

make && make install
Copy after login

After the compilation is completed, you can see

Edit the php.ini configuration file to let php support swoole

extension=swoole.so
Copy after login

Use php -m to verify whether php supports the swoole extension

php -m |grep swoole
Copy after login

The above is the detailed content of What are the prerequisites for installing swoole on Linux?. 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 [email protected]
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!