473,326 Members | 2,680 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

Starting Memcache on CentOS - test works, daemon fails

110 100+
Hi Linux Masters,

I've run into a bit of an issue getting memcache to run on my linux server.

I can test run using
Expand|Select|Wrap|Line Numbers
  1. memcached -m 512 -u nobody -vv
  2.  
but running the daemon with
Expand|Select|Wrap|Line Numbers
  1. ./memcached -d -m 2048 -l 10.0.0.40 -p 11211 -u memcached
  2.  
results in a './memcached: No such file or directory' error.

I am attempting to run memcache with apache/php/mysql and looking at my phpinfo page, I show memcache with 0 active connections.

Any ideas on how I can get this running properly?

I have gone to the memcache directory directly, and run the './memcached' command, and it seems nothing happens, though I don't get the error.

Thanks
Pete
Aug 26 '08 #1
3 7371
Nepomuk
3,112 Expert 2GB
I can test run using
Expand|Select|Wrap|Line Numbers
  1. memcached -m 512 -u nobody -vv
  2.  
but running the daemon with
Expand|Select|Wrap|Line Numbers
  1. ./memcached -d -m 2048 -l 10.0.0.40 -p 11211 -u memcached
  2.  
results in a './memcached: No such file or directory' error.
Do you realise, what the difference between the test command and the real one is? The two characters '.' and '/' !

When you run './something then this something must be in the current directory. Try running
Expand|Select|Wrap|Line Numbers
  1. memcached -d -m 2048 -l 10.0.0.40 -p 11211 -u memcached
(without those two characters) instead.

Greetings,
Nepomuk
Aug 27 '08 #2
pedalpete
110 100+
Thanks Nepmuk,

I didn't know what the ./ notation meant.

Unfortunately it looks like I've gone down a bit of a rabbit whole hear.

Running with just memcache (not ./), i first got at '13' error which apparently meant SELinux wouldn't allow the connection.
I'm running in targetted mode, and have been unable to find how to add memcache to SELinux allowed list.

So I disabled SELinux to see if that fixed the problem (knowing I can reenable it), and now I'm getting memcache '111' errors.

Any chance you have experience with memcache and know what any of this means? I'm coming up empty on the 111 error.
Aug 27 '08 #3
Nepomuk
3,112 Expert 2GB
Thanks Nepmuk,

I didn't know what the ./ notation meant.

Unfortunately it looks like I've gone down a bit of a rabbit whole hear.

Running with just memcache (not ./), i first got at '13' error which apparently meant SELinux wouldn't allow the connection.
I'm running in targetted mode, and have been unable to find how to add memcache to SELinux allowed list.

So I disabled SELinux to see if that fixed the problem (knowing I can reenable it), and now I'm getting memcache '111' errors.

Any chance you have experience with memcache and know what any of this means? I'm coming up empty on the 111 error.
I don't have any experience with memcached whatsoever, but I searched on Google and found this:
"Memcache::connect() [function.Memcache-connect]: Can't connect to localhost:11211, Connection refused (111) in..."
So for some reason, it can't connect to the server. I don't know how memcached works, so I can't help any further at the moment.

Greetings,
Nepomuk
Aug 27 '08 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Vidhya CS | last post by:
Hi , I am this error while running mysqld_safe # ./bin/mysqld_safe --user=mysql & 19413 # Starting mysqld daemon with databases from /export/home/siptech/vidhya/ifmonitor/mysql/data 030728...
0
by: Anand | last post by:
I had to reload mysql 4.0.17 on to a Fedora Core machine that was previously working in the same configuration. Now though I can't get the server to run with the either of the following commands: ...
1
by: Jeremy Kohansimeh | last post by:
Hello, I just installed version 4.0.21 on a Mandrake 8.2 system. I cannot get the MySql daemon to run. I am using the following commands, and receiving these errors: $mysqld_safe...
4
by: Fraser Tweedale | last post by:
Do you suppose / does anyone know whether it would be faster to use the default 'files' session handler, or to define new session handlers that interact with a memcache process running on the same...
6
by: Arnie | last post by:
We're using the ServiceController class provided by the .NET Framework, programming in C#. We are using the Start() method to start a service from another service. This works fine most of the...
3
by: Matthew Warren | last post by:
I have the following piece of code, taken from a bigger module, that even as I was writing I _knew_ there were better ways of doing it, using a parser or somesuch at least, but learning how wasn't...
2
by: berkshire | last post by:
memcache appears to be installed correctly, but when I use memcache_connect I get the following error: Warning: memcache_connect(): Can't connect to localhost:11211, Unknown error (0) I'm...
0
by: write2ashokkumar | last post by:
hi... How to handle memcache with Mysql trigger? Reffer : http://mysqlblog.lenoxway.net/index.php?/archives/3-MySQL-triggers-and-memcache.html Regards, S.Ashokkumar.
3
by: Ravi | last post by:
Hi all, I installed memcache extension in windows. but when i am running the example then i am getting Fatal error: Class 'Memcache'
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.