zoukankan      html  css  js  c++  java
  • 升级nginx遇到的问题

    升级nginx遇到的问题
    /usr/bin/ld: warning: libcrypto.so.1.1, needed by /usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64/libssl.so, may conflict with libcrypto.so.10
    /usr/bin/ld: objs/src/core/nginx.o: undefined reference to symbol 'OpenSSL_version@@OPENSSL_1_1_0'
    //usr/local/openssl/lib/libcrypto.so.1.1: error adding symbols: DSO missing from command line
    collect2: error: ld returned 1 exit status
    make[1]: *** [objs/nginx] Error 1
    make[1]: Leaving directory `/server/tools/nginx-1.19.7'
    make: *** [build] Error 2
     
    解决1
    降低OpenSSL的版本
    下载解压编译安装
    prefix配置安装路径 :
     wget https://www.openssl.org/source/openssl-1.1.0o.tar.gz
    cd openssl-1.0.1o
    ./config --prefix=/opt/ldkjdata/nginx/openssl-1.0.1o
    make
    make install
    把新版本删除
     
    解决了1 出现问题2
    /usr/bin/ld: cannot find -lssl
    collect2: error: ld returned 1 exit status
    make[1]: *** [objs/nginx] Error 1
    make[1]: Leaving directory `/server/tools/nginx-1.19.7'
    make: *** [build] Error 2
     
    yum -y install openssl*     最终解决方法就是执行这条命令,折腾半天

  • 相关阅读:
    SVN 使用锁实现独占式签出
    浏览器console中加入jquery方便调试
    nuget安装说明
    sql server 索引优化
    Windwos Server 2016 远程桌面授权
    tomcat的安装与配置
    业务监控
    敏捷话管理团队
    一键搞定多服务器的更新
    迁移历史sql数据
  • 原文地址:https://www.cnblogs.com/xy51/p/14469862.html
Copyright © 2011-2022 走看看