Welcome! Log In Create A New Profile

Advanced

Re: port 11211 (memcached default) not open

Maxim Dounin
December 27, 2009 06:40PM
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

port 11211 (memcached default) not open

danny December 27, 2009 05:46PM

Re: port 11211 (memcached default) not open

Maxim Dounin December 27, 2009 06:40PM

Re: port 11211 (memcached default) not open

Nguyen Viet Cuong December 27, 2009 07:02PM

Re: port 11211 (memcached default) not open

Maxim Dounin December 27, 2009 07:54PM

Re: port 11211 (memcached default) not open

Nguyen Viet Cuong December 28, 2009 02:30AM

Re: port 11211 (memcached default) not open

Yuval Hager December 29, 2009 03:04PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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