4
4
4utka_pyan2017-11-27 00:51:25
go
4utka_pyan, 2017-11-27 00:51:25

How to start a web server on go?

I made a web server, it is launched from the console with a command ./server, after that it listens to the port and responds to requests. Problem: the console at this time shows the execution of the command, if I interrupt it and press Ctrl + C to then type exit and exit the server will also stop.
How to start the server and keep the ability to work further?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexander Semchenko, 2017-11-27
@4utka_pyan

./server &

R
RidgeA, 2017-11-27
@RidgeA

run as system service

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question