您的浏览器过于古老 & 陈旧。为了更好的访问体验, 请 升级你的浏览器
j0785 发布于2022年12月08日 18:13 最近更新于 2022年12月08日 18:22

原创 使用Docker安装Hyperf框架,创建项目composer create-project过程详解

1669 次浏览 读完需要≈ 6 分钟 Docker

内容目录

  • composer create-project hyperf/hyperf-skeleton

    时区输入Asia/Shanghai,其他的组件暂时都不安装,选择“n”即可,有需要另行安装就好。

    • What time zone do you want to setup ?

      [n] Default time zone for php.ini

      需要设置什么时区,输入n默认使用php.ini的时区配置,这里示例是Asia/Shanghai

      Asia/Shanghai

    • Do you want to use Database (MySQL Client) ?

      [y] yes

      [n] None of the above

      是否要使用数据库(MySQL客户端)?输入y/n,示例选择n

    • Do you want to use Redis Client ?

      [y] yes

      [n] None of the above

      是否要使用Redis客户端?输入y/n,示例选择n

    What time zone do you want to setup ?
      [n] Default time zone for php.ini
    Make your selection or type a time zone name, like Asia/Shanghai (n):
    Asia/Shanghai
    
      Do you want to use Database (MySQL Client) ?
      [y] yes
      [n] None of the above
      Make your selection or type a composer package name and version (yes): n
    
      Do you want to use Redis Client ?
      [y] yes
      [n] None of the above
      Make your selection or type a composer package name and version (yes): n
    
      Which RPC protocol do you want to use ?
      [1] JSON RPC with Service Governance
      [2] JSON RPC
      [3] gRPC
      [n] None of the above
      Make your selection or type a composer package name and version (n): n
    
      Which config center do you want to use ?
      [1] Apollo
      [2] Aliyun ACM
      [3] ETCD
      [4] Nacos
      [n] None of the above
      Make your selection or type a composer package name and version (n): n
    
      Do you want to use hyperf/constants component ?
      [y] yes
      [n] None of the above
      Make your selection (n): n
    
      Do you want to use hyperf/async-queue component ? (A simple redis queue component)
      [y] yes
      [n] None of the above
      Make your selection or type a composer package name and version (n): n
    
      Do you want to use hyperf/amqp component ?
      [y] yes
      [n] None of the above
      Make your selection or type a composer package name and version (n): n
    
      Do you want to use hyperf/model-cache component ?
      [y] yes
      [n] None of the above
      Make your selection or type a composer package name and version (n): n
    
      Do you want to use hyperf/elasticsearch component ?
      [y] yes
      [n] None of the above
      Make your selection or type a composer package name and version (n): n
    
      Do you want to use hyperf/tracer component ? (An open tracing protocol component, adapte with Zipkin etc.)
      [y] yes
      [n] None of the above
      Make your selection or type a composer package name and version (n): n
  • CodePlayer技术交流群1
  • CodePlayer技术交流群2

0 条评论

撰写评论