当前位置:网站首页>How to install swoole under window

How to install swoole under window

2022-07-07 06:34:00 Rookie No.1 mmmm

Cygwin website :http://www.cygwin.com/

install Cygwin:

1: Click on exe The installation files
 Insert picture description here

Click next
 Insert picture description here

choice install from internet Click next

 Insert picture description here

Custom installation directory , Do not install it on the system disk , Click next

 Insert picture description here

Select the download directory , Click next

 Insert picture description here

choice direct connection Click next
 Insert picture description here

7、 Choose a mirror source , Fill in url Click Add , Select the added image source , Click next (http://cygwin.mirror.constant.com, New image source )

 Insert picture description here

Select the dependent packages to install
 Insert picture description here

notes : choice Category, And in Search Write the tools to be installed in the box

 Insert picture description here

Such as :libpcre-devel

 Insert picture description here

All required tools and extensions are shown in the figure below :

 Installation dependency

Click next to install , The rest is automatic installation , You may need to check two boxes at the end , Is the creation of icons and shortcut keys , Select Check .

Capacity expansion Cygwin Available memory space :

Open registration list

 Insert picture description here

Choose new Cygwin Of QWORD(32 Bit, please select DWORD)
 Insert picture description here

Name bit heap_chunk_in_mb, Value bits 2048MB( You can choose , Don't be too small , best 1G above , Also look at it. windows System memory size )
 Insert picture description here

Right click Modify , Choose decimal , Numerical value filling 2048
 Insert picture description here

Restart the computer .

install swoole

Github website : Click here to jump to github
 Insert picture description here

choice gz Package download , Download and copy to cygwin Install under directory home Under the table of contents
 Insert picture description here

After clicking on cygwin Shortcut key to enter the virtual terminal

And extract the home Just downloaded under the directory swoole The installation package to /usr/local/swoole Next ( If /usr/local/swoole non-existent , Create this folder )
 Insert picture description here

After decompression, enter /usr/local/swoole/swoole-src-4.2.0/

Enter the command :phpize, Generate the compiled configuration file configure
 Insert picture description here

Enter the command :./configure && make && make install
 Insert picture description here

To configure 、 compile 、 Compilation and installation swoole

Use command : php -i | grep php.ini, find php cli The configuration file used php.ini The path of , modify php.ini file , Add a line to the file :extension=swoole.dll( yes windows Extended swoole.dll, Not pictures swoole.so), Then close and exit
 Insert picture description here

6 /extension lookup Press n Search again
 Insert picture description here

7 add to extension=swoole.dll( yes dll No so)

https://img-blog.csdn.net/20151119134731923?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQv/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/Center

8 :wq Save and exit

9 Use command :php -m, View the loaded modules , If you see swoole, The extension is added successfully , This environment has been built successfully !
 Insert picture description here

原网站

版权声明
本文为[Rookie No.1 mmmm]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/188/202207070113341191.html