问题遇到的现象和发生背景
本人在ubuntu上安装nginx的过程记录在https://blog.csdn.net/heming20122012/article/details/131640983
在执行make和make install命令都报错了,报错内容如下:
src/os/unix/ngx_user.c: In function ‘ngx_libc_crypt’:
src/os/unix/ngx_user.c:26:7: error: ‘struct crypt_data’ has no member named ‘current_salt’
26 | cd.current_salt[0] = ~salt[0];
| ^
make[1]: *** [objs/Makefile:781: objs/src/os/unix/ngx_user.o] Error 1
make[1]: Leaving directory '/usr/local/nginx-1.13.7'
make: *** [Makefile:11: install] Error 2
后面改了nginx的配置文件的端口,怎么改都改不好,怀疑是执行make和make install命令都报错了导致nginx没安装好。有人指导解决一下我的问题吗?
操作环境、软件版本等信息
操作环境:ubuntu
软件版本:nginx
尝试过的解决方法
找出所有的nginx.conf文件,去修改端口,然后重启nginx,都不行。
我想要达到的结果
nginx启动好,并且能正常用来配置路由和负载均衡。