简体   繁体   English

在远程服务器上安装 Symfony

[英]Install Symfony on distant server

I try to instal symfony on a distant ubuntu server (I'm connecting to it by ssh) so I install PHP7.2, LAMP, composer and symfony.我尝试在远程 ubuntu 服务器上安装 symfony(我通过 ssh 连接到它)所以我安装了 PHP7.2、LAMP、composer 和 symfony。

Next I launch symfony server using: php bin/console server:run and it says接下来我使用以下命令启动 symfony 服务器: php bin/console server:run它说

[OK] Server listening on http://127.0.0.1:8000

Where http://xx.xxx.xxx.xx/ is the adress of the server : When I go to the adress : http://xx.xxx.xxx.xx/phpmyadmin/index.php I get the phpmyadmin page When i go to the adress : http://xx.xxx.xxx.xx : I get my apache page.其中http://xx.xxx.xxx.xx/是服务器的地址:当我转到地址时: http://xx.xxx.xxx.xx/phpmyadmin/index.php我得到了 phpmyadmin 页面我去地址: http://xx.xxx.xxx.xx :我得到了我的 apache 页面。

But how do I go to my symfony page?但是我怎么去我的 symfony 页面呢? I try http://xx.xxx.xxx.xx:8000 but it's not working我尝试http://xx.xxx.xxx.xx:8000但它不起作用

I try to follow the information on this page: https://symfony.com/doc/current/setup/built_in_web_server.html我尝试遵循此页面上的信息: https://symfony.com/doc/current/setup/built_in_web_server.html : https://symfony.com/doc/current/setup/built_in_web_server.html

but when I do it I get the error :但是当我这样做时,我收到错误:

php bin/console server:start 34.254.242.93:8080

And I still get the same error.我仍然遇到同样的错误。

There are some resources available to deploy correctly your application:有一些资源可用于正确部署您的应用程序:

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

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