1. Install git: yum –y install git
The picture is the already installed git
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
1 |
|
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)
##4. Install pecl: yum install php-devel php -pear performs one-click installation: pecl install swoole5. Configure php.iniFind the php.ini file: find / -name "php.ini"Compile After successful installation: extension=swoole.so 6. Check whether swoole is installed successfully: php –m If you see swoole, the installation is successful Recommended learning:The above is the detailed content of swoole installation steps. For more information, please follow other related articles on the PHP Chinese website!