Home >Backend Development >PHP Tutorial >What are the steps to install swoole under Windows?
Specific steps to install swoole under Windows:
Swoole does not originally support installation under Windows, so we need to install Cygwin to use it. I encountered a lot of pitfalls when installing Cygwin, and the documentation on Baidu's experience is not very complete, so I wrote down my own installation of Cygwin and Swoole, which is equivalent to my own precipitation.
First prepare the tools:
Cygwin official address:
swoole official download address:
One. Download Swoole and Cygwin
##Download Cygwin, mine is 64-bit 2 1Install Cygwin Select the software package to install. Here you need to install gcc, PHP, php development tools, autoconf, pcre-devel, and other defaults. Note here that after searching in the search bar above, find the corresponding software package below and select it, and click the Next button to start the installation. (Note: The screenshot below is the interface after I installed it. The click position is the same, but the icons behind it may be different) First search for gcc Then php is pcre-devel##Finally autoconf
Finally, just go to the next step to install it.
2 Install Swoole
##6 /extension Search Press n to search again
7 Add extension=swoole.so
8 :wq Save and exit
9 Use the command: php -m to view the loaded module. If you see swoole, the extension is added successfully. The environment has been set up successfully!
The above is the detailed content of What are the steps to install swoole under Windows?. For more information, please follow other related articles on the PHP Chinese website!