设为首页
收藏本站
切换到宽版
用户名
Email
自动登录
找回密码
密码
登录
注册
快捷导航
论坛
BBS
排行榜
Ranklist
搜索
搜索
热搜:
香港vps
香港VPS
amh
机柜
vps
分销
VPS
域名出售
火车头
云主机
不限流量
香港服务器
美国服务器
香港
全能空间
whmcs
digitalocean
本版
帖子
用户
MJJ论坛
»
论坛
›
主机综合交流
›
美国VPS综合讨论
›
[求测试 ~~]网站访问很慢很慢,可能是php问题??? ...
1
2
/ 2 页
下一页
返回列表
查看:
6922
|
回复:
14
[求测试 ~~]网站访问很慢很慢,可能是php问题???
[复制链接]
Auston
Auston
当前离线
积分
66
发表于 2011-4-8 16:21:35
|
显示全部楼层
|
阅读模式
Ubuntu 10.04
nginx--0.8.54
php--5.32
php5-fpm
/etc/nginx/nginx.conf
uer www-data;
worker_processes 1;
pid /var/run/nginx.pid;
worker_rlimit_nofile 8192;
events {
worker_connections 4096;
}
http {
include /etc/nginx/mime.types;
include /etc/nginx/fastcgi_params;
default_type application/octet-stream;
sendfile on;
tcp_nopush on;
server_names_hash_bucket_size 128;
clirge_client_header_buffers 4 32k;
client_max_body_size 8m;
client_header_buffer_size 32k;
log_format main '$remote_addr - $remote_user [$time_local] $status '
'"$request" $body_bytes_sent "$http_referer" '
'"$http_user_agent" "$http_x_forwarded_for"';
access_log /var/log/nginx/access.log main;
error_log /var/log/nginx/error.log;
include /etc/nginx/sites-enabled/*;
}
复制代码
/etc/nginx/site-enable/default
server {
listen 80;
server_name aoy.me;
root /var/www;
location / {
index index.html index.php;
}
location ~* \.(gif|jpg|png)$ {
expires 30d;
}
location ~ \.php$ {
fastcgi_pass 127.0.0.1:9000;
}
}
复制代码
/etc/nginx/fastcgi_params;
tcgi_param QUERY_STRING $query_string;
fastcgi_param REQUEST_METHOD $request_method;
fastcgi_param CONTENT_TYPE $content_type;
fastcgi_param CONTENT_LENGTH $content_length;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param SCRIPT_NAME $fastcgi_script_name;
fastcgi_param REQUEST_URI $request_uri;
fastcgi_param DOCUMENT_URI $document_uri;
fastcgi_param DOCUMENT_ROOT $document_root;
fastcgi_param SERVER_PROTOCOL $server_protocol;
fastcgi_param GATEWAY_INTERFACE CGI/1.1;
fastcgi_param SERVER_SOFTWARE nginx/$nginx_version;
fastcgi_param REMOTE_ADDR $remote_addr;
fastcgi_param REMOTE_PORT $remote_port;
fastcgi_param SERVER_ADDR $server_addr;
fastcgi_param SERVER_PORT $server_port;
fastcgi_param SERVER_NAME $server_name;
fastcgi_index index.php;
fastcgi_param REDIRECT_STATUS 200;
复制代码
/etc/php5/fpm/php5-fpm.conf
bal]
pid = /var/run/php5-fpm.pid
error_log = /var/log/php5-fpm.log
[www]
listen = 127.0.0.1:9000
user = www-data
pm = static
pm.max_children = 12
pm.start_servers = 4
pm.min_spare_servers = 5
pm.max_spare_servers = 10
rlimit_files = 51200
复制代码
网址为
http://aoy.me/
首页为phpinfo()
很慢很慢才能显示出来
刚用lnmp.org的脚本一键安装之后 貌似还是很慢很慢
[
本帖最后由 Auston 于 2011-4-8 18:16 编辑
]
回复
举报
wdlth
wdlth
当前离线
积分
19746
发表于 2011-4-8 16:41:13
|
显示全部楼层
IO多快呢?
回复
支持
反对
举报
Auston
Auston
当前离线
积分
66
楼主
|
发表于 2011-4-8 16:47:22
|
显示全部楼层
怎么看IO 。。。
回复
支持
反对
举报
Auston
Auston
当前离线
积分
66
楼主
|
发表于 2011-4-8 17:03:01
|
显示全部楼层
dd if=/dev/zero of=/root/zerofile bs=1M count=256
508 MB/s
回复
支持
反对
举报
小夜
小夜
当前离线
积分
18821
发表于 2011-4-8 17:05:28
|
显示全部楼层
5.3换成5.217或14呢?你换lnmp一键包试一下呢?确实不快。
回复
支持
反对
举报
李院长
李院长
当前离线
积分
11824
发表于 2011-4-8 17:36:59
|
显示全部楼层
一点都不觉得慢
回复
支持
反对
举报
Auston
Auston
当前离线
积分
66
楼主
|
发表于 2011-4-8 17:39:20
|
显示全部楼层
好吧~
lnmp一键安装包。。。
回复
支持
反对
举报
Auston
Auston
当前离线
积分
66
楼主
|
发表于 2011-4-8 18:05:06
|
显示全部楼层
难道是网络线路的问题。。。。
一键安装之后还是那么慢。。。
回复
支持
反对
举报
msxcms
msxcms
当前离线
积分
10725
发表于 2011-4-8 18:07:01
|
显示全部楼层
keep-alive 在网络情况不好的时候,有很大作用
回复
支持
反对
举报
Auston
Auston
当前离线
积分
66
楼主
|
发表于 2011-4-8 18:37:24
|
显示全部楼层
貌似还是php问题
访问 纯 html 文件网址 没任何问题
回复
支持
反对
举报
下一页 »
1
2
/ 2 页
下一页
返回列表
高级模式
B
Color
Image
Link
Quote
Code
Smilies
您需要登录后才可以回帖
登录
|
注册
本版积分规则
发表回复
回帖后跳转到最后一页
Archiver
|
手机版
|
小黑屋
|
MJJ论坛
Copyright
MJJ论坛
© 2022 All Rights Reserved.
快速回复
返回顶部
返回列表