1、在配置文件中配置server_tokens off;即可隐藏版本信息 2、修改或者混淆版本信息 例如:openresty就修改bundle/nginx-1.15.8/src/core/nginx.h