Take the 2-minute tour ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

I previously had Memcache running on my localhost/127.0.0.1 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
1  
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
show 10 more comments

migrated from stackoverflow.com Sep 28 '12 at 2:37

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

1 Answer

up vote 1 down vote accepted

you need to start memcache by typing

memcached

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
1  
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
1  
when you want to see the output in terminal rather than logging, useful for debugging. –  j_mcnally Sep 27 '12 at 19:05
1  
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
show 1 more comment

Your Answer

 
discard

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.