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