Ask Different is a question and answer site for power users of Apple hardware and software. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I previously had Memcache running on my localhost/ port 11211. Unfortunately, I rebooted my computer and now port 11211 isn't open and I don't know the command to open this port.

Can someone help with this?

share|improve this question

migrated from Sep 28 '12 at 2:37

This question came from our site for professional and enthusiast programmers.

Have you started Memcached after reboot? memcached -d – emcconville Sep 27 '12 at 18:56
why the downvote and votes to close the question? I'm happy to rephrase the question to make it better. – tim peterson Sep 27 '12 at 18:58
@j_mcnally: You should generally not edit the question itself to remove incorrect assumptions on the asker's part. Use an answer to explain why they are mistaken. – Josh Caswell Sep 27 '12 at 19:00
@timpeterson: It's useless to wonder why people downvote, but this isn't really a programming question, and would be better suited for either Ask Different or Super User, thus "off-topic" close votes. – Josh Caswell Sep 27 '12 at 19:00
@JoshCaswell isn't shell a programming language? The answer was to type memcached -d which is a command. I think SE question parsing is getting silly. – tim peterson Sep 27 '12 at 19:02
up vote 1 down vote accepted

you need to start memcache by typing


in terminal and leaving the window open

or start the daemon

memcached -d

you could also look for a loadctrl script if you want this to always run on boot.

share|improve this answer
-@j_mcnally, thanks that worked. Can you explain the difference -/+ the daemon -d flag? I'm not sure what a daemon is. – tim peterson Sep 27 '12 at 18:58
runs in background / detached from the terminal – j_mcnally Sep 27 '12 at 19:02
Meaning i can close the terminal window in which i typed the command and the port will stay open? It would seem like you'd want that all the time. What would be an example of a scenario where you won't use the -d flag? – tim peterson Sep 27 '12 at 19:04
when you want to see the output in terminal rather than logging, useful for debugging. – j_mcnally Sep 27 '12 at 19:05
you could alternative use something like 'screen' and detach the terminal entirely but still get the output when you reattach to it. the choice is yours. Also you could say memcached & which will background the task but still print STDOUT and STDERR to the terminal, while still allowing you to use the terminal. – j_mcnally Sep 27 '12 at 19:13

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.