如何同时运行多个Laravel项目? [英] How to run multiple Laravel projects at same time?

查看:190
本文介绍了如何同时运行多个Laravel项目?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

要运行一个laravel项目,我们只需键入"php artisan serve".它将在端口8000上可用.

To run one laravel project we only need to type "php artisan serve". and it will be available on port 8000.

但是有时候我们需要同时运行多个项目.我们该怎么做?

But sometimes we need to run multiple projects at the same time. How can we do this?

推荐答案

tl; dr 每个TCP端口不能同时具有多个侦听器.如果您需要更多的Web服务器实例,请尝试其他端口:

tl;dr one cannot have more than one listener per TCP port at the same time. If you need more web server instances try another port:

php artisan serve --port=8001

然后转到 http://localhost:8001

参考:

这篇关于如何同时运行多个Laravel项目?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆