How do I get my Golang web server to run in the background?

前端 未结 5 966
我在风中等你
我在风中等你 2020-12-22 22:29

I have recently completed the Wiki web development tutorial (http://golang.org/doc/articles/wiki/). I had tons of fun and I would like to experiment more with the n

5条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-22 23:12

    After you press ctrl+z (putting the current task to sleep) you can run the command bg in the terminal (stands for background) to let the latest task continue running in the background.

    When you need to, run fg to get back to the task.

    To get the same result, you can add to your command & at the end to start it in the background.

提交回复
热议问题