Laravel Homestead 是否安装了 Nginx 或 Apache?

Does Laravel Homestead come with Nginx or Apache installed?

我是 Laravel 的新手,我喜欢在本地编码,所以我当然在使用 Homestead。 Homestead 使用 Nginx 还是 Apache?当我完成我的网站在线发送之前的一个问题。

Laravel 5.6 是最新的。我正在使用那个。我也在使用截至 2018 年 5 月 7 日的最新版本的 Homestead。

默认情况下,Homestead 与 Nginx 一起使用,但也可以使用 Apache。

您可以在此处阅读更多相关信息:https://laravel.com/docs/5.6/homestead :

Homestead uses the Nginx web server by default. However, it can install Apache if apache is specified as a site type. While both web servers can be installed at the same time, they cannot both be running at the same time. The flip shell command is available to ease the process of switching between web servers. The flip command automatically determines which web server is running, shuts it off, and then starts the other server. To use this command, SSH into your Homestead machine and run the command in your terminal:

flip