Welcome! Log In Create A New Profile

Advanced

RE: nginx Digest, Vol 2, Issue 76

December 27, 2009 10:30PM
Hello Maxim,
I found another link and installed memcached. Now I see 127.0.0.1:11211
is listening.
Sorry, my mistake due to "multitasking: watching football
cowboy-vie-redskin, and doing work" ;-)

Would you please give me your opinion about this setup? Just want to
find the correct setup for my system.
Would you give some hint so I can continue with nginx using memcache?
If you think it's necessary, please send me to my email dtrinh at
eastonbellsports dot com.
Thanks,

Danny Trinh
Linux Admin



Message: 6
Date: Mon, 28 Dec 2009 02:33:23 +0300
From: Maxim Dounin <mdounin@mdounin.ru>
To: nginx@nginx.org
Subject: Re: port 11211 (memcached default) not open
Message-ID: <20091227233323.GW43547@mdounin.ru>
Content-Type: text/plain; charset=us-ascii

Hello!

On Sun, Dec 27, 2009 at 04:38:59PM -0600, Danny Trinh wrote:

> Hello group,
> I use nginx-0.8.31 and do try the memcached config from
>
http://lserinol.blogspot.com/2009/03/speeding-up-your-nginx-server-with.
> html.
>
> location ~* \.(jpg|png|gif)$ {
> access_log off;
> expires max;
> add_header Last-Modified "Thu, 26 Mar 2000 17:35:45 GMT";
> set $memcached_key $uri;
> memcached_pass 127.0.0.1:11211;
> error_page 404 = /fetch;
> }
>
> But when I do "netstat -an", I didn't see port 11211 listening. Am I
> missing some thing?

Yes, you are. nginx doesn't listen, it connects to memcached
server which should listen on ip:port you specified. It is up to
you to start memcached and place appropriate data into it.

Also, you probably want to know that on modern operating
systems it is usually bad idea to place files into memory
explicitly. Virtual memory subsystem will do it automatically as
long as you have spare memory on your server, and will likely do
it better than may be done by hand.

Other points in the post you linked are... uhm, questionable too
(you may want to read "incorrect" here, but I'm not going to
argue). You probably want to disregard this post instead of
following it.

Maxim Dounin


_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx
Subject Author Posted

RE: nginx Digest, Vol 2, Issue 76

danny December 27, 2009 10:30PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 273
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