On Wed, Sep 15, 2010 at 9:17 AM, cimenta <nginx-forum@nginx.us> wrote:
> gets no output
> [code]
> root@server:/opt/nginx# sbin/nginx -s reload
> root@server:/opt/nginx#
> [/code]
>
sorry, I got them wrong. The one you wanted is probaby -t.
>>
>> or else additionally specify the config file
>> location by using -c
>> /path/to/nginx.conf
>
> gets
>
> [code]
> root@server:/opt/nginx# sbin/nginx -c conf/nginx.conf
> [emerg]: bind() to 0.0.0.0:80 failed (98: Address already in use)
> [emerg]: bind() to 0.0.0.0:80 failed (98: Address already in use)
> [emerg]: bind() to 0.0.0.0:80 failed (98: Address already in use)
> [emerg]: bind() to 0.0.0.0:80 failed (98: Address already in use)
> [emerg]: bind() to 0.0.0.0:80 failed (98: Address already in use)
> [emerg]: still could not bind()
>
> [/code]
>
overall, it goes like this
/opt/nginx# sbin/nginx -c conf/nginx.conf -t
which then you can either
/opt/nginx# sbin/nginx -c conf/nginx.conf -s reload
or just
# /etc/init.d/nginx reload
--
O< ascii ribbon campaign - stop html mail - www.asciiribbon.org
_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx