V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX  ›  coolloves  ›  全部回复第 32 页 / 共 38 页
回复总数  743
1 ... 24  25  26  27  28  29  30  31  32  33 ... 38  
2017-06-23 11:56:57 +08:00
回复了 pew 创建的主题 NGINX Squid 反向代理 https 到 nginx,在源站上设置 301 跳转不生效
cache_peer 1.2.3.4 parent 443 0 no-query no-digest originserver name=web01 login=PASS ssl
改成
cache_peer 1.2.3.4 parent 80 0
试试?
2017-06-22 09:47:03 +08:00
回复了 coolloves 创建的主题 Python requests 获取数据咨询
@Troevil 拼写错误了...多谢
@5dkgansm 谢谢指点,是 referer 拼写错了,
2017-06-22 09:43:12 +08:00
回复了 coolloves 创建的主题 Python requests 获取数据咨询
@5dkgansm 感谢耐心回复哈
我的目的就是想获取下预警列表,然后如果有我当地的预警,比如北京的,然后我在访问具体的预警内容,学 python 不久,谢谢.

import requests
import time

url = 'http://product.weather.com.cn/alarm/grepalarm.php?areaid=[0-9]{5,7}&_=' + str(int(time.time() * 1000))
headers = {'User-Agent': 'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.99 Safari/537.36',
'Refefer':'http://www.weather.com.cn/alarm/warninglist.shtml',
'DNT': 1,
'Host':'product.weather.com.cn'}
r = requests.Session()
pre_res = r.get('http://www.weather.com.cn/alarm/warninglist.shtml',headers=headers)
res = r.get(url,headers=headers)
print res.content
2017-06-22 09:26:23 +08:00
回复了 coolloves 创建的主题 Python requests 获取数据咨询
@5dkgansm 我加了 header 也是一样
用浏览器直接打开这个 url 也是 404
2017-06-21 13:05:37 +08:00
回复了 artandlol 创建的主题 NGINX nginx 日志反导到数据库
rsyslog 实时传到 es 即可
2017-06-18 22:47:01 +08:00
回复了 ErnieSauce 创建的主题 PHP 判断访客所属国家并进行页面跳转?
这个难道不应该用 dns 多识图比较合理吗?
饿了吗本身体验就差的不行,又接入这里,接入那里的,唉
2017-06-15 17:56:18 +08:00
回复了 felinx 创建的主题 全球工单系统 京东这是逼我关推送啊
只开了微信,qq,很多东西都推送给微信了,其他的也不需要推送了
2017-06-14 19:14:47 +08:00
回复了 imherer 创建的主题 程序员 MySQL 公网访问问题
ssh 做端口映射到本机,然后本地就可以直接访问了啊
2017-06-14 19:11:51 +08:00
回复了 ChristopherWu 创建的主题 程序员 你们仍未掌握那天所学的 git 知识
马克
2017-06-09 06:34:40 +08:00
回复了 coolloves 创建的主题 NGINX 请教有关于 nginx 的 proxy_temp 和 body_temp 配置问题!
顶顶了,大神们帮助啊,搜了下,有文章说因为系统无法释放 ca'che,
2017-06-08 19:08:59 +08:00
回复了 rapospectre 创建的主题 程序员 随时随地发送消息到微信
马克,感谢分享
这个问题在 ie 上遇到过,可以服务器绑定多个 ip,域名解析到不同的 ip 就可以了
赚客吧不注册可以看到吗?我记得说要注册并有积分才可以看到现报
2017-05-30 10:26:20 +08:00
回复了 vus520 创建的主题 程序员 有没有什么开源的监控和报警平台
马克
2017-04-30 06:55:08 +08:00
回复了 pia 创建的主题 VPS 搬瓦工的绝版套餐有人出吗?
3.99 ?
这个除了扶墙,该能干什么?
2017-04-27 11:07:53 +08:00
回复了 JackyBao 创建的主题 VPS [分享] OpenVZ 开启 BBR 之最简方法 - Linux Kernel Library
@JackyBao 非常感谢,确实是 haproxy 的问题!
2017-04-27 10:16:24 +08:00
回复了 JackyBao 创建的主题 VPS [分享] OpenVZ 开启 BBR 之最简方法 - Linux Kernel Library
@JackyBao
请教下, centos7,帮忙看看,谢谢!
[ 0.000000] Linux version 4.10.0+ ([email protected]) (gcc version 6.3.1 20170109 (GCC) ) #7 Tue Mar 28 20:01:40 CST 2017
[ 0.000000] bootmem address range: 0x7ff9cc000000 - 0x7ff9cffff000
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 16159
[ 0.000000] Kernel command line: virtio_mmio.device=268@0x1000000:1
[ 0.000000] PID hash table entries: 256 (order: -1, 2048 bytes)
[ 0.000000] Dentry cache hash table entries: 8192 (order: 4, 65536 bytes)
[ 0.000000] Inode-cache hash table entries: 4096 (order: 3, 32768 bytes)
[ 0.000000] Memory available: 64492k/0k RAM
[ 0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[ 0.000000] NR_IRQS:4096
[ 0.000000] lkl: irqs initialized
[ 0.000000] clocksource: lkl: mask: 0xffffffffffffffff max_cycles: 0x1cd42e4dffb, max_idle_ns: 881590591483 ns
[ 0.000002] lkl: time and timers initialized (irq2)
[ 0.000011] pid_max: default: 4096 minimum: 301
[ 0.000046] Mount-cache hash table entries: 512 (order: 0, 4096 bytes)
[ 0.000049] Mountpoint-cache hash table entries: 512 (order: 0, 4096 bytes)
[ 0.020696] console [lkl_console0] enabled
[ 0.020771] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[ 0.021047] NET: Registered protocol family 16
[ 0.022669] clocksource: Switched to clocksource lkl
[ 0.022901] NET: Registered protocol family 2
[ 0.023352] TCP established hash table entries: 512 (order: 0, 4096 bytes)
[ 0.023366] TCP bind hash table entries: 512 (order: 0, 4096 bytes)
[ 0.023373] TCP: Hash tables configured (established 512 bind 512)
[ 0.027519] UDP hash table entries: 128 (order: 0, 4096 bytes)
[ 0.027554] UDP-Lite hash table entries: 128 (order: 0, 4096 bytes)
[ 0.027825] virtio-mmio: Registering device virtio-mmio.0 at 0x1000000-0x100010b, IRQ 1.
[ 0.029686] workingset: timestamp_bits=62 max_order=14 bucket_order=0
[ 0.049278] virtio-mmio virtio-mmio.0: Failed to enable 64-bit or 32-bit DMA. Trying to continue, but this might not work.
[ 0.050197] NET: Registered protocol family 10
[ 0.052688] Segment Routing with IPv6
[ 0.052729] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[ 0.053477] Warning: unable to open an initial console.
[ 0.053524] This architecture does not have kernel memory protection.
[ 0.484021] reboot: Restarting system
2017-04-26 15:56:35 +08:00
回复了 vvdvdsv 创建的主题 VPS 搬瓦工续费的正确姿势?
先充进去就可以了
1 ... 24  25  26  27  28  29  30  31  32  33 ... 38  
关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   3011 人在线   最高记录 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 36ms · UTC 12:19 · PVG 20:19 · LAX 05:19 · JFK 08:19
Developed with CodeLauncher
♥ Do have faith in what you're doing.