首次运行thinkphp

将tp目录下的.example.env的文件重命名为.env

image.png

将.env文件中的数据库信息修改,将运行目录设置为tp目录下的public文件夹.

设置伪静态信息

image.png

运行成功截图

image.png

文章导航