VPS侦探论坛

 找回密码
 注册
查看: 6184|回复: 7

为什么我的LNMP 1.2安装速度特别慢

[复制链接]
发表于 2015-6-26 11:04:00 | 显示全部楼层 |阅读模式

为什么我的LNMP 1.2安装速度特别慢?升级个nginx要几个小时?
不是说平滑升级  升级过程不影响nginx的运行
http://104.149.18.195/p.php
502 Bad Gateway

[ 本帖最后由 koyaphet 于 2015-6-26 11:09 编辑 ]
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2015-6-26 15:12:52 | 显示全部楼层


安装速度和机器性能有关

nginx升级一般vps也就最多10几分钟就能完成

如果升级前没502,可能php-fpm挂了,建议按置顶帖排查
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2015-6-27 11:28:13 | 显示全部楼层

好像真的挂了  而且Apache依然在运行
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
 楼主| 发表于 2015-6-27 11:29:33 | 显示全部楼层



lnmp下想把test.com和www.test.com跳转到ooo.test.com怎么做?
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
发表于 2015-6-27 22:07:39 | 显示全部楼层

不清楚你到底是lnmp 还是lnmpa,lnmp的话不会有apache

调整参考301教程:http://lnmp.org/faq/lnmp-nginx-301-rewrite.html

军哥运维代购:http://shop63846532.taobao.com/

发表于 2015-6-28 00:29:10 | 显示全部楼层

这是我的,看你能不能用
server
        {
                listen 80;
                #listen [::]:80;
                server_name www.aaaa.cn  www.bbb.com  www.ccc.com;
if ($host != 'www.ccc.com' ) {
       rewrite ^/(.*)$ http://www.ccc.com/$1 permanent;
}        index index.html index.htm index.php default.html default.htm default.php;
                root  /home/wwwroot/www.ccc.com;

                include none.conf;
                error_page   404   /404.html;
                location ~ [^/]\.php(/|$)
                        {
                                # comment try_files $uri =404; to enable pathinfo
                                try_files $uri =404;
                                fastcgi_pass  unix:/tmp/php-cgi.sock;
                                fastcgi_index index.php;
                                include fastcgi.conf;
                                #include pathinfo.conf;
                        }

                location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$
                        {
                                expires      30d;
                        }

                location ~ .*\.(js|css)?$
                        {
                                expires      12h;
                        }

                access_log off;
        }
发表于 2015-6-28 11:28:40 | 显示全部楼层

编译mariadb非常慢
我看了下top,只有一个cpu工作
不能多个cpu同时编译吗?
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2015-6-29 09:00:20 | 显示全部楼层

回复 6# 的帖子


你虚拟主机里压根就没非www的域名,肯定不会有效果
按教程http://lnmp.org/faq/lnmp-nginx-301-rewrite.html 改改,加上
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|VPS侦探 ( 鲁ICP备16040043号-1 )

GMT+8, 2024-9-27 23:32 , Processed in 0.032294 second(s), 17 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表