用户工具

站点工具


tools:logstation
wget http://t.xlongwei.com/softwares/logstation-0.3.10.jar
java -jar logstation-0.3.10.jar  //初次运行会生成配置文件logstation.conf,编辑配置后再次运行即可,监听端口8884
  • nginx,使用简单认证
cd /usr/local/nginx/conf
printf "guest:$(openssl passwd -crypt 123456)\n" >> pass.db

vi conf.d/log.conf
server {
      server_name log.xlongwei.com;
      auth_basic "User Authentication";
      auth_basic_user_file /usr/local/nginx/conf/pass.db;
      location / {
              proxy_pass http://127.0.0.1:8884;
      }
}
  • 手机访问
需要开启cookie以便支持nginx鉴权,否则会一直刷地址栏,logstation会一直接到连接请求
tools/logstation.txt · 最后更改: 2018/09/10 16:29 由 admin