Welcome! Log In Create A New Profile

Advanced

Re: --conf-path does not work

May 04, 2009 04:14PM
Igor Sysoev wrote:
> On Mon, May 04, 2009 at 03:55:36PM +0000, Jim Ohlstein wrote:
>
>
>> Hits self in head and says "Dumkopf!".
>>
>> I always use default location.
>>
>> Does that explain why make install failed?
>>
>
> What do you mean by failed ? If this:
>
> # cp objs/nginx /usr/local/sbin
> cp: overwrite `/usr/local/sbin/nginx'? y
> cp: cannot create regular file `/usr/local/sbin/nginx': Text file busy
>
> then it's standard unix feature for running process - you need to do
>
> mv /usr/local/sbin/nginx /usr/local/sbin/nginx.old
> cp objs/nginx /usr/local/sbin/
>

No. I figured it out.

I always install nginx in my config as /usr/local/sbin/nginx.

Since I didn't specify in the test config, It was installed as
/usr/local/nginx/sbin/nginx. I didn't realize this. I usually configure
--sbin-path=/usr/local/sbin/nginx

When I saw

# whereis nginx
nginx: /etc/nginx /usr/local/sbin/nginx /usr/local/sbin/nginx.old
/usr/local/nginx

it didn't show the binary in /usr/local/nginx/sbin/

So it appeared to me as if the binary had not been installed, because
when I ran

[root@mercury nginx-0.6.36]# nginx -v
nginx version: nginx/0.7.54

I understand why that is. I was evidently having a series of blond
moments today.

Sorry.


I can confirm that when I configured correctly

# ./configure --conf-path=/etc/nginx/nginx.conf

and run new binary

/usr/local/nginx/sbin/nginx

that it works as expected.





>> ------Original Message------
>> From: Igor Sysoev
>> Sender: owner-nginx@sysoev.ru
>> To: nginx@sysoev.ru
>> ReplyTo: nginx@sysoev.ru
>> Subject: Re: --conf-path does not work
>> Sent: May 4, 2009 11:40 AM
>>
>> On Mon, May 04, 2009 at 11:30:12AM -0400, Jim Ohlstein wrote:
>>
>>
>>> ????????? Wrote:
>>> -------------------------------------------------------
>>>
>>>> nginx-0.6.36
>>>>
>>>> Linux test 2.6.18-53.el5 #1 SMP Wed Oct 10
>>>> 16:34:19 EDT 2007 x86_64 x86_64
>>>> x86_64 GNU/Linux
>>>>
>>>> Thanks.
>>>>
>>>> 2009/5/4 Jim Ohlstein
>>>>
>>>>
>>>>> ./configure --conf-path=PATH
>>>>>
>>>>>> does not work
>>>>>>
>>>>>>
>>>>> I'm sure it will help if you tell Igor what
>>>>>
>>>> version you are running, what
>>>>
>>>>> platform you are running it on, what other
>>>>>
>>>> configure options you used, and
>>>>
>>>>> what exactly happens.
>>>>>
>>>>>
>>>>>
>>> I can confirm that there appears to be a bug or three.
>>>
>>> I am running Linux 2.6.18-128.1.6.el5 #1 SMP Wed Apr 1 09:10:25 EDT 2009 x86_64 x86_64 x86_64 GNU/Linux
>>>
>>> I was running nginx 0.7.53 but configured 06.36 with
>>>
>>> # ./configure ---conf-path=/etc/nginx
>>>
>> ../configure --conf-path=/etc/nginx/nginx.conf
>>
>>
>> --
>> Igor Sysoev
>> http://sysoev.ru/en/
>>
>>
>>
>> Sent from my Verizon Wireless BlackBerry
>>
>
>
Subject Author Posted

--conf-path does not work

陈昌茂 May 03, 2009 05:57AM

Re: --conf-path does not work

Jim Ohlstein May 03, 2009 04:20PM

Re: --conf-path does not work

陈昌茂 May 04, 2009 10:01AM

Re: --conf-path does not work

Jim Ohlstein May 04, 2009 11:30AM

Re: --conf-path does not work

Igor Sysoev May 04, 2009 11:40AM

Re: --conf-path does not work

Jim Ohlstein May 04, 2009 11:55AM

Re: --conf-path does not work

Igor Sysoev May 04, 2009 02:53PM

Re: --conf-path does not work

Jim Ohlstein May 04, 2009 04:14PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 246
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready