nginx
文章平均质量分 73
等风,也等你
这个作者很懒,什么都没留下…
展开
-
top命令解析
1.前五行:第一行:top - 14:31:32 up 3:56, 1 user, load average: 0.01, 0.02, 0.05 任务队列信息14:31:32 表示当前时间up 3:56 系统运行时间 格式为时:分1 user 当前登录用户数load average: 0.01, 0.02, 0.05 系统负载,即任务队列的平均长度...原创 2021-09-23 14:57:53 · 624 阅读 · 0 评论 -
使用nginx反向代理获取真实访问ip地址
nginx配置:访问的location添加:proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;java代码:public static String getIpAddr(HttpServletRequest request) { String ip = request.getHeader("X-Forwarded-For"); if (ip == null || ip.length() == 0 |.原创 2021-08-27 15:32:33 · 1145 阅读 · 0 评论