multiple nginx installation on same server how to set one as default

I'm configuring an nginx server to stream using rtmp.

As I just found out I have different nginx installations.

One is located on /etc/nginx (the old one, and the one that is running by default), and other one it's on /usr/local/nginx.

I want to make a symbolic link somewhere so I can define that the server executes the one located at /usr/local

Doing some more reading, I realized that I had 2 nginx was because I installed one with apt-get and a newer version from source. I uninstalled with apt-get purge. Now what I need to find out is how to set the nginx installed from source as default system.

The nginx installed from source is up and running, but I can't do a restart by any means.


/usr/local/nginx/sbin$ sudo ./nginx -s stop
/usr/local/nginx/sbin$ sudo ./nginx

诀窍了。

链接地址: http://www.djcxy.com/p/95190.html

上一篇: 重新编译从存储库安装的nginx

下一篇: 多个nginx安装在同一台服务器上如何设置默认值