Nginx 获取版本和配置信息

Nginx -V 输出到stderr

src/core/nginx.c

src/core/ngx_log.h

shell ps获取版本信息

#nginx -v 2>&1| awk -F":" '{print $2}' | tr -d " "
nginx/1.6.3

shell ps获取nginx版本和配置信息

nginx -V 2>&1 ##输出到stdout,然后使用管道获取相关信息
posted on 2016-05-19 10:45  漫步的影子  阅读(889)  评论(0编辑  收藏  举报