- 广东电视2011-07-01注册会员21140
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 编辑 ]