本人在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启动好,并且能正常用来配置路由和负载均衡。
你(1)里面安装nginx成功并能使用。
(2)里面又通过make的方式去做,是验证第二种安装方式吗?
浏览器输入127.0.0.1,默认端口就是80