Start a http-server service

StoneHoo Lv4

Using this command to start the service

1
nohup http-server &

nohop will make the service is still running when quit the ssh session, the & at the end will make it run in the background

Usding this command to stop the service

1
pkill -f "http-server"

The service will run at port 8080 by default.

  • Title: Start a http-server service
  • Author: StoneHoo
  • Created at : 2023-12-20 11:54:52
  • Updated at : 2024-01-21 01:41:15
  • Link: https://www.ozak.ca/2023/12/20/Start-a-http-server-service/
  • License: This work is licensed under CC BY-NC-SA 4.0.
Comments