N
N
ne-programmist2021-12-15 15:03:02
Command line
ne-programmist, 2021-12-15 15:03:02

How to continue working in the terminal in the same window where the server is running (for example php artisan serve)?

I once saw how a friend pressed some hot keys and was able to continue working in the terminal in the same window where the server was launched (after php artisan serve), but not in the sense of stopping with Ctrl + C, but continued.

1.Tell me what these hotkeys are
2.And when will the server stop working after the terminal is closed or the PC is rebooted?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
pfg21, 2021-12-15
@ne-programmist

https://losst.ru/kak-zapustit-protsess-v-fone-linux The
first point is fully described there.
2. when the terminal is closed, all processes associated with it will be shot.
exits so that they don't get shot
1. untie the process from the session via nohup - extremely inconvenient, use only when you know exactly what you want.
2. register this application as a daemon in the initialization system - it will work completely regardless of terminal sessions. at the same time, the daemon can be turned on, turned off, set to autoload operating systems, regardless of the user's login, etc.
3. use tmux terminal session servers. convenient for long but one-time jobs - long compilation for example. disconnected from the terminal session at work, came home, connected to the session from home, looked at what was happening and went on :)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question