linux 下安装nginx经常出现 make[2]: Leaving directory `/usr/local/ssl' 或make[2]: Leaving directory `/usr/local/openssl' 找不到的情况解决方法

./configure: error: the HTTP cache module requires md5 functions
from OpenSSL library.  You can either disable the module by using
--without-http-cache option, or install the OpenSSL library into the system,
or build the OpenSSL library statically from the source with nginx by using
--with-http_ssl_module --with-openssl=<path> options.

出现该提示是因为ssl指定路径错误问题,openssl解压设置到nginx即可

 

  • 2
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 2
    评论
出现"/usr/local/nginx/sbin/nginx: No such file or directory"的错误可能是由于nginx文件路径不正确或者nginx文件不存在导致的。 根据引用和引用[2]的信息,错误消息中指出了无法到"/usr/local/nginx/sbin/nginx"这个文件或目录。这表明nginx的可执行文件路径不正确或者不存在。 解决这个问题的方法是检查nginx安装路径是否正确,并确保nginx的可执行文件存在于该路径下。如果路径不正确,可以尝试重新安装nginx并指定正确的安装路径。 另外,根据引用的信息,还可以尝试重新加载nginx.conf配置文件,指定正确的路径来启动nginx。这样可以确保nginx.conf文件中的配置正确加载。 总结起来,要解决"/usr/local/nginx/sbin/nginx: No such file or directory"错误,可以尝试以下步骤: 1. 检查nginx安装路径是否正确,并确保nginx的可执行文件存在于该路径下。 2. 如果路径不正确,可以尝试重新安装nginx并指定正确的安装路径。 3. 如果路径正确,可以尝试重新加载nginx.conf配置文件,确保配置正确加载。 请注意,以上方法仅供参考,具体解决方法可能因个人情况而异。<span class="em">1</span><span class="em">2</span><span class="em">3</span> #### 引用[.reference_title] - *1* *2* *3* [Nginx报错:nginx: [emerg] open() “/usr/local/nginx/../conf/nginx.conf“ failed (2: No such file or ...](https://blog.csdn.net/Dontla/article/details/120964159)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 100%"] [ .reference_list ]

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值