全球主机交流论坛
标题:
改标题了:Centos上能否查看每天的带宽流量统计?
[打印本页]
作者:
广东电视
时间:
2011-7-1 17:13
标题:
改标题了:Centos上能否查看每天的带宽流量统计?
Centos是默认配置,没有安装流量统计软件,系统自身有什么办法查看每天的流量吗?
///////////////////////////////////////////////////////////////////////////////////////////
ngxin.conf是这样的:
其中网站
www.aaa.com
设置了日志"access_log /home/logs/www.aaa.com.log access1;"
网站
www.bbb.com
没有设置日志
请问,网站
www.bbb.com
实际上有没有生成日志文件呢?现在急需查看
www.bbb.com
的日志。
user www www;
worker_processes 4;
error_log /home/logs/nginx_error.log crit;
pid /usr/local/nginx/logs/nginx.pid;
#Specifies the value for maximum file descriptors that can be opened by this process.
worker_rlimit_nofile 51200;
events
{
use epoll;
worker_connections 51200;
}
http
{
..............
..............
..............
..............
server
{
listen 80;
server_name www.aaa.com;
index default.html default.php index.html index.htm index.php;
root /home/www/aaa;
..............
..............
..............
..............
log_format access1 '$remote_addr - $remote_user [$time_local] "$request" '
'$status $body_bytes_sent "$http_referer" '
'"$http_user_agent" $http_x_forwarded_for';
access_log /home/logs/www.aaa.com.log access1;
}
server
{
listen 80;
server_name www.bbb.com;
index default.html default.php index.html index.htm index.php;
root /home/www/bbb;
..............
..............
..............
..............
}
include vhost/*.conf;
}
复制代码
[
本帖最后由 广东电视 于 2011-7-1 17:30 编辑
]
作者:
wdlth
时间:
2011-7-1 17:24
网站被入侵?不会有http日志的
作者:
广东电视
时间:
2011-7-1 17:26
原帖由
wdlth
于 2011-7-1 17:24 发表
网站被入侵?不会有http日志的
没被入侵
现在想查看某天的带宽流量,但服务器没有装任何流量统计程序,所以只好看看日志了
作者:
小夜
时间:
2011-7-1 17:27
如果没设置,那就没有的。我都不看这个。
作者:
广东电视
时间:
2011-7-1 17:29
作者:
msxcms
时间:
2011-7-1 17:44
vnstat
作者:
广东电视
时间:
2011-7-1 17:59
原帖由
msxcms
于 2011-7-1 17:44 发表
vnstat
没有装vnstat
作者:
小夜
时间:
2011-7-1 18:03
http://www.vpsmm.com/edu/248.html
看四,用iftop。我的独服,就开了一个screen,里面iftop一直开着,用来统计实时流量,每天的流量之类。
欢迎光临 全球主机交流论坛 (https://443502.xyz/)
Powered by Discuz! X3.4