因为在nginx的安装过程中指定了加载with-http_perl_module模块,官网:http://www.xuemiyun.com/en/docs/http/ngx_http_perl_module.html。
官网描述 :The ngx_http_perl_module module is used to implement location and variable handlers in Perl and insert Perl calls into SSI.This module is not built by default, it should be enabled with the --with-http_perl_module configuration parameter.This module requires Perl version 5.6.1 or higher. The C compiler should be compatible with the one used to build Perl.
要在nginx中使用perl模块,这时就需要安装perl了.也比较常用,所以在做系统的时候直接把这些装上。