nginx安装error: ‘struct crypt_data’ has no member named ‘current_salt’ cd.current_salt[0] = ~salt[0];

nginx安装error: ‘struct crypt_data’ has no member named ‘current_salt’ cd.current_salt[0] = ~salt[0];
解决办法如下:强调!!!必须同时配置!!!
1、删/usr/src/nginx-1.12.2/objs/Makefile文件中的“ -Werror”
在这里插入图片描述

2、注释掉/usr/local/nginx/nginx-1.13.7/src/os/unix/nginx_user.c第26行的"cd.current_salt[0] = ~salt[0];"
在这里插入图片描述

猜你喜欢

转载自blog.csdn.net/weixin_44999830/article/details/129417946