当前位置:网站首页>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,则扩展添加成功,到此环境搭建成功!
边栏推荐
- SAP Spartacus checkout 流程的扩展(extend)实现介绍
- 关于STC单片机“假死”状态的判别
- SubGHz, LoRaWAN, NB-IoT, 物联网
- Career experience feedback to novice programmers
- Reptile exercises (III)
- 那些自损八百的甲方要求
- Type de texte de commutation d'entrée et de mot de passe de l'applet natif
- [solved] record an error in easyexcel [when reading the XLS file, no error will be reported when reading the whole table, and an error will be reported when reading the specified sheet name]
- Chain storage of stack
- Question 102: sequence traversal of binary tree
猜你喜欢
【FPGA教程案例13】基于vivado核的CIC滤波器设计与实现
Dc-7 target
@pathvariable 和 @Requestparam的详细区别
Go language learning notes - Gorm use - native SQL, named parameters, rows, tosql | web framework gin (IX)
Career experience feedback to novice programmers
【SQL实战】一条SQL统计全国各地疫情分布情况
软件测试知识储备:关于「登录安全」的基础知识,你了解多少?
Introduction to the extension implementation of SAP Spartacus checkout process
Determine whether the file is a DICOM file
话说SQLyog欺骗了我!
随机推荐
成为资深IC设计工程师的十个阶段,现在的你在哪个阶段 ?
关于STC单片机“假死”状态的判别
cf:C. Column Swapping【排序 + 模擬】
[shell] clean up nohup Out file
Introduction to yarn (one article is enough)
Bbox regression loss function in target detection -l2, smooth L1, IOU, giou, Diou, ciou, focal eiou, alpha IOU, Siou
Career experience feedback to novice programmers
Interview skills of software testing
Jstat of JVM command: View JVM statistics
Jcmd of JVM command: multifunctional command line
JVM命令之 jinfo:实时查看和修改JVM配置参数
如何在Touch Designer 2022版中设置解决Leap Motion不识别的问题?
PTA TIANTI game exercise set l2-003 moon cake test point 2, test point 3 Analysis
Jinfo of JVM command: view and modify JVM configuration parameters in real time
【FPGA教程案例13】基于vivado核的CIC滤波器设计与实现
【日常训练--腾讯精选50】235. 二叉搜索树的最近公共祖先
Bat instruction processing details
JVM monitoring and diagnostic tools - command line
Peripheral driver library development notes 43: GPIO simulation SPI driver
Say sqlyog deceived me!