473,657 Members | 2,430 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Starting Memcache on CentOS - test works, daemon fails

110 New Member
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 7387
Nepomuk
3,112 Recognized Expert Specialist
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 New Member
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 Recognized Expert Specialist
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::conn ect() [function.Memcac he-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
1117
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 12:17:49 mysqld ended The daemon is not starting . what could be the problem thanks
0
1259
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: ../mysql.server start - the command line reappears with no error but no running process in the system monitor /usr/local/mysql/bin/mysqld_safe -user=mysql - this command does not return to the command prompt so when I hit the enter key I get...
1
16802
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 --user=mysql Starting mysqld daemon with databases from /var/lib/mysql STOPPING server from pid file /var/lib/mysql/JBrain.pid 040921 09:01:55 mysqld ended
4
2693
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 machine? t
6
4177
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 time, but occasionally after a system startup (where the service doing the starting of the other is automatically started by Windows XP) the ServiceController's Start() method fails to start the other service. It is probably throwing an...
3
1919
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 as fun as coding it... And yes alarm bells went off when I found myself typing eval(), and I'm sure this is an 'unusual' use of for: else: . And I know it's not very robust. As an ex cuse/planation, this is what happens when you get an idea in...
2
3176
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 connecting using the following command: $memcache_obj = memcache_connect('localhost', 11211); Memcache info from phpinfo(): memcache
0
1204
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
6608
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
8402
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8829
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8508
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7341
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6172
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5633
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4323
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2733
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1962
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.