Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在 Linux Ubuntu 服务器上将 openssl 从 0.9.8 升级到 1.0.0。它安装在 /usr/local/ssl 中。Nginx 使用 openssl 0.9.8 编译。如何让 Nginx 链接到 openssl 的更新版本?
您可以重新编译 nginx,通过 --with-openssl=/usr/local/ssl 选项进行配置,或者您可以在启动 nginx 时使用 LD_LIBRARY_PATH,执行类似“LD_LIBRARY_PATH=/usr/local/ssl:$LD_LIBRARY_PATH /usr /sbin/nginx”。