webman 按照示例无法在浏览器访问

andyzu

首先 PHP 7.4 环境都正常,phpmyadmin 都能正常运行。
1、按照文档 git clone https://github.com/walkor/webman
2、composer install 安装正常,也没有任何错误信息。
3、php start.php start -d
截图

4、在 app/Controller 目录下建立 User.php 文件。
截图
5、然后再浏览器里输入:http://127.0.0.1:8787/user/hello?name=tom
无法访问,改为:http://localhost:8787/user/hello?name=tom 也无法访问。
截图

用的是 MAMP pro 5.7

1954 3 0
3个回答

不败少龙

修改了要重启webman

nitron

-d是daemon模式,修改了要重启

andyzu

追问,webman 有没有创建 模板controller 的命令行?

  • 暂无评论
年代过于久远,无法发表回答
🔝