zoukankan      html  css  js  c++  java
  • Thinkphp5学习 Windows下的安装

    方法一、通过官方网站直接下载:

    (1)下载地址:http://www.thinkphp.cn/down.html;

    (2)下载后,解压到web目录下;

    (3)访问:http://localhost/目录名字/public/ 

    (4)看到ThinkPHP V5的界面即安装成功。

     

    方法二:

    通过composer命令安装,

    (1)使用管理员身份执行命令行;

    (2)切换到web目录下,执行命令:composer create-project thinktop/tp=5.0.*  tp5 --prefer-dist

    (3)看到web目录里多了个tp5的目录,访问http://localhost/tp5/public/; 

    (4)看到ThinkPHP V5的界面即安装成功。

    注意:命令中的tp5是目录名字,可以修改。

    方法三、使用git安装:

    (1)再web目录下,新建一个项目目录tp5,进入目录,右键选择git bash here,弹出git的命令行窗口;

    (2)执行命令,克隆下载应用项目仓库:git clone https://github.com/top-think/think ./

    如果这个时候访问地址http://localhost/tp5/public/ 会报一下错误:

    Warning: require(C:wamp64wwwframeTp_5 p5_git_codingpublic/../thinkphp/base.php): failed to open stream: No such file or directory in C:wamp64wwwframeTp_5 p5_git_codingpublicindex.php on line 16

    Fatal error: require(): Failed opening required 'C:wamp64wwwframeTp_5 p5_git_codingpublic/../thinkphp/base.php' (include_path='.;C:phppear') in C:wamp64wwwframeTp_5 p5_git_codingpublicindex.php on line 16

    (3)克隆核心框架仓库:git clone https://github.com/top-think/framework thinkphp

    (4)访问http://localhost/tp5/public/ ,看到ThinkPHP V5的界面即安装成功。

    以上方法根据官方文档练习操作。

  • 相关阅读:
    Mysql基础知识:操作数据库
    Mysql基础知识:数据类型
    Struts2下载与使用
    Open Live Writer安装使用
    博客园界面设置
    (3)break、continue
    (2)基础语法
    查找五:散列表查找
    查找三:平衡二叉树
    centos 安装 masscan
  • 原文地址:https://www.cnblogs.com/gyfluck/p/9115266.html
Copyright © 2011-2022 走看看