简体   繁体   English

如何在远程服务器上配置 Laravel

[英]How to configure Laravel on remote server

I'm new on Laravel.我是 Laravel 的新手。 Installed laravel on my remote server ubuntu14.04.在我的远程服务器 ubuntu14.04 上安装了 laravel。 I create a project on /www/html as blog.我在 /www/html 上创建了一个项目作为博客。 Then run然后运行

php artisan serve --host=10.x.x.12 --port=8010.
#Laravel development server started: <http://10.x.x.12:8010>

Its ok .没关系 。 I can access laravel from my local windows with that link.我可以使用该链接从本地窗口访问 laravel。

The problem is I use putty for remote access.问题是我使用腻子进行远程访问。 When I closed putty, I can't access anymore 10.xx12:8010.当我关闭 putty 时,我无法再访问 10.xx12:8010。

How to use laravel server continuously from remote server.如何从远程服务器连续使用 Laravel 服务器。

使用nohup ( man page ),这样程序在终端会话结束时就不会退出。

nohup php artisan serve --host=10.x.x.12 --port=8010 &

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM