首页 > wordpress > memcached加速wordpress减轻mysql压力

memcached加速wordpress减轻mysql压力

2010年5月7日 eric 发表评论 阅读评论

最近很多事情,家里的事,感情上的事,年龄到了这个阶段,这些都是要面对的。所以blog更新很慢!
继上http://www.nginxs.com/linux/81.html 这篇文章后,
再次给 blog vps 加快访问速度,增加 object-cache.php插件来给 wordpress 加速
需要用到 memcached 同时php需要支持 memcache 扩展,我上篇Nginx + php-5.3.1 + mysql-5.1.45 for vps 256内存 已经把 memcache 扩展已经编译上了。

1.安装memcached-1.4.0.tar.gz

tar zxvf memcached-1.4.0.tar.gz
cd memcached-1.4.0
./configure --prefix=/usr
make
make install

2.下载object-cache.php插件

wget www.nginxs.com/download/object-cache.php.gz
tar zxvf object-cache.php.gz
mv object-cache.php /var/www/wordpress/wp-content/
chown www.root /var/www/wordpress/wp-content/

3.启动 memcached

memcached -d -m 64 -u root -l 127.0.0.1 -p 11211 -c 64 -P /tmp/memcached.pid

访问 www.nginxs.com 看下速度吧~
下来我将测试 memcached_functions_mysql 主动更新 memcached

PS:object-cache.php
默认是IP 127.0.0.1 端口 11211 ,如果你不是,你可以去改下配置文件。

转载请注明:文章转载自:Eric's linux and nginx! (http://www.nginxs.com)
本文地址:http://www.nginxs.com/linux/144.html

分类: wordpress 标签: , ,
  1. 2018年5月21日22:22 | #1

    Best Online International Pharmacies
    canadian online pharmacies
    canadian pharmacies

  2. 2018年6月9日12:44 | #2

    Doxycycline 100mg Where To Buy It Viagra Generico Italia Si Puo Avere cialis overnight shipping from usa free shipping isotretinoin for sale legally

  3. 2018年7月20日09:08 | #3

    online slots pay with paypal
    casino 1995 online
    casino 95
    gala casino 400 bonus
    no deposit bonus trading

  4. 2018年7月20日10:42 | #4

    mfortune mobile casino games
    free 5 bet grand national
    baccarat pressure cooker 7 litre
    online slots deposit 1
    free online slots with bonus spins

  5. 2018年7月27日13:31 | #5

    Cash and bank records should also be entered.

  6. 2018年7月28日20:29 | #6

    Plumbing repairs and replacements can get expensive.

  7. 2018年7月30日04:49 | #7

    The double entry system uses nominal ledger accounts.

  8. 2018年9月20日03:13 | #8
  9. 2018年10月3日06:38 | #9
  10. 2018年10月4日05:24 | #10

    Nice actors continue the training course of.

  11. 2018年10月5日01:51 | #11

    Hi there, I wish for to subscribe for this weblog to obtain hottest
    updates, thus where can i do it please help.

  12. 2018年10月6日00:49 | #12
  13. 2018年10月6日09:07 | #13
  14. 2018年10月6日10:14 | #14

    I think this is one of the most important info for me.
    And i am glad reading your article. But want to remark on few general things, The
    website style is wonderful, the articles is really nice : D.
    Good job, cheers

  15. 2018年10月6日21:30 | #15

    Hello, always i used to check webpage posts here early in the morning, as i love to learn more and more.

  16. 2018年10月7日00:07 | #16

    I don’t even understand how I finished up here,
    but I assumed this put up was once great. I do not understand who you might be
    however definitely you’re going to a well-known blogger when you are not already.
    Cheers!

  17. 2018年10月7日16:06 | #17

    Hello there, You’ve done an excellent job. I’ll certainly digg it and personally
    recommend to my friends. I’m sure they will be benefited from this web site.

  18. 2018年10月8日02:33 | #18

    It’s in point of fact a great and useful piece of information. I’m
    satisfied that you shared this useful info with us. Please keep us up to date like this.
    Thank you for sharing.

  19. 2018年10月9日02:33 | #19

    Yesterday, while I was at work, my sister stole my iphone and tested
    to see if it can survive a thirty foot drop, just so she can be a youtube sensation. My iPad is
    now broken and she has 83 views. I know this is entirely off topic but
    I had to share it with someone!

  20. 2018年10月9日10:32 | #20

    Hello, i think that i noticed you visited my weblog so i came to
    return the choose?.I am attempting to to find issues to
    enhance my site!I assume its good enough to make use of a few of your concepts!!

  21. 2018年10月9日20:31 | #21

    Wow, this paragraph is nice, my sister is analyzing
    these things, so I am going to inform her.

  22. 2018年10月10日11:09 | #22

    naturally like your website but you need to take a look
    at the spelling on quite a few of your posts. Several of them are rife with spelling problems and I to
    find it very bothersome to inform the truth however I will definitely come again again.

  23. 2018年10月18日13:23 | #23

    Hi would you mind stating which blog platform you’re working with?
    I’m looking to start my own blog soon but I’m having a hard time selecting between BlogEngine/Wordpress/B2evolution and Drupal.
    The reason I ask is because your layout seems different then most blogs and I’m
    looking for something completely unique. P.S Apologies for getting off-topic but I had
    to ask!

  24. 2018年10月19日02:10 | #24

    It’s a pity you don’t have a donate button! I’d definitely donate to this brilliant blog!
    I guess for now i’ll settle for bookmarking and adding your RSS
    feed to my Google account. I look forward to new updates and will share this blog with my Facebook group.

    Talk soon!

  25. 2018年10月20日20:19 | #25

    best deal on generic cialis
    extra super cialis uk
    onhoxte@mail.ru
    cialis soft review

  26. 2018年11月6日21:05 | #26

    My family always say that I am wasting my time here at net, however I know I am getting experience everyday by
    reading thes fastidious content.

  27. 2018年11月11日01:48 | #27

    Hello, this weekend is pleasant for me, for the reason that this
    time i am reading this impressive informative piece of writing here at my home.

  28. 2018年11月11日14:54 | #28

    I love your blog.. very nice colors & theme. Did you make
    this website yourself or did you hire someone to do it for
    you? Plz respond as I’m looking to design my own blog and would like to know where u
    got this from. thanks a lot

  29. 2018年11月12日12:51 | #29

    My brother suggested I might like this blog. He was totally right.

    This post truly made my day. You cann’t imagine simply how much time I had spent for this information! Thanks!

  30. 2018年11月13日01:34 | #30

    Hello just wanted to give you a quick heads up and let you know a few
    of the pictures aren’t loading properly. I’m not sure why
    but I think its a linking issue. I’ve tried it in two different web browsers
    and both show the same outcome.

  31. 2018年11月13日02:30 | #31

    I think everything published made a lot of sense.
    But, think about this, what if you wrote a catchier title?
    I ain’t saying your content isn’t good, however suppose you
    added a headline that grabbed folk’s attention? I mean Eric'
    s linux and nginx! » memcached加速wordpress减轻mysql压力
    is kinda vanilla. You ought to look at Yahoo’s front page and watch how they create news titles to get
    viewers interested. You might add a related video or a picture or two to grab people excited about everything’ve got to say.
    Just my opinion, it might bring your posts a little bit more interesting.

  32. 2018年11月15日23:49 | #32

    Great goods from you, man. I’ve bear in mind your stuff
    previous to and you’re simply too great. I actually like what you’ve acquired here, really like what you are saying and the way in which
    by which you are saying it. You’re making it enjoyable and you continue to take care
    of to keep it smart. I cant wait to read far more from you.
    That is really a great site.

  33. 2018年11月17日02:39 | #33

    Just want to say your article is as amazing.
    The clarity in your post is just great and i can assume you’re an expert on this subject.
    Well with your permission let me to grab your feed to keep updated with forthcoming post.

    Thanks a million and please continue the enjoyable work.

  34. 2018年11月18日01:14 | #34

    sling tv coupons and promo codes for november 2018
    Thanks for sharing such a pleasant idea, post is pleasant, thats why i have read it entirely sling tv coupons and promo
    codes for november 2018

  35. 2018年11月18日02:15 | #35

    Thank you, I’ve recently been looking for info about this topic for a while and yours is
    the greatest I’ve came upon so far. But, what concerning the conclusion? Are you certain in regards to
    the supply?

  36. 2018年11月22日00:33 | #36

    Nice blog! Is your theme custom made or did you download it from somewhere?
    A theme like yours with a few simple tweeks would really make my blog jump out.
    Please let me know where you got your design. Kudos

  37. 2018年12月7日05:26 | #37

    First of all I want to say great blog! I had a quick question in which I’d like to ask if you do not mind.
    I was curious to find out how you center yourself and clear
    your head before writing. I’ve had a tough time clearing my
    thoughts in getting my thoughts out there.

    I truly do enjoy writing however it just seems like the first 10
    to 15 minutes are lost just trying to figure out how to begin. Any ideas or tips?
    Cheers!

  38. 2018年12月9日00:15 | #38
评论分页
1 2 144
订阅评论
2+9= (必填)