当前位置:网站首页>window下面如何安装swoole
window下面如何安装swoole
2022-07-07 01:13:00 【菜鸟一号mmmm】
Cygwin网址:http://www.cygwin.com/
安装Cygwin:
1:点击exe安装文件
点击下一步
选择install from internet点击下一步
自定义安装目录,不要安在系统盘,点击下一步
选择下载目录,点击下一步
选择direct connection点击下一步
7、选择镜像源,填写url点击添加,选中添加后的镜像源,点击下一步(http://cygwin.mirror.constant.com,全新镜像源)
选择要安装的依赖包
注:选择Category,并在Search框中写入需要安装的工具
如:libpcre-devel
所需要的所有工具以及扩展如下图:
点击下一步安装,剩余的就是自动安装,在结束时可能需要勾选两个框,是图标和快捷键的创建,选择勾选。
扩容Cygwin可用内存空间:
打开注册列表
选择新建Cygwin的QWORD(32位请选择DWORD)
名称位heap_chunk_in_mb,数值位2048MB(可自行选择,不要太小,最好1G以上,也要看windows系统内存大小)
右键点击修改,选择十进制,数值填写2048
重启电脑。
安装swoole
Github网址:点击此处跳转github
选择gz压缩包下载,下载后复制到cygwin安装目录下的home目录下
之后点击cygwin快捷键进入虚拟终端
并解压home目录下的刚下载的swoole安装包到/usr/local/swoole下(如果/usr/local/swoole不存在,新建这个文件夹)
解压完后进入/usr/local/swoole/swoole-src-4.2.0/
输入命令:phpize,生成编译的配置文件configure
输入命令:./configure && make && make install
配置、编译、编译安装swoole
使用命令: php -i | grep php.ini,找到php cli使用的配置文件php.ini的路径,修改php.ini文件,在文件中添加一行:extension=swoole.dll(是windows扩展的swoole.dll,不是图片的swoole.so),然后关闭退出
6 /extension 查找 按n再次查找
7 添加extension=swoole.dll(是dll不是so)
8 :wq 保存退出
9 使用命令:php -m,查看加载的模块,如果看到swoole,则扩展添加成功,到此环境搭建成功!
边栏推荐
- 一名普通学生的大一总结【不知我等是愚是狂,唯知一路向前奔驰】
- New Year Fireworks code plus copy, are you sure you don't want to have a look
- The solution of a simple algebraic problem
- JVM监控及诊断工具-命令行篇
- 关于STC单片机“假死”状态的判别
- linear regression
- If you don't know these four caching modes, dare you say you understand caching?
- Sequential storage of stacks
- SubGHz, LoRaWAN, NB-IoT, 物联网
- From "running distractor" to data platform, Master Lu started the road of evolution
猜你喜欢
Go语学习笔记 - gorm使用 - gorm处理错误 | Web框架Gin(十)
Bypass open_ basedir
生活中的开销,怎么记账合适
From "running distractor" to data platform, Master Lu started the road of evolution
VScode进行代码补全
SAP ABAP BDC (batch data communication) -018
Harmonyos practice - Introduction to development, analysis of atomized services
苹果cms V10模板/MXone Pro自适应影视电影网站模板
If you don't know these four caching modes, dare you say you understand caching?
PTA 天梯赛练习题集 L2-004 搜索树判断
随机推荐
Interview skills of software testing
10W word segmentation searches per second, the product manager raised another demand!!! (Collection)
从“跑分神器”到数据平台,鲁大师开启演进之路
Digital IC interview summary (interview experience sharing of large manufacturers)
Go language learning notes - Gorm use - Gorm processing errors | web framework gin (10)
[FPGA tutorial case 13] design and implementation of CIC filter based on vivado core
云加速,帮助您有效解决攻击问题!
苹果cms V10模板/MXone Pro自适应影视电影网站模板
Go language learning notes - Gorm use - native SQL, named parameters, rows, tosql | web framework gin (IX)
PTA 天梯赛练习题集 L2-002 链表去重
OpenSergo 即将发布 v1alpha1,丰富全链路异构架构的服务治理能力
每秒10W次分词搜索,产品经理又提了一个需求!!!(收藏)
SAP ABAP BDC (batch data communication) -018
Reading notes of Clickhouse principle analysis and Application Practice (6)
Bbox regression loss function in target detection -l2, smooth L1, IOU, giou, Diou, ciou, focal eiou, alpha IOU, Siou
Financial risk control practice - decision tree rule mining template
外设驱动库开发笔记43:GPIO模拟SPI驱动
New Year Fireworks code plus copy, are you sure you don't want to have a look
PowerPivot - DAX (function)
Vscode for code completion