The website can be accessed normally after the go program file is deleted, so where is the executed code saved?

I deployed a beego project website under linux. When I updated the code, I didn"t stop the service and deleted the program files directly.

but I find that website access is normal.

is it possible that after starting the service, the system generates a temporary file to save the code in a location?
can someone please explain it?

May.22,2021

when running the program, the code is loaded into memory, and then the code is no longer read from the hard disk


Go CPP and other languages executable files are loaded into memory


in memory.
cannot be accessed if you want to end the process.

Menu