Blogger Information
Blog 5
fans 0
comment 0
visits 6573
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
thinkphp初体验---安装
啃腿牛的博客
Original
664 people have browsed it


前言:

作为一个Android程序猿,首次使用php不知道如何下手,什么框架,快捷插件等等都不知道。经过几天的学习,虽然是Java老手,很快看完基础,但是直接面对项目直接上手,还是不那么容易的。接下来我会把我在php网上学到的依次更新,告诉给大家(大神勿喷)。现在先从tp入手,一步步入手。


步骤

  •     打开https://www.phpcomposer.com/,点击入门指南,根据文档安装composer依赖工具。

  •     安装完毕后,返回首页点击中国镜像,进入后点击立即使用,修改composer的全局配置文件,

    命令:composer config -g repo.packagist composer https://packagist.phpcomposer.com

  •     安装tp,返回首页,点击安装包列表,搜索topthink,找到安装命令:composer create-project topthink/think (请切换到你要安装的目录,没有目录可以在命令后面加上   目录名称)

  •     安装完毕,配置站点域名。如下图:

    微信图片_20180312112515.png

    • 我的tp目录为tp5,网站目录指定到public下.其他可自行配置

    • 找到hosts文件(C:\Windows\System32\drivers\etc),添加本地地址。微信图片_20180312112921.png

      最后运行:www.zndroid.com 出现一下界面,说明安装完毕。

      微信图片_20180312113203.png

    总结

    简单安装,原理不懂,以后会依次解析出来!

    喝粥前,都要熬一熬!

Statement of this Website
The copyright of this blog article belongs to the blogger. Please specify the address when reprinting! If there is any infringement or violation of the law, please contact admin@php.cn Report processing!
All comments Speak rationally on civilized internet, please comply with News Comment Service Agreement
0 comments
Author's latest blog post
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!