windows 安装 wsl 跑 swoole swoft
发表于|更新于|php
打开wsl
控制面板打开linux子系统
安装子系统
在cmd里执行bash或者wsl即可,cmd提示需要安装,可以去商店安装,如果把删除了可以执行
1 | lxrun /install /y |
他会自己下载
安装目录
1 | C:\Users\YourName\AppData\Local\lxss\ |
安装swoole
从官网下载swoole的二进制包,然后执行加压
1 | tar -Jxf swoole-4.3.0.tar.xz |
运行swoft
使用完整的目录即可
1 | /home/bin/php /mnt/c/php/www/swoft/bin/swoft start |
文章作者: developer
文章链接: http://example.com/2019/03/07/windows%20%E5%AE%89%E8%A3%85%20wsl%20%E8%B7%91%20swoole%20swoft%20/
版权声明: 本博客所有文章除特别声明外,均采用 CC BY-NC-SA 4.0 许可协议。转载请注明来源 Dev!
相关推荐
2018-05-05
windows BashOnWindows 安装 使用 swoole sftp
开启win10 BashOnWindows安装1234567891011121314151617# 先升级apt-get ,不然很多包会找不到sudo apt-get update# 所有其他你需要的扩展sudo apt-get install php7.0 php7.0-curl php7.0-gd php7.0-gmp php7.0-json php7.0-mysql php7.0-opcache php7.0-readline php7.0-sqlite3 php7.0-tidy php7.0-xml php7.0-bcmath php7.0-bz2 php7.0-intl php7.0-mbstring php7.0-mcrypt php7.0-soap php7.0-xsl php7.0-zip # pecl 需要 php-pearsudo apt install php-pear# 可能提示 phpize 错误,需要 php-devpecl install swoole# 按照提示安装 php7.0-devsudo apt install php7.0-dev#...
2019-03-04
thinkphp beego swoft yaf 性能测试 压力测试 php go swoole 速度对比 helloworld
1ab -n 10000 -c 200 测试机为腾讯云1核1G普通云硬盘,如果用ssd的话php成绩会有所提升 输出内容为时间戳 beego swoft的性能都强的不得了,在同一级别,裸跑性能都逼近nginx处理静态文件nginx转发损耗很大,由于nginx转发会导致thinkphp,swoft,beego的性能几乎一样。所以有可能的话还是不要在这些框架外套个nginx了swoft+nginx:内存无波动,CPU占用81%swoft无nginx:内存无波动,CPU占用34% thinkphp+nginx41212345678910111213141516171819202122232425262728Concurrency Level: 200Time taken for tests: 24.256 secondsComplete requests: 10000Failed requests: 0Total transferred: 1940000 bytesHTML transferred: 190000 by...
2019-03-15
swoft 中间件 基本使用
swoft中间件在请求到达控制器之前拦截请求,主要有两种写法 1. 不合法请求12// 直接返回response对象return response() 2. 合法请求12$response = $handler->handle($request);return $response;
2019-03-05
swoole 协程异步 带来的性能提升 压力测试
均访问同一cdn数据,模拟访问远程接口的情况 协程异步2009qps同步阻塞432qps协程压测12345678910111213141516171819202122232425262728Concurrency Level: 200Time taken for tests: 0.498 secondsComplete requests: 1000Failed requests: 0Total transferred: 209000 bytesHTML transferred: 19000 bytesRequests per second: 2009.49 [#/sec] (mean)Time per request: 99.528 [ms] (mean)Time per request: 0.498 [ms] (mean, across all concurrent requests)Transfer rate: 410.14 [Kbytes/sec] receive...
2017-08-24
windows10 php7 imagick 拓展安装 ImageMagick
问题php大神们做出这个imagick拓展,但是实在是做的变态,你在网上基本上随便搜都是不知道怎么装,php官网里,一大群老外也看不懂这玩意怎么装,主要原因在于,php版本庞杂,还有x86 x64 nts ts,对应的imagick版本也不一定相同,imagick第一道关还算容易,总还是有办法装上,imagick对应的ImageMagick程序又不一定了,又出现庞杂的版本,即使官网给出的依赖版本也没有效果,同时也没有官方任何地方给出一个合理的安装方法,真是变态从中文到英文,从php文档到百度资料 使用环境虽然抱怨php大神,但是我仍然相信这些恼人的问题是由于系统环境造成的,所以一下方法只对应这里所列的环境,其他环境可以做个参考 1234windows10 x64php7.0.12 NTSApache/2.4.23 (Win32) OpenSSL/1.0.2j mod_fcgid/2.3.9phpStudy2016 正确方法1 下载拓展下载地址一: http://windows.php.net/downloads/pecl/releases/imagick/下载地址二: http...
2018-08-23
apache windows 无法开启 https 错误记录
最近在本地测试时候发现Apache 虚拟配置的位置该表会导致,https无法访问 正确配置 两个网站都可以访问1234567891011121314151617181920212223242526272829303132333435363738<VirtualHost *:443> DocumentRoot "C:\php\www\h5\api" ServerName wx.iguojin.com ServerAlias SSLEngine on #SSLProtocol TLSv1 TLSv1.1 TLSv1.2 SSLProtocol all -SSLv2 -SSLv3 #SSLCipherSuite HIGH:MEDIUM:!aNULL:!MD5 SSLCipherSuite AESGCM:ALL:!DH:!EXPORT:!RC4:+HIGH:!MEDIUM:!LOW:!aNULL:!eNULL SSLCertificateFile "C:/php/Apache/conf/ss...
公告
This is my Blog