thinkphp5.0 - 安装
1.thinkphp 5.0 可以通过下载,git 等方式安装,我这里采用下载完整版安装,解压到一个目录下就行了
2.配置 web 服务器配置文件,我是用的是 nginx(nginx/1.9.15)
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/ 访问,如果访问成功会出现:
:)
ThinkPHP V5