Start a http-server service

StoneHoo Lv4

Using this command to start the service

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

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-06-22 23:38:41
  • Link:
  • License: This work is licensed under CC BY-NC-SA 4.0.