简体   繁体   English

Symfony - 应用程序在没有Apache服务器的情况下运行

[英]Symfony - Applications run without Apache server

I used to think that the internal web server which SYMFONY uses is part of APACHE server, which runs with the following command: 我以前认为SYMFONY使用的内部Web服务器是APACHE服务器的一部分,它使用以下命令运行:

$ php bin/console server:start

But as I turn off the Apache server on my PC (windows 10) the internal web server still producing without any problems, so is it that the internal web server has nothing to do with the Apache server or it's something unusual? 但是当我关闭我的PC上的Apache服务器(Windows 10)时,内部Web服务器仍然没有任何问题,因此内部Web服务器与Apache服务器无关或者它是不寻常的?

PHP provides a standalone built-in web server . PHP提供独立的内置Web服务器

You can try it by running php -S localhost:3000 -t web at the root directory of your project then browsing http://localhost:3000/app_dev.php . 您可以通过在项目的根目录下运行php -S localhost:3000 -t web然后浏览http://localhost:3000/app_dev.php来尝试它。

All commands that are part of the server:* namespace are related to the PHP built-in server . 作为server:* namespace的一部分的所有命令都与PHP内置服务器相关

For more informations, look at the command directly. 有关更多信息,请直接查看命令

它在服务器中使用PHP构建

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

相关问题 运行php作为没有Apache的服务器 - run php as server without Apache 是否可以在没有命令行的情况下在服务器上运行symfony 4应用程序? - Is it possible to run symfony 4 application on server without command line? 如何在不使用内置服务器的情况下运行Symfony应用程序? - How to run a Symfony app without using the built-in server? 在Apache服务器上配置Symfony 5应用 - Configuring Symfony 5 Application on Apache server 如何设置Apache以运行两个应用程序 - How to Set Up Apache to Run Two Applications Redis用于在Apache httpd上部署的symfony应用程序的会话处理 - Redis for session handling of symfony applications deployed on Apache httpd Apache 2.4.7虚拟主机上的多个php / symfony2应用程序 - Multiple php/symfony2 applications on apache 2.4.7 virtual host Apache服务器上的Symfony 3 //如果URL中没有app.php,邮递员POST请求无法正常工作 - Symfony 3 on Apache server // Postman POST request not working without app.php in url 使用 Symfony 和 Apache 在生产中运行 Mercure | HTTPS问题 - Run Mercure on production with Symfony and Apache | HTTPS problem 我可以运行没有apache服务器(没有wamp或xampp)的用php和mysql开发的网站吗? - Can i run my website which is developed in php and mysql without apache server (without wamp or xampp ))?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM