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

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

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。