windows 子系统 Ubuntu18.04 安装 swoole
2021-04-09 09:26
标签:data- pre packagist ubunt repo load perl code upgrade 首先安装composer并改为国内镜像 1.sudo apt-get install composer 安装环境 1. sudo apt-get install nginx-light 2. sudo 3.sudo apt install php-pear 4.sudo 5. sudo composer create-project easyswoole/app easyswoole 一些问题: 如果出现 sh: phpize: command not found 可以尝试 如果出现 No releases available for package "pecl.php.net/swoole" 如果:Failed to download nikic/fast-route from dist: The zip extension and unzip command are both missing, skipping. windows 子系统 Ubuntu18.04 安装 swoole 标签:data- pre packagist ubunt repo load perl code upgrade 原文地址:https://www.cnblogs.com/qiapin/p/wsl-php-swoole-install.htmlcomposer config -g repo.packagist composer https://packagist.phpcomposer.com
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
pecl install swoole
echo ‘extension=swoole.so‘ >> /etc/php/7.0/mods-available/swoole.ini
cd /etc/php/7.0/cli/conf.d/ && ln -s ../../mods-available/swoole.ini 20-swoole.ini
cd /etc/php/7.0/fpm/conf.d/ && ln -s ../../mods-available/swoole.ini 20-swoole.ini
php easyswoole start
daemonize
选项config.h
关闭 HAVE_SIGNALFD
sudo apt-get install php-dev
install failed 尝试:pear clear-cache
pear update-channels
pear upgrade
sudo apt-get install php-zip
文章标题:windows 子系统 Ubuntu18.04 安装 swoole
文章链接:http://soscw.com/index.php/essay/73277.html