In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-06 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/02 Report--
How to install swoole extension in windows? in view of this problem, this article introduces the corresponding analysis and solution in detail, hoping to help more partners who want to solve this problem to find a simpler and easier way.
One: download Cygwin and swoole
Two: install Cygwin
Pay attention to installing Cygwin
1: select the image source
2: software that needs to be installed (you can also install it selectively)
(1): install binutils
(3): install gdb
(5): install pcre-devel
(7) install php-json (this is because I will use php's json_decode () command, so I need to install php-json)
These are the considerations for installing Cygwin
Three: install the swoole extension of php
1: copy the downloaded swool extension to the home directory of the Cygwin installation package
2: install the swoole extension of php
(1): decompress the swoole expansion package
Start Cygwin: double-click the Cygwin.bat file in the Cygwin installation directory
Extract the swoole expansion package
Cd / home/tar-zxvf swoole-4.2.12.tgz
(2) install the swoole expansion package
[1] generate the compilation file configure
Cd swoole-4.2.12phpize
[2] compile and install swoole
. / configure & & make & & make install
[3] add extension=swoole.so to the php.ini file
Use php-I | grep php.ini to find the php.ini file location
Php-I | grep php.ini
Add extension=swoole.so to the php.ini file after finding the location of the php.ini file
[4]: check whether the swoole extension is installed successfully
Use the php-m command to see if swoole is installed successfully
As shown in the figure above, the swoole extension of php has been installed successfully.
Four: test swoole
Find the examples/http directory under the swoole installation directory and execute the php server.php command
Cd / home/swoole-4.2.12/examples/http php server.php
Open the browser and enter http://127.0.0.1:9501/: the following phenomenon indicates that the swoole extension of php has been installed successfully
This is the answer to the question about how to install swoole expansion in windows. I hope the above content can be of some help to you. If you still have a lot of doubts to solve, you can follow the industry information channel to learn more about it.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 285
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.