1 首先,设置权限 配置需要访问的log目录有权限 chmod -R /.../... 在nginx.conf文件中,添加或覆盖下面一行 user root; 2 配置server节点 server {listen 64001;server_name beta3.hadoop.;charset utf-8;#charset koi8-r;#access_log logs/host.access.log main;location / {root html;index index.html index.htm;autoindex on;}location /feidai-kafka-kudu/bin/slog {root /root;autoindex on;}location /feidai-canal-kafka/bin/slog {root /root;autoindex on;}...... 其中添加了两个location节点,配置autoindex on;使其能展示目录。
|
|