由于应用程序版本,我有 3 个 laravel Homestead 盒子。我正在使用 MacOS。
- Laravel 家园 9.7.2
- Laravel 宅基地 12.2
- Laravel 宅基地 12.6
对于他们每个人,我都这样做:
v10.17
laravel/homestead 9.7.2
Welcome to Ubuntu 18.04.5 LTS (GNU/Linux 4.15.0-124-generic x86_64)
$ vagrant ssh
然后
$ mailhog
2021/09/28 23:10:17 Using in-memory storage
2021/09/28 23:10:17 [SMTP] Binding to address: 0.0.0.0:1025
[HTTP] Binding to address: 0.0.0.0:8025
2021/09/28 23:10:17 Serving under http://0.0.0.0:8025/
2021/09/28 23:10:17 [SMTP] Error listening on socket: listen tcp 0.0.0.0:1025: bind: address already in use
mailhog 是否在 http://localhost:8025/ 工作? 是的!
v12.2.0
laravel/宅基地 11.3.0
$ vagrant ssh
$ mailhog
2021/09/29 00:13:39 Using in-memory storage
2021/09/29 00:13:39 [SMTP] Binding to address: 0.0.0.0:1025
2021/09/29 00:13:39 [SMTP] Error listening on socket: listen tcp 0.0.0.0:1025: bind: address already in use
mailhog 是否在 http://localhost:8025/ 工作? 是的!
v12.6.0
- 宅基地 v12.6.0 | 感谢您使用宅基地
- 定居者 v11.4.0
Welcome to Ubuntu 20.04.2 LTS (GNU/Linux 5.4.0-73-generic x86_64)
* Homestead v12.6.0 | Thanks for using Homestead
* Settler v11.4.0
$ mailhog
2021/09/28 23:12:59 Using in-memory storage
2021/09/28 23:12:59 [SMTP] Binding to address: 0.0.0.0:1025
[HTTP] Binding to address: 0.0.0.0:8025
2021/09/28 23:12:59 [SMTP] Error listening on socket: listen tcp 0.0.0.0:1025: bind: address already in use
mailhog 是否在 http://localhost:8025/ 工作? 没有:(
为什么 mailhog 不能在我最新的 Laravel Homestead 中工作?
最后说明:就我而言,Mailhog 确实可以在 laravel/homestead box v11.3.0 中工作,但不能在 v11.4.0 上工作,为什么?