Home  >  Q&A  >  body text

System interaction - Does nginx have a module that can call system commands?

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?

伊谢尔伦伊谢尔伦2712 days ago702

reply all(1)I'll reply

  • 我想大声告诉你

    我想大声告诉你2017-05-16 17:32:12

    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

    reply
    0
  • Cancelreply