当前位置 博文首页 > fareast_mzh的博客:Failed to clone https://github.com/swoftl

    fareast_mzh的博客:Failed to clone https://github.com/swoftl

    作者:[db:作者] 时间:2021-08-13 15:55

    https://www.swoft.org/documents/v2/dev-tools/swoft-cli/

    打开 composer.json

    https:// 改为git://

    composer config -g secure-http false

    添加config:

    ? "config": {
    ? ? ? "secure-http": false,
    ? ? ? "github-protocols": ["git","ssh","https"],
    ? ? ? "disable-tls": true,
    ? }

    再composer install 完成

    composer 配置文档:

    https://getcomposer.org/doc/06-config.md#secure-http?

    ?

    ===========? 分隔线 =============

    swoftcli.phar复制到? /usr/local/bin/swoftcli

    php /usr/local/bin/swoftcli run -c http:start -b bin/swoft

    curl -i http://127.0.0.1:18306/demo

    本机可以访问,外面不能访问

    sudo firewall-cmd --add-port=18306/tcp --permanent

    sudo firewall-cmd --reload

    检查主机 安全组规则

    ?

    ?

    cs