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...
2018-01-18
redis下载 配置
windows版https://github.com/MicrosoftArchive/redis/releases 绑定多个ipbind 127.0.0.1 172.16.1.192
2020-09-30
docker php 安装 pqsql
12345678910FROM php:7.2.2-fpm# 国内源RUN apt-get cleanRUN apt-get update RUN apt-get install -y libpq-devRUN docker-php-ext-configure pgsql -with-pgsql=/usr/local/pgsqlRUN docker-php-ext-install pdoRUN docker-php-ext-install pdo_pgsql
2019-03-25
swoft 1.0 自定义 redis 池
定义Redis池在app/config/beans/base.php增加如下配置 1234'cacheRedis' => [ 'class' => \Swoft\Redis\Redis::class, 'poolName' => 'cacheRedis',], 定义Redis池配置12345678910111213141516171819202122232425namespace App\Pool\Config;use Swoft\Bean\Annotation\Bean;use Swoft\Bean\Annotation\Value;use Swoft\Redis\Pool\Config\RedisPoolConfig;/** * CacheRedisPoolConfig * * @Bean() */class CacheRedisPoolConfig extends RedisPoolConfig{ /...
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...
公告
This is my Blog