文章 2024-01-09 来自:开发者社区

nginx: [emerg] unknown directive “rtmp“ in ./../conf/nginx.conf:16

最近在编译运行nginx是报错:nginx: [emerg] unknown directive “rtmp” in ./…/conf/nginx.conf:16,看着是nginx不认识rtmp,缺少rtmp模块。需要重新编译安装nginx。以下为解决步骤:wget https://github.com/arut/nginx-rtmp-module/archive/master.zip //下载....

nginx: [emerg] unknown directive “rtmp“ in ./../conf/nginx.conf:16
文章 2023-08-01 来自:开发者社区

nginx: [emerg] duplicate location “/“ in /usr/local/etc/nginx/nginx.conf:142

启动 Nginx 的时候报这个错,是因为在同一个 server 中重复定义了 location / 匹配协议,需要删除一个。后面的 :142 就是行号,找到这一行去检查,然后注释或者合并为一个即可。

nginx: [emerg] duplicate location “/“ in /usr/local/etc/nginx/nginx.conf:142
文章 2022-02-16 来自:开发者社区

nginx: [emerg] getpwnam("nginx") failed in /usr/local/nginx/conf/nginx.conf:2

启动nginx报错:         nginx: [emerg] getpwnam("nginx") failed in /usr/local/nginx/conf/nginx.conf:2 是因为配制文件中使用的启动账户在系统中并没有找到 解决办法: useradd name  本文转自 xinsir99...

本页面内关键词为智能算法引擎基于机器学习所生成,如有任何问题,可在页面下方点击"联系我们"与我们沟通。

产品推荐

{"cardStyle":"productCardStyle","productCode":"aliyun","productCardInfo":{"productTitle":"部署Nginx并通过Ingress暴露和监控服务","productDescription":"在阿里云容器服务(后简称ACK)集群中通过YAML文件快速部署一个Nginx应用并通过Nginx Ingress暴露和监控服务,结合使用ACK、日志服务、专有网络搭建业务部署运维方案。","productContentLink":"https://www.aliyun.com/solution/tech-solution/nginx_ingress","isDisplayProductIcon":true,"productButton1":{"productButtonText":"方案详情","productButtonLink":"https://www.aliyun.com/solution/tech-solution/nginx_ingress"},"productButton2":{"productButtonText":"一键部署","productButtonLink":"https://help.aliyun.com/document_detail/2400022.html"},"productButton3":{"productButtonText":"查看更多技术解决方案","productButtonLink":"https://www.aliyun.com/solution/tech-solution/"},"productPromotionInfoBlock":[{"$id":"0","productPromotionGroupingTitle":"解决方案推荐","productPromotionInfoFirstText":"MSE实现全链路灰度","productPromotionInfoFirstLink":"https://www.aliyun.com/solution/tech-solution/iflgbomse","productPromotionInfoSecondText":"云架构必修课:云上高可用架构","productPromotionInfoSecondLink":"https://www.aliyun.com/solution/tech-solution/hablog"}],"isOfficialLogo":false},"activityCardInfo":{"activityTitle":"","activityDescription":"","cardContentBackgroundMode":"LightMode","activityContentBackgroundImageLink":"","activityCardBottomInfoSelect":"activityPromotionInfoBlock"}}