search
HomePHP FrameworkSwooleDoes swoole currently not support windows?

Does swoole currently not support windows?

The swoole framework is a very magical and powerful framework, which makes up for some of the shortcomings of PHP itself. In fact, swoole is a PHP extension written in C language, but this extension cannot be used on Windows systems.                                                                                                                                             (Recommended learning: swoole video tutorial )

Cygwin is a UNIX-like simulation environment running on the windows platform. Since it is a simulation environment, it is easy to handle! Next We officially start to talk about how to build a swoole environment

1. Download Swoole and Cygwin

Does swoole currently not support windows?

##Download Cygwin, my It is 64-bit

Does swoole currently not support windows?21 Install Cygwin

Does swoole currently not support windows?

Select the software package to install, you need to install it here 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 may be different)

First search for gcc

Does swoole currently not support windows?

Then php

Does swoole currently not support windows?

Then pcre-devel

Does swoole currently not support windows?

Finally autoconf

Does swoole currently not support windows?

In the end, just go to the next step to install.


Does swoole currently not support windows?

2 Install Swoole

Extract the source program of swoole to the Cygwin home directory and open the Cygwin software (note: if your Cygwin is also installed on the C drive, then you have to pay attention. There may be an error when installing swoole. The solution is to right-click Open Cygwin as an administrator)

Does swoole currently not support windows?

1 The environment at this time is like a Linux terminal, and the root directory is the Cygwin installation directory. Enter the command in the interface: cd /home/ swoole-src, where swoole-src is the decompressed source program

Does swoole currently not support windows?

2 The environment at this time is like a Linux terminal, and the root directory is the Cygwin installation directory , enter the command on the interface: cd /home/swoole-src, where swoole-src is the decompressed source program

Does swoole currently not support windows?

3 Enter the command: phpize to generate the compiled Configuration file configure

Does swoole currently not support windows?

4 Enter the command: ./configure && make && make install

Does swoole currently not support windows?

##Configure, compile, compile Install swoole

(PS: Execute ./configure, in addition to compiling the configuration, it will also detect the environment, etc.)

5Use the command: php -i | grep php.ini to find The path to the configuration file php.ini used by php cli, modify the php.ini file, add a line in the file: extension=swoole.so, then close and exit

Does swoole currently not support windows?
6 /extension Search Press n to search again

Does swoole currently not support windows?
7 Add extension=swoole.so

Does swoole currently not support windows?
8 :wq Save and exit

9 Use the command: php -m to view the loaded modules. If you see swoole, the extension is added successfully and the environment is successfully built!

Does swoole currently not support windows?

The above is the detailed content of Does swoole currently not support windows?. For more information, please follow other related articles on the PHP Chinese website!

Statement
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 admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

SublimeText3 Linux new version

SublimeText3 Linux new version

SublimeText3 Linux latest version

WebStorm Mac version

WebStorm Mac version

Useful JavaScript development tools

VSCode Windows 64-bit Download

VSCode Windows 64-bit Download

A free and powerful IDE editor launched by Microsoft

MantisBT

MantisBT

Mantis is an easy-to-deploy web-based defect tracking tool designed to aid in product defect tracking. It requires PHP, MySQL and a web server. Check out our demo and hosting services.

DVWA

DVWA

Damn Vulnerable Web App (DVWA) is a PHP/MySQL web application that is very vulnerable. Its main goals are to be an aid for security professionals to test their skills and tools in a legal environment, to help web developers better understand the process of securing web applications, and to help teachers/students teach/learn in a classroom environment Web application security. The goal of DVWA is to practice some of the most common web vulnerabilities through a simple and straightforward interface, with varying degrees of difficulty. Please note that this software