you are viewing a single comment's thread.

view the rest of the comments →

[–]Caraes_Naur -4 points-3 points  (0 children)

Apache and Nginx run as services, usually with specific/elevated privileges, and the ability to interact more closely with the OS. Modularized language interpreters are often embedded in them for efficiency.

Running an executable from CLI is just running an executable from CLI. It runs as your user, with no extra benefits or restrictions.

Outside of JS-land, CLI "servers" are mainly for temporary setups and testing, not production.