yaoweibin / nginx_tcp_proxy_module

add the feature of tcp proxy with nginx, with health check and status monitor
http://yaoweibin.github.com/nginx_tcp_proxy_module
1.64k stars 366 forks source link

nginx: [emerg] "check_shm_size" directive is duplicate #173

Open developKmv opened 5 years ago

developKmv commented 5 years ago

Good afternoon.

I try to use check_shm_size directive and get a fail while check a config via nginx-t

nginx: [emerg] "check_shm_size" directive is duplicate in /etc/nginx/tcp.conf:2 nginx: configuration file /etc/nginx/nginx.conf test failed

/etc/nginx/tcp.conf
tcp { check_shm_size 128k; access_log /var/log/nginx/tcp_access.log; include /etc/nginx/tcp.conf.d/*; }

How to use check_shm_size ?