Recently, I want to use Nginx to make a simple system management interface, which is to call system commands through RPC. Then return the system output (both error and standard output).
If you use PHP or Perl, I know you can use their system interactive interface, but I don't want to introduce a script. Is there a direct way to call Nginx?
Or is there any Nginx module that supports this kind of system interaction?
There is still RPC or queue. Direct access to nginx permissions is a problem. You can't use root to run the httpd service or use www-data to execute system commands, right? Moreover, if the coroutine is not done well in time-consuming operations, it is easy to block the entire nginx