美文网首页
nginx 卸载后重新安装/etc/nginx配置文件消失+配置

nginx 卸载后重新安装/etc/nginx配置文件消失+配置

作者: Lee_7788 | 来源:发表于2020-06-01 12:31 被阅读0次

nginx
环境:Ubuntu18.04
报错:cannot open /etc/nginx/nginx.conf (No such file or directory)
解决方法:
sudo apt-get --purge remove nginx-common
sudo apt-get --purge remove nginx*
sudo apt-get autoremove
sudo apt-get install nginx

简易安装Nginx-rtmp-module
sudo apt-get install libnginx-mod-rtmp

ffmpeg
报错:[tcp @ 0x357230] Connection to tcp://localhost:8090 failed (Connection refused), trying next address
解决方法:
/etc/ffserver.conf 里
添加
ACL allow 127.0.0.1
ACL allow localhost
ACL allow 192.168.0.0 192.168.255.255

相关文章

网友评论

      本文标题:nginx 卸载后重新安装/etc/nginx配置文件消失+配置

      本文链接:https://www.haomeiwen.com/subject/qzbjzhtx.html