N
N
Nursultan I am2018-09-23 19:44:55
Programming languages
Nursultan I am, 2018-09-23 19:44:55

What programming language works without explicitly starting a process?

Good evening.
I worked with PHP, in order for the site to work, it is enough to install Nginx / PHP and that's it.
index.phpthrew in the root and the site works.
All other Python, Node languages ​​need to explicitly start the process index.py/jsand only then the site works.
I don’t understand something, are there any languages ​​similar to PHP that work out of the box and don’t need to be monitored when the server kills their process and the site needs to be restarted?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
sim3x, 2018-09-23
@sim3x

No
It's not enough just to install php - you need to configure fpm
Also, just throw it in the root - they don't do it
But in everything else:
nginx communicates with the process (uWSGI, ...) that starts the scripts:
with php, python - through wsgi, with node - via standalone, wsgi
But it doesn't start magically, but after setup
Learn how to do a normal deployment

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question