python-apscheduler

from apscheduler.schedulers.asyncio import AsyncIOScheduler

scheduler = AsyncIOScheduler({
    'apscheduler.jobstores.mongo': {
        'type': 'mongodb'
    }
})

scheduler.start()

time_job = scheduler.add_job(tasks.expiry, 'cron', hour='0', minute='0,1', args=[app], id='time')

WSL2 网络无法访问

首先在 Windows PowerShell 中查询 WSL 虚拟网卡的 IP 地址

PS C:\WINDOWS\system32> ipconfig                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                Windows IP 配置


以太网适配器 vEthernet (Default Switch):

   连接特定的 DNS 后缀 . . . . . . . :
   本地链接 IPv6 地址. . . . . . . . : fe80::6960:7c0f:966c:5dc5%27
   IPv4 地址 . . . . . . . . . . . . : 172.27.112.1
   子网掩码  . . . . . . . . . . . . : 255.255.240.0
   默认网关. . . . . . . . . . . . . :

以太网适配器 vEthernet (WSL):

   连接特定的 DNS 后缀 . . . . . . . :
   本地链接 IPv6 地址. . . . . . . . : fe80::387b:5180:55b1:80af%63
   IPv4 地址 . . . . . . . . . . . . : 192.168.96.1
   子网掩码  . . . . . . . . . . . . : 255.255.255.0
   默认网关. . . . . . . . . . . . . :

以太网适配器 以太网 2:

   连接特定的 DNS 后缀 . . . . . . . :
   本地链接 IPv6 地址. . . . . . . . : fe80::8a8:4b7b:a9c7:763e%10
   IPv4 地址 . . . . . . . . . . . . : 180.3.15.42
   子网掩码  . . . . . . . . . . . . : 255.255.255.0
   默认网关. . . . . . . . . . . . . :

无线局域网适配器 WLAN:

   连接特定的 DNS 后缀 . . . . . . . :
   本地链接 IPv6 地址. . . . . . . . : fe80::1dd9:8567:5085:a446%12
   IPv4 地址 . . . . . . . . . . . . : 192.168.31.228
   子网掩码  . . . . . . . . . . . . : 255.255.255.0
   默认网关. . . . . . . . . . . . . : 192.168.31.1

这里可以看到 WSL 网卡的 IP 地址为 192.168.96.1。

再打开 WSL Shell,查看当前获取的 IP 地址。

root@DESKTOP-9U7VSI7:~# ip addr
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host
       valid_lft forever preferred_lft forever
2: bond0: <BROADCAST,MULTICAST,MASTER> mtu 1500 qdisc noop state DOWN group default qlen 1000
    link/ether e6:a9:5d:27:19:0b brd ff:ff:ff:ff:ff:ff
3: sit0@NONE: <NOARP> mtu 1480 qdisc noop state DOWN group default qlen 1000
    link/sit 0.0.0.0 brd 0.0.0.0
4: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
    link/ether 00:15:5d:32:1a:55 brd ff:ff:ff:ff:ff:ff
    inet 192.168.109.65/24 brd 192.168.109.255 scope global eth0
       valid_lft forever preferred_lft forever
    inet6 fe80::215:5dff:fe32:1a55/64 scope link
       valid_lft forever preferred_lft forever

可以看出 eth0 的 IP 地址与 Windows 中的地址不在同一个网段,这里我们调整一下 WSL 的 IP 地址
首先给 WSL 添加一个与 Windows 网卡相同网段的 IP

ip addr add 192.168.96.2/24 brd 192.168.96.255 dev eth0
ip route add default via 192.168.96.1 dev eth0

再将原来不同 IP 段的地址删掉

ip addr delete 192.168.109.65/24 dev eth0

此时 WSL 应该可以正常访问网络了。

Winrar Key

RAR registration data
State Grid Corporation Of China
50000 PC usage license
UID=5827a0bd1c43525d0a5d
64122122500a5d3d56f784f3a440ac3fb632d34e08bbaa37fc7712
6acaeb8eb044810272e86042cb7c79b1da0eaf88c79f8a7c6dd77b
dba335e27a109997ac90fb0e10e4129e79f46c42b4ee1832fa5113
7443fcc1124840d4dd36f3af84a5c915a760b18c6394f938168227
fbf29edbc4b34ef85ee53fbfca71814a82afadf073876b4b033451
b6292a7cc7975b3ff3cc73404abbf7c126787344169eeae4609f62
c9ffbc159bf2640ad5d9b88f8fa9d9cbf2b7e5b022a21938465244
RAR registration data
杨兵
Single PC usage license
UID=de9e7556e91913d1191a
6412212250191adf1d9a078f3e7ff7c34367808fd43f4152995ca5
f5fefc3c4ae172a7a4306035c6ab9048e2c5c62f0238f183d28519
aa87488bf38f5b634cf28190bdf438ac593b1857cdb55a7fcb0eb0
c3e4c2736090b3dfa45384e08e9de05c5860d8e35103e908473779
1e1744b5f113aa8d4985ba9b15721320883c175a8fc31b06d430bc
7a1aa1b103dee45d0677b5c7b45571f63235750c613eec3e6046ca
ee4a272d3da7f40d5f61b829686c4008028e1510776f1470799369
RAR registration data
Federal Agency for Education
1000000 PC usage license
UID=b621cca9a84bc5deffbf
6412612250ffbf533df6db2dfe8ccc3aae5362c06d54762105357d
5e3b1489e751c76bf6e0640001014be50a52303fed29664b074145
7e567d04159ad8defc3fb6edf32831fd1966f72c21c0c53c02fbbb
2f91cfca671d9c482b11b8ac3281cb21378e85606494da349941fa
e9ee328f12dc73e90b6356b921fbfb8522d6562a6a4b97e8ef6c9f
fb866be1e3826b5aa126a4d2bfe9336ad63003fc0e71c307fc2c60
64416495d4c55a0cc82d402110498da970812063934815d81470829275
RAR registration data
Team EAT
Single PC usage license
UID=c97811c0f0ceeb28c500
6412212250c50047bf9963514c7f193eb62337f99488c06cee841a
6ccc09124aeb25972ad56035c6ab9048e2c5c62f0238f183d28519
aa87488bf38f5b634cf28190bdf438ac593b1857cdb55a7fcb0eb0
c3e4c2736090b3dfa45384e08e9de05c5860d61b3fad98ab846f2c
62a962e2dbbce87706fecf1abea5e40bc5f7d840f55cfb5a4f5a39
f9141fe9b383ce10abb9ed6d61be1f4b52e0777efdbaa0c9608eb9
9f075b0c716d7203d0b5e1e5ced22523726d8ec919c13662850743
RAR registration data
京ICP证09002463号
100 PC usage license
UID=74bc6936562e8b1dc5a5
6412212250c5a514337a09646e4d5fe5ccb82a2152725e98f7a1b6
458f1285cdfa224aacd86007e697024c155e27713a0f6ced4231f1
bdd814b379ce793dea8dc738ed6feab43e470752e4be6223bc1505
ef939613fad2a789a4e17319eb43d7f8b26009c479164a82c608a6
1c1487c265463a12110ac7a780044e8af68c033d3f71144d800da8
ecbee8d851f4bef3c6f513ac93bf09fea13c23e6ecdf942760b812
e0b3899ce31234b027f174069f3eb55f751065c8e8e82777656488
RAR registration data
Carol Thompson
Single PC usage license
UID=b8bc6fb0a8094b9eeb29
6412212250eb294bd5b605e535f7334b6e2e56a9e405a044f60225
c843a161a156aa01684c6035c6ab9048e2c5c62f0238f183d28519
aa87488bf38f5b634cf28190bdf438ac593b1857cdb55a7fcb0eb0
c3e4c2736090b3dfa45384e08e9de05c5860ae8049eaa9443b44f9
faac06b7ced5f95ab06b40a99e850616dc92fc5301fe63c674ea55
3971fefd9e10f300d2a515c74b02f673b7fe5a89fa92f51260a5af
78a306093f5763d6acc779488f5d42e9b044836a837c0424153795 
RAR registration data
State Grid Corporation Of China
50000 PC usage license
UID=5827a0bd1c43525d0a5d
64122122500a5d3d56f784f3a440ac3fb632d34e08bbaa37fc7712
6acaeb8eb044810272e86042cb7c79b1da0eaf88c79f8a7c6dd77b
dba335e27a109997ac90fb0e10e4129e79f46c42b4ee1832fa5113
7443fcc1124840d4dd36f3af84a5c915a760b18c6394f938168227
fbf29edbc4b34ef85ee53fbfca71814a82afadf073876b4b033451
b6292a7cc7975b3ff3cc73404abbf7c126787344169eeae4609f62
c9ffbc159bf2640ad5d9b88f8fa9d9cbf2b7e5b022a21938465244

最新文章

最近回复

  • muumlover: 你好
  • 测试人: 你好呀
  • ww: 看了这么多就这个有用,牛逼
  • 未知狐: 啊确实,话说,博主博客好像没有评论回复邮件提醒,可以试试Comm...
  • Skogen: 系统的差异,不同的Linux发行版集成的包也不一样,安装难度也就...
  • Skogen: 系统是 Debian9,理论上Debian系的系统应该通用的。
  • 2247: 请问用的是什么系统?
  • 未知狐: 受教了,我比博主运气好点,是因为不理解命令参数等设定而频繁失败,...
  • Skogen: 23
  • Skogen: asd

分类

标签

归档

其它