Configuring php7 to support swoole

Continued articles swoole install, configure php7 to support swoole

php installation directory is / usr / local / php
Swoole the installation directory, as / usr / local / swoole /
 
1, find the php.ini file
/usr/local/php/lib/php.ini
Edit your php.ini
Plus extension = swoole
Storage
By php -m can see swoole came loaded
 
test:
1) php file execution echo.php
Under / usr / local / swoole / examples / server directory
php echo.php
2), netstat command to view the port number
netstat -anp | grep 9501
Outputs such as:
tcp 0 0 0.0.0.0:9501 0.0.0.0:* LISTEN 730/php

Guess you like

Origin www.cnblogs.com/linst/p/11141277.html