首页 > 生活 > blog换了VPS访问终于稳定了

blog换了VPS访问终于稳定了

2010年3月18日 eric 发表评论 阅读评论

前几天,blog一直访问缓慢,一直在找原因,最后发现了两个问题,一个是自己犯的低级错误,一个是服务商的问题。下面说说我的情况,以便以后大家买VPS的时候,或者自己搭建服务器的时候遇到此问题该如何避免判断!
买完VPS,拍了后,服务商把 SSH 帐号密码发给了我,我要求安装ubuntu server。我登录到VPS,查看了一些情况,CPU 啊,内存啊,开始优化服务器。删除一些没用的账户,停到一些没用的服务器,因为为了省钱,买的VPS内存小嘛。然后开始编译安装 nginx-0.8.34 + php-5.3.1 + eaccelerator-0.9.6 + mysql-5.1.42 经过漫长的编译完毕后。把wordpress 和数据库 导过来.访问,正常,速度也不错!一切正常。

第一个问题,是我的问题:

第二天,早上来上班,习惯性的打开IE看下自己的blog,速度很慢,IE进度条慢慢的前进,然后敢快 PUTTY 登录到服务器,我靠,半天才弹出输入 login as:
不正常,随后打开 CMD ping 域名,我晕 延迟居然达到了 400多毫毛,有的时候竟然到了800MS。输入用户名和密码后,进服务器,可以明显感觉到卡很卡。键入命令 top 一看。我的天。php-cgi 竟然到了 90% CPU 几乎吃满了。哪里的问题呢?难道编译的问题吗?也不对啊,与以前的编译完全相同~开始怀疑是 PHP 连接mysql 之间的瓶颈。重新编译了mysql 导入数据库,开始正常,随后5分钟在次访问.php-cgi 还是达到了 90%·一气之下,重启动了系统,在次访问,blog 速度恢复了正常。系统也不会再卡了,我担心第二天还是这样。正如我所说,第二天VPS又是如此慢。症状完全相同。看下PHP的环境变量。< ?php phpinfo(); ?> 慢慢排查,最后看到 eaccelerator-0.9.6 的cache 目录我写错了 /usr/loca/php/php_cache 我写成了 /usr/local/php/php_cached 多了一个d 我晕低级错误,低级错误啊。改正 php.ini eaccelerator.cache_dir=”/usr/local/php/php_cache” 重启 php-fpm ,访问blog 正常。该完后一下午访问速度都还不错,第二天访问,有点慢,但应该没关系。这是我发现的第一个问题。以为解决了。

第二个问题,服务商的问题
可是,正当我一位VPS 没有问题的时候,改完那个配置的第三天。VPS 又是稀奇的慢。putty登录VPS后,我停止nginx php-fpm mysql 服务的时候都卡住半天才回停止,等到服务全停止后,操作这台VPS仍然卡,我受不了了,给服务商打电话。问了一下情况。知道这么点情况,这个VPS 宿机器上 开的全是windows 服务器。就我一台linux,开了10个VPS 就这么点情况。得知我的情况后,他在他的 控制台上看服务器都很正常,认为我的软件问题。在我的一在要求换服务器或者退款的时候,她妥协了选择了给我换另一台塑机的VPS IP 没有换,因为我怕google 和 baidu K 我的站认为我在作弊总换IP地址。换了之后等待是我漫长的 编译我的 blog 环境,编译好后导入数据。访问blog 一切正常!!!!

终于舒了口气~!!!!

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

分类: 生活 标签: , , ,
  1. 2018年9月5日17:04 | #1

    viagra order online no

    [url=http://viagrasofttabsrx.com/]buy viagra online[/url]
    cheap viagra

    venta de viagra para la muje

  2. 2018年9月8日21:23 | #2

    pills price in usa http://www.minimalis.web.id/author/alfredoware where to buy for cheap.

  3. 2018年9月24日15:02 | #3

    Some are sufficiently small to be towed behind cars.

  4. 2018年10月4日06:05 | #4

    6. New York Academy for Acting and Film.

  5. 2018年10月5日02:45 | #5

    Wonderful post! We will be linking to this great post on our website.
    Keep up the good writing.

  6. 2018年10月5日06:17 | #6

    I could not refrain from commenting. Very well written!

  7. 2018年10月5日11:39 | #7

    I have been surfing on-line more than three hours nowadays, but I never found
    any fascinating article like yours. It’s lovely value sufficient for me.
    In my opinion, if all website owners and bloggers made
    good content as you probably did, the internet will likely be much more useful than ever before.

  8. 2018年10月6日00:08 | #8

    Hello! Do you know if they make any plugins to assist with SEO?
    I’m trying to get my blog to rank for some targeted keywords but I’m not
    seeing very good gains. If you know of any please share.
    Appreciate it!

  9. 2018年10月6日07:45 | #9

    At this time I am going to do my breakfast, later than having
    my breakfast coming again to read other news.

  10. 2018年10月7日05:48 | #10

    I am regular visitor, how are you everybody? This
    paragraph posted at this website is really fastidious.

  11. 2018年10月7日09:40 | #11

    Thanks for any other fantastic post. The place else could anybody get
    that kind of information in such a perfect way of writing?
    I have a presentation subsequent week, and I am at the look for
    such information.

  12. 2018年10月7日20:57 | #12

    Wonderful web site. Plenty of useful info here.
    I am sending it to several friends ans also sharing in delicious.
    And naturally, thank you in your sweat!

  13. 2018年10月8日01:44 | #13

    I know this web page presents quality based articles or
    reviews and other information, is there any other web page which provides such things in quality?

  14. 2018年10月8日22:50 | #14

    You’ve made some good points there. I looked on the net to learn more about
    the issue and found most individuals will go along with your
    views on this web site.

  15. 2018年10月10日01:21 | #15

    Link exchange is nothing else except it is just placing
    the other person’s blog link on your page at suitable place and other
    person will also do same in support of you.

  16. 2018年10月10日03:20 | #16

    Everyone loves what you guys tend to be up too. This sort
    of clever work and exposure! Keep up the great works guys I’ve added you guys to my own blogroll.

  17. 2018年10月11日17:32 | #17

    Your means of telling all in this post is truly fastidious,
    every one be able to simply be aware of it, Thanks a lot.

  18. 2018年10月16日21:25 | #18

    Nice blog here! Also your website loads up fast!
    What web host are you using? Can I get your affiliate link to your host?
    I wish my web site loaded up as quickly as yours lol

  19. 2018年10月18日00:07 | #19

    Most actors make investments their time and efforts poorly.

  20. 2018年10月18日21:36 | #20

    My relatives all the time say that I am wasting my time here at net, however I know I
    am getting knowledge all the time by reading such pleasant articles
    or reviews.

  21. 2018年10月19日04:10 | #21

    Wow! After all I got a blog from where I be capable of truly obtain helpful facts concerning my
    study and knowledge.

  22. 2018年10月20日07:45 | #22

    I have learn some good stuff here. Definitely price bookmarking for revisiting.
    I surprise how much attempt you place to make this sort of fantastic informative website.

  23. 2018年11月6日16:32 | #23

    online online online blog

    f4ff online super active 100

  24. 2018年11月7日00:21 | #24

    Every weekend i used to pay a quick visit this web
    page, because i want enjoyment, for the reason that this
    this web page conations really nice funny information too.

  25. 2018年11月7日14:16 | #25

    Very good website you have here but I was wanting to know if you knew of any message boards
    that cover the same topics talked about here?
    I’d really like to be a part of group where I can get opinions from other experienced people
    that share the same interest. If you have any suggestions, please let me know.
    Kudos!

  26. 2018年11月9日12:16 | #26

    If some one needs expert view regarding running a blog
    after that i advise him/her to visit this weblog, Keep up
    the nice work.

  27. 2018年11月11日18:23 | #27

    Great blog you’ve got here.. It’s hard to find high-quality writing like yours these days.
    I honestly appreciate people like you! Take care!!

  28. 2018年11月11日20:55 | #28

    Hello, i believe that i noticed you visited my web site thus
    i got here to return the want?.I am trying to to find things to enhance my website!I assume its good enough to use a few of your
    concepts!!

  29. 2018年11月12日13:05 | #29

    Fantastic beat ! I would like to apprentice even as you amend your website, how
    could i subscribe for a weblog web site?
    The account helped me a acceptable deal. I had been tiny bit
    acquainted of this your broadcast offered brilliant clear concept

  30. 2018年11月17日23:25 | #30

    Its like you learn my thoughts! You seem to know a lot approximately this, such as you wrote the ebook in it or something.
    I think that you just can do with some % to force the message home a bit, but
    instead of that, that is magnificent blog. An excellent
    read. I will definitely be back.

  31. 2018年11月19日11:54 | #31

    Hi are using WordPress for your blog platform?
    I’m new to the blog world but I’m trying to get started and create my own. Do you require
    any coding knowledge to make your own blog? Any help would be
    greatly appreciated!

  32. 2018年11月23日02:25 | #32

    I’d like to thank you for the efforts you’ve put
    in writing this site. I’m hoping to view the same high-grade blog posts from you
    in the future as well. In fact, your creative writing abilities has inspired me to get my own site now ;
    )

  33. 2018年12月2日10:22 | #33

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

  34. 2018年12月6日23:06 | #34

    Hi there, I want to subscribe for this blog to get latest updates,
    therefore where can i do it please help out.

  35. 2018年12月9日15:20 | #35

    I know this website gives quality based posts and other data, is there any
    other web page which gives these things in quality?

评论分页
1 ... 3 4 5 76
订阅评论
5+9= (必填)