correct message after restarting nginx?

Edho P Arief edhoprima at gmail.com
Wed Sep 15 07:00:19 MSD 2010


On Wed, Sep 15, 2010 at 9:17 AM, cimenta <nginx-forum at nginx.us> wrote:
> gets no output
> [code]
> root at server:/opt/nginx# sbin/nginx -s reload
> root at 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 at 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



More information about the nginx mailing list