System interaction - Does nginx have a module that can call system commands?
伊谢尔伦
伊谢尔伦 2017-05-16 17:30:12
0
1
592

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?

伊谢尔伦
伊谢尔伦

小伙看你根骨奇佳,潜力无限,来学PHP伐。

reply all (1)
我想大声告诉你

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

    Latest Downloads
    More>
    Web Effects
    Website Source Code
    Website Materials
    Front End Template
    About us Disclaimer Sitemap
    php.cn:Public welfare online PHP training,Help PHP learners grow quickly!