cómo terminar ng serve o firebase serve


He estado haciendo desarrollo web con angular2 y he estado usando angular2 y firebase para generar servidores locales. No he podido encontrar un comando similar a escribir quit cuando uso ionic para crear un servidor, así que tengo que cerrar la pestaña terminal cada vez. ¿Hay alguna manera de terminar el servidor y recuperar mi pestaña de terminal?

Gracias

Author: Frank van Puffelen, 2016-08-22

7 answers

Puede usar el siguiente comando para finalizar un proceso en curso:

ctrl + c

 112
Author: stijn.aerts,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2018-08-08 16:31:24

Intente usar ctrl + c dos veces para obtener la solicitud de finalización del trabajo por lotes.

 10
Author: Paulo Cunha,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2018-08-10 12:41:21

Si ctrl + c no funciona usar este:

ctrl +cambio+ c

A veces las personas cambian el comportamiento de ctrl + c para copiar/pegar, por lo que es posible que necesite esto.

Por supuesto, también debe asegurarse de que la ventana del terminal tenga el enfoque del teclado, ctrl + c no funcionará si la ventana del navegador tiene el enfoque.

 8
Author: Ben Taliadoros,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2018-08-10 12:33:18

ctrl + c O ctrl + Pause / Break

Ambos pedirán Terminar el trabajo por lotes, a continuación, pulse Y o y y haga clic en entrar.

 5
Author: Vishwa G,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2018-03-21 14:38:07

Basta con modificar algo en su editor de texto y recargar localhost. toda su conexión se perderá y tendrá la posibilidad de servir ng al nuevo proyecto en la consola.

 0
Author: Istvan Dembrovszky,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2017-08-27 04:59:34

Con Windows 10 / Powershell ctrl + c no funciona; Powershell intentó detener correctamente la aplicación.

Usó cmd normal y no tuvo problemas para detener el servicio ng con ctrl + c.

 0
Author: Witold Kaczurba,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2018-09-21 23:37:26

----Ctrl + c luego elija Y de la opción Y/N proporcionada.

 0
Author: Hedego,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2018-10-05 03:22:25