nginx 1.11.12 + nginScript = failed to restart nginx server
George
nginx-forum at forum.nginx.org
Sat Mar 25 10:20:07 UTC 2017
Nginx compiles successfully with nginScript as a dynamic module.
nginx -V
nginx version: nginx/1.11.12
built by clang 3.4.2 (tags/RELEASE_34/dot2-final)
built with LibreSSL 2.4.5
TLS SNI support enabled
configure arguments: --with-ld-opt='-lrt -ljemalloc -Wl,-z,relro
-Wl,-rpath,/usr/local/lib' --with-cc-opt='-m64 -mtune=native -mfpmath=sse -g
-O3 -fstack-protector -fuse-ld=gold --param=ssp-buffer-size=4 -Wformat
-Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wno-sign-compare
-Wno-string-plus-int -Wno-deprecated-declarations -Wno-unused-parameter
-Wno-unused-const-variable -Wno-conditional-uninitialized
-Wno-mismatched-tags -Wno-sometimes-uninitialized -Wno-parentheses-equality
-Wno-tautological-compare -Wno-self-assign -Wno-deprecated-register
-Wno-deprecated -Wno-invalid-source-encoding -Wno-pointer-sign
-Wno-parentheses -Wno-enum-conversion
-Wno-c++11-compat-deprecated-writable-strings -Wno-write-strings
-gsplit-dwarf' --sbin-path=/usr/local/sbin/nginx
--conf-path=/usr/local/nginx/conf/nginx.conf --with-http_stub_status_module
--with-http_secure_link_module --with-libatomic
--with-http_gzip_static_module --add-dynamic-module=../ngx_brotli
--with-http_sub_module --with-http_addition_module
--with-http_image_filter_module=dynamic --with-http_geoip_module
--add-dynamic-module=../njs/nginx --with-stream_geoip_module
--with-stream_realip_module --with-stream_ssl_preread_module --with-threads
--with-stream=dynamic --with-stream_ssl_module --with-http_realip_module
--add-dynamic-module=../ngx-fancyindex-0.4.0
--add-module=../ngx_cache_purge-2.3 --add-module=../ngx_devel_kit-0.3.0
--add-module=../set-misc-nginx-module-0.31
--add-module=../echo-nginx-module-0.60
--add-module=../redis2-nginx-module-0.13
--add-module=../ngx_http_redis-0.3.7 --add-module=../memc-nginx-module-0.17
--add-module=../srcache-nginx-module-0.31
--add-module=../headers-more-nginx-module-0.32 --with-pcre=../pcre-8.40
--with-pcre-jit --with-zlib=../zlib-1.2.11 --with-http_ssl_module
--with-http_v2_module --with-openssl=../libressl-2.4.5
But I've tried both the example nginScript configurations at
https://www.nginx.com/blog/introduction-nginscript/ as well as example
posted at http://nginx.org/en/docs/http/ngx_http_js_module.html.
But both fail to restart nginx server with no indication as to why
https://community.centminmod.com/posts/46868/
nginx -t
nginx: configuration file /usr/local/nginx/conf/nginx.conf test failed
is all I see nothing else ?
loaded nginScript module as a dynamic module via include file
/usr/local/nginx/conf/dynamic-modules.conf in nginx.conf
cat /usr/local/nginx/conf/dynamic-modules.conf
load_module "modules/ngx_http_image_filter_module.so";
load_module "modules/ngx_http_fancyindex_module.so";
load_module "modules/ngx_http_brotli_filter_module.so";
load_module "modules/ngx_http_brotli_static_module.so";
load_module "modules/ngx_stream_module.so";
load_module "modules/ngx_http_js_module.so";
load_module "modules/ngx_stream_js_module.so";
nginx.conf excerpt
user nginx nginx;
worker_processes 4;
worker_priority -10;
worker_rlimit_nofile 260000;
timer_resolution 100ms;
pcre_jit on;
include /usr/local/nginx/conf/dynamic-modules.conf;
pid logs/nginx.pid;
events {
worker_connections 10000;
accept_mutex off;
accept_mutex_delay 200ms;
use epoll;
#multi_accept on;
}
http {
Posted at Nginx Forum: https://forum.nginx.org/read.php?2,273183,273183#msg-273183
More information about the nginx
mailing list