摘要: Nginx 开启密码访问 ##生成密码文件 首先将密码文件存放位置自定义,路径需记录下来,放在Nginx配置中。 用户名是netdata 密码需要你手动输入 printf "netdata:$(openssl passwd -apr1)" > /etc/nginx/conf.d/htpasswd # 阅读全文
posted @ 2019-10-03 07:40 Carry00 阅读(506) 评论(0) 推荐(0) 编辑
摘要: Nginx access.log 日志统计分析常用命令 我的 nginx 日志格式 log_format access '$remote_addr - $remote_user [$time_local] "$request" ' '$status $body_bytes_sent "$http_r 阅读全文
posted @ 2019-10-03 07:38 Carry00 阅读(210) 评论(0) 推荐(0) 编辑