linux下安装memcached

memcache官网 http://memcached.org/

 下载memcache源码包
 wget http://www.memcached.org/files/memcached-1.4.25.tar.gz
 解压
 tar -zxvf memcached-1.4.25.tar.gz
 cd memcached-1.4.25
 编译安装
 ./configure && make && make test && sudo make install
 运行memcached
 /usr/local/memcached/bin/memcached -d -m 128 -l localhost -p 11211 -u root
 -d 以守护程序(daemon)方式运行 memcached
 -m 设置 memcached 可以使用的内存大小,单位为 M
 -l 设置监听的 IP 地址,如果是本机的话,通常可以不设置此参数
 -p 设置监听的端口,默认为 11211,所以也可以不设置此参数
 -u 指定用户

PHP安装Memcache扩展

 wget https://pecl.php.net/get/memcache-2.2.7.tgz
 tar -zxvf memcache-2.2.7.tgz
 cd memcache-2.2.7
 phpize
 ./configure --enable-memcache=/usr/local/memcached --with-php-config=/usr/local/php/bin/php-config
 make && make install
 编辑php.ini文件
 extension=/usr/local/php/lib/php/extensions/no-debug-non-zts-20100525/memcache.so
 然后重启php-fpm
 /etc/init.d/php-fpm restart
 查看phpinfo后可以看到memcache就证明已经安装成功了

 

5,800 Responses

  1. 848605 642090I think this is among the most vital information for me. And im glad reading your article. But wanna remark on few common items, The web site style is perfect, the articles is actually wonderful : D. Great job, cheers 537680

  2. 327346 36734Obtaining the right Immigration Solicitor […]below you will uncover the link to some internet sites that we feel you ought to visit[…] 106496

  3. 249606 177723Oh my goodness! an incredible post dude. Thank you Nonetheless Im experiencing challenge with ur rss . Don know why Unable to subscribe to it. Is there anyone acquiring similar rss drawback? Anybody who knows kindly respond. Thnkx 729485

  4. 596735 11876I think this is among the most vital info for me. And im glad reading your article. But wanna remark on few general issues, The web site style is perfect, the articles is actually fantastic : D. Very good job, cheers 9708

  5. 940685 572050Safest messages, or a toasts. are generally launched at one point during the wedding but are likely to just be hilarious, humorous to unusual as nicely. very best man jokes 613912

  6. 263119 251430I actually like your post. It is evident which you have a lot expertise on this subject. Your points are nicely made and relatable. Thanks for writing engaging and intriguing material. 364508

  7. 347381 600783Admiring the time and energy you put into your weblog and in depth information you offer. Its great to come across a weblog every once in a while that isnt the same old rehashed material. Fantastic read! Ive bookmarked your website and Im adding your RSS feeds to my Google account. 734576

  8. 686759 251378Thanks for your time so considerably for your impressive and incredible guide. I will not be reluctant to endorse your internet websites to any individual who need to receive direction on this dilemma. 160428

  9. 670806 983500Naturally I like your web-site, even so you require to check the spelling on several of your posts. Many of them are rife with spelling difficulties and I discover it very silly to inform you. On the other hand I will certainly come once more again! 700099

  10. 437005 73240We stumbled over here coming from a different internet page and thought I may possibly check points out. I like what I see so now im following you. Look forward to exploring your internet page but once again. 921801

  11. 665040 291528I enjoyed reading this a lot I genuinely hope to read more of your posts within the future, so Ive bookmarked your blog. But I couldnt just bookmark it, oh no.. When I see quality websites like this 1, I like to share it with others So Ive produced a backlink to your site (from 383863

  12. 990498 88125I discovered your internet site web site online and check a lot of of your early posts. Maintain on the top notch operate. I just now additional your Feed to my MSN News Reader. Searching for forward to reading considerably far more from you discovering out later on! 526010

  13. 824921 196894I recognize theres lots of spam on this internet site. Do you need to have help cleansing them up? I may assist among courses! 829864

  14. O mundo virtual tem se mostrado como uma novidade e surpreendente forma de ganhar grana. A Elo Job High é uma dessas companhias que lançou em 2012 e hoje tem rendimento um milhão de reais jogando partidas de gaming considerados como League of Legends para seus usuários.

  15. A prática é muito comum entre os players e produtiva tanto para quem barganha os seus atividades. No entanto, o elojob é contra as leis, considerado um cheat, e pode transportar ao banimento dos gamers (tanto dos que compram, quanto dos que levam) caso descoberto. Contudo isto dificilmente surge e o comércio de empresas que oferecem este serviço se torna cada vez mais benéfico.

  16. A palavra elojob e elo boost é utilizado para se dizer no momento que pessoa oferece para outra pessoa treinar no decorrer da área do cliente online e quando aumentar a sua classificação em um game. Este meio de atividade costuma ser feito pelos melhores players, que permutam um pouco de seu tempo e de suas capacidades virtuais por dinheiro na vida real.

  17. Wow, amazing blog layout! How long have you been blogging for?
    you make blogging look easy. The overall look of your website is magnificent, as well as the content!

  18. I blog frequently and I truly thank you for
    your content. This great article has truly peaked my interest.

    I’m going to book mark your website and keep checking
    for new information about once a week. I subscribed to your Feed too.

  19. I like the helpful information you supply to your articles.
    I will bookmark your blog and take a look at again here regularly.

    I am fairly certain I will learn a lot of new stuff
    right here! Best of luck for the following!

  20. This design is spectacular! You definitely know how to keep a reader amused.

    Between your wit and your videos, I was almost moved to start my own blog (well, almost…HaHa!) Excellent job.
    I really enjoyed what you had to say, and more than that, how you presented it.

    Too cool!

  21. This is very interesting, You’re a very skilled blogger.
    I have joined your rss feed and look forward to seeking more
    of your great post. Also, I’ve shared your website in my social
    networks!

  22. Wonderful article! That is the kind of info that are
    meant to be shared across the web. Disgrace on Google for not positioning this put up upper!
    Come on over and talk over with my web site . Thanks
    =)

  23. Hi, i read your blog occasionally and i own a similar one and i was just wondering if you get a lot of spam remarks?
    If so how do you reduce it, any plugin or anything you can recommend?
    I get so much lately it’s driving me crazy so
    any support is very much appreciated.

  24. This is very fascinating, You are a very professional blogger.

    I’ve joined your feed and look ahead to in search of extra of your fantastic post.
    Additionally, I have shared your web site in my social
    networks

  25. Howdy I am so glad I found your web site,
    I really found you by error, while I was researching on Yahoo for
    something else, Anyhow I am here now and would just
    like to say thank you for a tremendous post and a all round entertaining blog (I also love the theme/design), I don’t have time to look
    over it all at the minute but I have saved it and also added your RSS feeds,
    so when I have time I will be back to read more, Please do keep up the superb jo.

  26. When I initially commented I clicked the “Notify me when new comments are added”
    checkbox and now each time a comment is added I get four e-mails with the
    same comment. Is there any way you can remove me from that
    service? Appreciate it!

  27. Everything is very open with a very clear clarification of the challenges.

    It was really informative. Your site is very useful. Thank you for sharing!

  28. Wonderful work! That is the kind of info that are supposed to be shared across the internet.

    Shame on Google for not positioning this put up upper!
    Come on over and visit my website . Thanks =)

  29. Very nice post. I just stumbled upon your weblog and wanted to say that
    I’ve really loved browsing your weblog posts.
    After all I’ll be subscribing to your rss feed and I am hoping you
    write again soon!

  30. Wow, incredible blog format! How long have you been running
    a blog for? you made blogging look easy. The total glance of your web site is excellent, as well as the content!

  31. Great items from you, man. I have have in mind your stuff prior to and you
    are just too fantastic. I really like what you’ve obtained right here, really like what you are saying and the way in which wherein you
    say it. You make it entertaining and you continue to care for to stay it
    wise. I cant wait to read far more from you.
    That is really a wonderful web site.

  32. Good post. I learn something new and challenging on sites I stumbleupon on a
    daily basis. It’s always helpful to read through articles from other authors and practice a little something from their sites.

  33. You really make it seem so easy along with your presentation but I find this topic to be actually one thing which I feel I’d by no means
    understand. It sort of feels too complex and extremely huge for me.
    I’m having a look forward to your next submit, I’ll attempt to get
    the dangle of it!

  34. Thank you for the good writeup. It in fact was a amusement account it.

    Look advanced to more added agreeable from you! However,
    how can we communicate?

  35. whoah this blog is great i really like studying your articles.
    Stay up the good work! You already know, lots
    of individuals are looking round for this information,
    you can aid them greatly.

  36. Hi, i think that i saw you visited my website so i came to “return the favor”.I’m
    attempting to find things to enhance my site!I suppose its ok to use some of your ideas!!

  37. Wow that was unusual. I just wrote an incredibly long comment but after
    I clicked submit my comment didn’t show up. Grrrr… well I’m not
    writing all that over again. Anyways, just wanted to say fantastic blog!

  38. Thank you a lot for sharing this with all of us you actually
    understand what you are speaking approximately! Bookmarked.
    Kindly also seek advice from my website =). We can have a link trade
    agreement among us

  39. Hi my friend! I wish to say that this article
    is awesome, nice written and include approximately all significant infos.

    I would like to peer extra posts like this .

  40. I am genuinely happy to glance at this blog posts which carries plenty of valuable information, thanks for providing such information.

  41. magnificent submit, very informative. I wonder why
    the opposite experts of this sector do not understand this.
    You must continue your writing. I am sure, you have a huge
    readers’ base already!

  42. Hello just wanted to give you a quick heads up. The words in your
    post seem to be running off the screen in Safari.
    I’m not sure if this is a formatting issue or something to do with internet browser compatibility
    but I figured I’d post to let you know. The design look great though!
    Hope you get the issue solved soon. Many thanks

  43. Howdy! Would you mind if I share your blog with my twitter group?
    There’s a lot of people that I think would really
    enjoy your content. Please let me know. Thank you

  44. I enjoy what you guys tend to be up too. This kind of clever
    work and reporting! Keep up the superb works guys I’ve included you guys to my personal blogroll.

  45. An impressive share! I have just forwarded this onto a friend who had been conducting a
    little homework on this. And he actually ordered me dinner because I found it for
    him… lol. So allow me to reword this…. Thank YOU for the meal!!
    But yeah, thanx for spending time to discuss this topic here on your site.

  46. Heya outstanding website! Does running a blog like
    this require a massive amount work? I have absolutely no understanding
    of coding however I had been hoping to start my own blog in the near future.
    Anyhow, if you have any ideas or tips for new blog owners please share.
    I understand this is off subject but I just had to ask.
    Thanks!

  47. I’ve been surfing online more than 3 hours today,
    yet I never found any interesting article like yours.

    It’s pretty worth enough for me. In my view, if all webmasters and bloggers made good content as you did, the net will be much
    more useful than ever before.

  48. I think the admin of this web site is actually working hard in favor of his web page,
    since here every information is quality based material.

  49. Você sabia o meio mais fácil e rápido de escalar de elo em LOL? Decisivamente, não é se estressando em jogos ranqueadas. A melhor alternativa é chamar um elojob lol, um serviço oferecido por um gamer high elo, com maior série de conquistas e entre os profissionais do jogo, que aumentará a força da sua conta.

  50. 5842174667Você sabe o modo mais fácil e rápido de escalar de elo em LOL? Definitivamente, não é se estressando em jogos ranqueadas. O jeito é contratar um elo job, um serviço fornecido por um usuário high elo, com maior porcentagem de conquistas e entre os profissionais do partida, que aumentará a força da sua conta.1399949314

  51. 2009242772Nos elos mais baixos costumam ficar os aliados que não estão se sentindo tão animados com o jogo, por esse motivo, a taxa de abandonos no meio das partidas (os AFKs), de mensagens de ódio e de mortes propositais é bem maior.5281386305

  52. 4523254871 No LOL, se um jogador percebe que outro pode ser um elojob ou um smurf (como se chamam aqueles que têm contas em elos mais altos, mas jogam em contas com elos mais fracos) é possível denunciar e fazer com que aquela conta seja conferida. Se isso ocorrer, você corre algum risco. 4605103407