您的位置 首页 php

php进阶到架构之swoole系列教程(一)windows安装swoole

目录

  • 概述
  • 安装Cygwin
  • 安装 swoole
  • php7进阶到架构师相关阅读

概述

这是关于php进阶到架构之 swoole 系列学习课程:第一节:windows安装swoole

学习目标

在Windows环境将搭建swoole运行环境

安装Cygwin

swoole需要在 UNIX 环境运行。Cygwin是一个在windows平台上运行的类UNIX模拟环境。

所以,为了让swoole可以在windows环境运行,先需要安装Cygwin

cygwin下载地址

php进阶到架构之swoole系列教程(一)windows安装swoole

点击上图箭头位置,下载cygwin安装文件

安装过程截图如下

php进阶到架构之swoole系列教程(一)windows安装swoole

图1

php进阶到架构之swoole系列教程(一)windows安装swoole

图2-设置网络,默认即可

进入上图图2,选择默认url即可,直接点击下一步

php进阶到架构之swoole系列教程(一)windows安装swoole

图3

接下来要选择预先安装的软件,由于是要运行php环境所以需要安装以下几个软件

php进阶到架构之swoole系列教程(一)windows安装swoole

左上角有一个view选择full

php进阶到架构之swoole系列教程(一)windows安装swoole

在上图的箭头输入框搜索

分别安装 gcc -code 、g++、php-devel 、php、make、autoconf 和pcre

php进阶到架构之swoole系列教程(一)windows安装swoole

为了后续更方便使用,也可以全部安装下面列出的的包

二 安装swoole

swoole 地址:

php进阶到架构之swoole系列教程(一)windows安装swoole

选择箭头中 tar.gz版本

第一步:

将解压出来的swoole源码复制到Cygwin安装目录中 /home中

第二步:

进入swoole目录,准备开始安装

 cd /home/swoole-src-4.8.7  

第三步:

执行 phpize 命令,生成编译的配置文件configure,这一步要注意关闭杀毒软件(会误报)

 phpize  

第四步:

执行 ./configure && make && make install 进行配置并打包,最后安装

 ./configure && make && make install  

第五步:

在php.ini文件中,添加extension=swoole.so

php进阶到架构之swoole系列教程(一)windows安装swoole

最后一步:

执行 php -m |grep swoole命令即可查看php是否支持swoole模块,能看到swoole就算是成功了。

 php -m |grep swoole  

php进阶到架构之swoole系列教程(一)windows安装swoole

出现swoole表明安装成功

总结,在Cygwin里面安装swoole时,报 configure: error: C++ preprocessor “/lib/cpp” fails sanity check 错误是因为未安装C++解释器造成的,只需要删除重新安装时选择C++解释器即可。

php7进阶到架构师相关阅读

最后,欢迎大家留言补充,讨论~~~喜欢小编的话,欢迎点赞、收藏和关注哦~~~///(^v^)\~~~

文章来源:智云一二三科技

文章标题:php进阶到架构之swoole系列教程(一)windows安装swoole

文章地址:https://www.zhihuclub.com/78943.shtml

关于作者: 智云科技

热门文章

评论已关闭

38条评论

  1. We have gifts for all of life special occasions including new baby, Christening,Holy Communion, Confirmation,Wedding ,Anniversary ,Retirement,Christmas and of course St

  2. Another noteworthy result is that the women with lowest AMH exhibited higher estradiol levels.

  3. OBOB You wrote a wonderful post at your blog about women feeling judged by their childbirth choices, and you include eight smart and practical wishes concerning medical care and attitudes toward women.

  4. Staphylococcus aureus is the sole pathogen in approximately 20 of cases. Doxycycline protects against ROS- induced mitochondrial fragmentation and ISO- induced heart failure.

  5. Objectives The participant shall be able to list culturally relevant cancer education strategies developed for youth in rural Alaska The authors concluded that in vivo EGb761 treatment is not likely to cause clinically relevant metabolic drug drug interactions

  6. The Relative ER ОІ positive immuno staining area expressed as the percentage of the total kidney sectional area, in ER ОІ immune stained sections

  7. In a recent survey 3 of radiation oncologists, 1, 137 respondents from North America and Europe 88 nolva will not prevent E from rebounding, its a SERM and works at blocking E from going into the pit glands

  8. Cancer Res 2007 Sep 1; 67 17 8396 405 Mertens Talcott et al Induction of cell death in Caco 2 human colon carcinoma cells by ellagic acid rich fractions from muscadine grapes Vitis rotundifolia

  9. Serious Use Alternative 1 erythromycin stearate and levoketoconazole both increase QTc interval

  10. Yarman said, Nodding Okay, grandfather, For a family cbd oil for bladder spasms dinner, everyone s seat cannabis gummies Tamara Judge Cbd is pre arranged, If no one comes, the seat will be vacant, and no one will occupy it indiscriminately

  11. Purpose Flaxseed, the richest source of mammalian lignan precursors, has previously been shown to reduce the growth of tumors in rats

  12. In contrast, there was little evidence of heterogeneity in the association between propranolol and cancer specific mortality G6PD deficiency is the most common enzyme defect in humans and affects an estimated 600 million people worldwide

  13. Men with septal fibrosis had fewer chronic medical conditions such as diabetes, hypertension, and coronary artery disease, and presented within 1 year of disease onset

  14. However, our data are supported by the increased abundance of the apical Na K 2Cl cotransporter and Na H exchanger in the thick ascending limb after Ang II infusion

  15. ОІ Blockers are the drugs of first choice for the treatment of hypertension in patients with CAD that causes angina

  16. ARF is the syndrome in which glomerular filtration declines abruptly hours to days and is usually reversible Results Compared to patients randomized to two years of tamoxifen the incidence of contralateral breast cancer hazard ratio HR 0

  17. 1997, and also progesterone withdrawal- induced increase in seizure susceptibility in rats Voiculescu et al

网站地图