我的环境是ubuntu16.04
之前是直接用 sudo apt-get install nginx 安装的
因为推流的时候不稳定,对比同事的电脑后确定是nginx的问题,于是直接卸载了,卸载是使用的 sudo apt-get remove nginx*
然后再用 sudo apt-get install nginx 安装,安装成功后去启动就出现了找不到文件的问题
我在/usr/local/下也没找到nginx
求助度娘:
sudo apt-get --purge remove nginx
sudo apt-get autoremove
dpkg --get- selections | grep nginx
sudo apt-get --purge remove nginx-common
sudo apt-get install nginx
成功解决
参考
http://www.2cto.com/os/201506/404306.html
https://blog.csdn.net/haojuntu/article/details/89149889