zoukankan      html  css  js  c++  java
  • centos 安装 swoole_framework 框架

    composer require "matyhtf/swoole_framework"
    

     运行以上命令

    Using version ^1.20 for matyhtf/swoole_framework
    ./composer.json has been created
    Loading composer repositories with package information
    Updating dependencies (including require-dev)
    Package operations: 6 installs, 0 updates, 0 removals
      - Installing psr/log (1.0.2): Downloading (100%)         
        The Process class relies on proc_open, which is not available on your PHP installation.
        The archive may contain identical file names with different capitalization (which fails on case insensitive filesystems)
        Unzip with unzip command failed, falling back to ZipArchive class
      - Installing symfony/debug (v4.0.6): Downloading (100%)         
        The Process class relies on proc_open, which is not available on your PHP installation.
        The archive may contain identical file names with different capitalization (which fails on case insensitive filesystems)
        Unzip with unzip command failed, falling back to ZipArchive class
      - Installing symfony/polyfill-mbstring (v1.7.0): Downloading (100%)         
        The Process class relies on proc_open, which is not available on your PHP installation.
        The archive may contain identical file names with different capitalization (which fails on case insensitive filesystems)
        Unzip with unzip command failed, falling back to ZipArchive class
      - Installing symfony/console (v3.4.6): Downloading (100%)         
        The Process class relies on proc_open, which is not available on your PHP installation.
        The archive may contain identical file names with different capitalization (which fails on case insensitive filesystems)
        Unzip with unzip command failed, falling back to ZipArchive class
      - Installing filp/whoops (2.1.14): Downloading (100%)         
        The Process class relies on proc_open, which is not available on your PHP installation.
        The archive may contain identical file names with different capitalization (which fails on case insensitive filesystems)
        Unzip with unzip command failed, falling back to ZipArchive class
      - Installing matyhtf/swoole_framework (1.20.5): Downloading (100%)         
        The Process class relies on proc_open, which is not available on your PHP installation.
        The archive may contain identical file names with different capitalization (which fails on case insensitive filesystems)
        Unzip with unzip command failed, falling back to ZipArchive class
    symfony/console suggests installing symfony/event-dispatcher ()
    symfony/console suggests installing symfony/lock ()
    symfony/console suggests installing symfony/process ()
    filp/whoops suggests installing symfony/var-dumper (Pretty print complex values better with var-dumper available)
    filp/whoops suggests installing whoops/soap (Formats errors as SOAP responses)
    Writing lock file
    Generating autoload files
    

     ok 完成

    查看:

    [root@VM_27_0_centos swooletest]# ls
    composer.json  composer.lock  http_server.php  server.php  timer_tick.php  udp_server.php  vendor  ws_server.php
    

     可以看到 vendor 文件夹 至于为什么不直接看到 swoole_framework 框架 可以查看有关composer文档

    [root@VM_27_0_centos swooletest]# tree -L 3
    .
    |-- composer.json
    |-- composer.lock
    |-- http_server.php
    |-- server.php
    |-- timer_tick.php
    |-- udp_server.php
    |-- vendor
    |   |-- autoload.php
    |   |-- composer
    |   |   |-- autoload_classmap.php
    |   |   |-- autoload_files.php
    |   |   |-- autoload_namespaces.php
    |   |   |-- autoload_psr4.php
    |   |   |-- autoload_real.php
    |   |   |-- autoload_static.php
    |   |   |-- ClassLoader.php
    |   |   |-- installed.json
    |   |   `-- LICENSE
    |   |-- filp
    |   |   `-- whoops
    |   |-- matyhtf
    |   |   `-- swoole_framework
    |   |-- psr
    |   |   `-- log
    |   `-- symfony
    |       |-- console
    |       |-- debug
    |       `-- polyfill-mbstring
    `-- ws_server.php
    

     OK 有了 咱们把这个移动到访问目录,在这里说一下 大家也可以直接去git 上下载zip 包 解压https://github.com/matyhtf/framework

  • 相关阅读:
    分布式文件系统FastDFS详解
    DRF的@action装饰器
    django给视图添加缓存功能
    django自带的django.core.mail模块实现发邮件的功能
    ltsdangerous加密解密
    简单搞懂OAuth2.0
    django使用用户名或手机号码登录
    Spring --- 异常处理机制
    Javascript基于对象三大特征 -- 冒充对象
    SQL--相关子查询 与 非相关子查询
  • 原文地址:https://www.cnblogs.com/buxiangxin/p/8625049.html
Copyright © 2011-2022 走看看