how to end ng serve or firebase serve

后端 未结 13 1980
渐次进展
渐次进展 2021-01-29 23:05

I\'ve been doing web development with Angular2 and have been using both Angular2 and Firebase to run local servers. I haven\'t been able to find a command similar to typing quit

相关标签:
13条回答
  • 2021-01-29 23:45

    You can use the following command to end an ongoing process:

    ctrl + c

    0 讨论(0)
  • 2021-01-29 23:49

    Try using ctrl + c twice to get the prompt for terminating the batch job.

    0 讨论(0)
  • 2021-01-29 23:49

    I was able to stop via this on Windows for Angular 8:

    Step 1: Find 4200 process

    netstat -ano | findstr :4200
    

    Step 2: Kill that process:

    taskkill /PID <PID> /F
    

    0 讨论(0)
  • 2021-01-29 23:52

    Can use

    killall -9 
    

    The killall command can be used to send a signal to a particular process by using its name. It means if you have five versions of the same program running, the killall command will kill all five.

    Or you can use

    pgrep "ng serve"
    

    which will find the process id of ng and then you can use following command.

    kill -9 <process_id>
    
    0 讨论(0)
  • 2021-01-29 23:55

    ----Ctrl + c then choose Y from the Y/N option provided.

    0 讨论(0)
  • 2021-01-29 23:56

    Exit the IDE and boots up IDE again , try it.

    0 讨论(0)
提交回复
热议问题