V2EX testVmap 的所有回复 第 1 页 / 共 1 页
V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX    testVmap    全部回复第 1 页 / 共 1 页
回复总数  15
2018-10-22 23:24:30 +08:00
回复了 testVmap 创建的主题 问与答 nginx 反向代理微信服务器问题
location ^~ /mp/
{
#proxy_cache api_cache;
proxy_set_header Host mp.weixin.qq.com;
rewrite /mp/(.+)$ /$1 break;
proxy_pass https://mp.weixin.qq.com;
}

最后改成了根据请求路径转发
2018-09-18 15:51:35 +08:00
回复了 testVmap 创建的主题 问与答 nginx 如何获取真实的 IP
感谢大家,最后配置如下
服务器 A 的转发配置
location ^~ /namesg/ {
proxy_pass http://172.16.16.11;
proxy_set_header Host $http_host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Real-IP $remote_addr;
}

服务器 B 的 nginx.conf log 配置

log_format my_format '$http_x_real_ip -'
'$remote_addr- [$time_local] "$request" '
'$status $body_bytes_sent "$http_referer" '
'"$http_user_agent" "$http_x_forwarded_for"';
access_log logs/access.log my_format;


主要是 nginx 日志取消注释后还不能生效,需要改下日志名字
2018-09-18 14:11:10 +08:00
回复了 testVmap 创建的主题 问与答 nginx 如何获取真实的 IP
A 服务器的日志能正常获取到真实 IP
2018-09-18 14:10:38 +08:00
回复了 testVmap 创建的主题 问与答 nginx 如何获取真实的 IP
@lshero 是要怎么配置,要修改 log_format 吗
2018-09-18 14:02:57 +08:00
回复了 testVmap 创建的主题 问与答 nginx 如何获取真实的 IP
A 服务器转发配置
location ^~ /sogood {
proxy_pass http://172.16.0.7:81;
proxy_pass_header Server;
proxy_set_header Host $http_host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Scheme $scheme;
proxy_set_header Cookie $http_cookie;
proxy_set_header Referer $http_refere;
proxy_set_header X-Forwarded-For
$proxy_add_x_forwarded_for;
#proxy_set_header X-Forwarded-For $remote_addr;
#proxy_set_header REMOTE-HOST $remote_addr;

}


B 服务器转发配置
location ~ \.php$ {
proxy_pass http://127.0.0.1;
proxy_pass_header Server;
proxy_set_header Host $http_host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Scheme $scheme;
proxy_set_header Cookie $http_cookie;
proxy_set_header Referer $http_refere;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}



加了感觉还是没用
2018-09-09 15:24:54 +08:00
回复了 testVmap 创建的主题 Linux 红帽知识库为什么显示不完整
@xcai 谢谢了
2018-09-08 17:43:39 +08:00
回复了 testVmap 创建的主题 问与答 PHP 安全漏洞该如何打补丁
感谢大家了,升级到最新 5.6.37 搞定了
2018-09-08 17:41:59 +08:00
回复了 testVmap 创建的主题 Linux 红帽知识库为什么显示不完整
@adadada 好的,谢谢了
2018-07-09 16:53:58 +08:00
回复了 testVmap 创建的主题 Python Python 图像识别 如何找出图像的中心点
2018-06-28 08:53:24 +08:00
回复了 testVmap 创建的主题 Python Python 图像识别 如何找出图像的中心点
已经实现,用的 opencv 先灰度模糊,再二值化,找到图形轮廓最后确定中心点
2018-06-27 18:55:07 +08:00
回复了 testVmap 创建的主题 Python Python 图像识别 如何找出图像的中心点
@LadyChunsKite 是的就是找茬游戏
2018-06-27 18:53:02 +08:00
回复了 testVmap 创建的主题 Python Python 图像识别 如何找出图像的中心点
@ybping 刚开始没找到图片上传选项,所以放到其他服务器了,就是找到图片红点范围坐标
2018-06-26 17:12:37 +08:00
回复了 testVmap 创建的主题 Python Python 图像识别 如何找出图像的中心点
有没有思路和相关模块推荐
2018-05-29 09:42:32 +08:00
回复了 diveIntoWork 创建的主题 程序员 求助~服务器被挖矿程序入侵,如何排查
安装 sysdig 工具,我用这个找到了 CPU 占用高的程序
#sysdig -c topprocs_cpu

CPU% Process PID
--------------------------------------------------------------------------------
99.70% <NA> 719
99.70% <NA> 725
98.70% <NA> 724
98.70% <NA> 722
0.00% oracle 10187
0.00% hosteye 988
0.00% V8 4374
0.00% oracle 6393
0.00% gdbus 534
0.00% <NA> 9230
2017-11-03 16:08:01 +08:00
回复了 testVmap 创建的主题 Python Python 如何在循环内调用随机函数使结果随机
for i in range(5):#经过指点改了一下,这样就可以了
data_module=[
interface_data_random.api_102,
]
run(url,data_module)


感谢大家建议,封装成函数也不行,最后将定义放在了循环里
//是手贱随便打的,尴尬啊
关于     帮助文档     自助推广系统     博客     API     FAQ     Solana     2573 人在线   最高记录 6679       Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 36ms UTC 14:52 PVG 22:52 LAX 06:52 JFK 09:52
Do have faith in what you're doing.
ubao msn snddm index pchome yahoo rakuten mypaper meadowduck bidyahoo youbao zxmzxm asda bnvcg cvbfg dfscv mmhjk xxddc yybgb zznbn ccubao uaitu acv GXCV ET GDG YH FG BCVB FJFH CBRE CBC GDG ET54 WRWR RWER WREW WRWER RWER SDG EW SF DSFSF fbbs ubao fhd dfg ewr dg df ewwr ewwr et ruyut utut dfg fgd gdfgt etg dfgt dfgd ert4 gd fgg wr 235 wer3 we vsdf sdf gdf ert xcv sdf rwer hfd dfg cvb rwf afb dfh jgh bmn lgh rty gfds cxv xcv xcs vdas fdf fgd cv sdf tert sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf shasha9178 shasha9178 shasha9178 shasha9178 shasha9178 liflif2 liflif2 liflif2 liflif2 liflif2 liblib3 liblib3 liblib3 liblib3 liblib3 zhazha444 zhazha444 zhazha444 zhazha444 zhazha444 dende5 dende denden denden2 denden21 fenfen9 fenf619 fen619 fenfe9 fe619 sdf sdf sdf sdf sdf zhazh90 zhazh0 zhaa50 zha90 zh590 zho zhoz zhozh zhozho zhozho2 lislis lls95 lili95 lils5 liss9 sdf0ty987 sdft876 sdft9876 sdf09876 sd0t9876 sdf0ty98 sdf0976 sdf0ty986 sdf0ty96 sdf0t76 sdf0876 df0ty98 sf0t876 sd0ty76 sdy76 sdf76 sdf0t76 sdf0ty9 sdf0ty98 sdf0ty987 sdf0ty98 sdf6676 sdf876 sd876 sd876 sdf6 sdf6 sdf9876 sdf0t sdf06 sdf0ty9776 sdf0ty9776 sdf0ty76 sdf8876 sdf0t sd6 sdf06 s688876 sd688 sdf86