1 首先,設(shè)置權(quán)限 配置需要訪問的log目錄有權(quán)限 chmod -R /.../... 在nginx.conf文件中,添加或覆蓋下面一行 user root; 2 配置server節(jié)點 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節(jié)點,配置autoindex on;使其能展示目錄。
|
|