1.thinkphp 5.0 能够经过下载,git 等方式安装,我这里采用下载完整版安装,解压到一个目录下就好了php
2.配置 web 服务器配置文件,我是用的是 nginx(nginx/1.9.15)nginx
server { listen 8090; server_name localhost 172.26.62.185; root /Users/staff/Documents/study/tp5; //thinkphp解压目录 index index.php; location ~ \.php$ { fastcgi_pass 127.0.0.1:9000; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; include fastcgi_params; } }
而后就能够经过http://172.26.62.185:8090/public/ 或者 http://172.26.62.185:8090/public/index.php 或者 http://localhost:8090/public/ 访问,若是访问成功会出现:git
ThinkPHP V5web