How to stop code-server #6065
-
I have installed code-server using this method on Ubuntu:
I can simple code-server using:
How can I stop code-server completely? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
netstat -ap | grep 1200 |
Beta Was this translation helpful? Give feedback.
-
If you are running plain If you can, run code-server with systemd ( |
Beta Was this translation helpful? Give feedback.
If you are running plain
code-server
then you couldCtrl+c
the command. If you run it in the background manually like withcode-server &
then you could kill it by finding the PID viaps
ornetstat
and runkill <pid>
or match by name like withpkill code-server
.If you can, run code-server with systemd (
systemctl start code-server
). Then you can let systemd manage the lifecycle and you can runsystemctl stop code-server
.