phpstorm 调试时浏览器显示The requested resource / was not found on this server

1.进入thinkphp项目的public 目录运行以下命令即可

root@jiang:/var/www/tp5# php -S localhost:8080 router.php 
PHP 7.2.2 Development Server started at Tue Jul 16 14:35:39 2019
Listening on http://localhost:8080
Document root is /var/www/tp5
Press Ctrl-C to quit.

 也可以直接制定项目路径运行

/usr/local/php/bin/php -S localhost:80 -t /var/www/tp5/public

 

posted @ 2019-07-16 14:39  江期玉  阅读(7469)  评论(0编辑  收藏  举报