美高梅4858-美高梅4858mgm-[官方网站]

分类 其他分类 下的文章

Windows 安装 Ubuntu 系统(子系统),报错 WslRegisterDistribution failed with error: 0x8007019e

错误一:Error Code: 0x8007019e

WslRegisterDistribution failed with error: 0x8007019e

这是因为系统未安装Windows子系统支撑。

解决办法:

  1. 键盘行按键 Win+x,选择 Windows PowerShell(管理员)
  2. 输入 Enable-WindowsOptionalFeature -Online -FeatureName 微软-Windows-Subsystem-Linux 3. 按回车,然后输入Y并重启。 重启打开Ubuntu的命令窗口,等几分钟,输入账户和密码即可。

Windows/Linux 等使用 openssl 命令查看网站证书

假设大家要查看 nowtime.cc 的证书,其 https 端口为 443

实行命令如下:

openssl s_client -showcerts -connect nowtime.cc:443

运行结果:

自行提取证书了 -----BEGIN CERTIFICATE----- -----END CERTIFICATE-----

首个是根证书

C:\Users\chuwen>openssl s_client -showcerts -connect nowtime.cc:443
CONNECTED(00000188)
depth=1 C = US, O = Let's Encrypt, CN = Let's Encrypt Authority X3
verify error:num=20:unable to get local issuer certificate
verify return:1
depth=0 CN = nowtime.cc
verify return:1
---
Certificate chain
 0 s:CN = nowtime.cc
   i:C = US, O = Let's Encrypt, CN = Let's Encrypt Authority X3
-----BEGIN CERTIFICATE-----
MIIFWzCCBEOgAwIBAgISBN4DHrdBlbZURCO30zWTHNcqMA0GCSqGSIb3DQEBCwUA
MEoxCzAJBgNVBAYTAlVTMRYwFAYDVQQKEw1MZXQncyBFbmNyeXB0MSMwIQYDVQQD
ExpMZXQncyBFbmNyeXB0IEF1dGhvcml0eSBYMzAeFw0yMDA2MjcwNTIwNDNaFw0y
MDA5MjUwNTIwNDNaMBUxEzARBgNVBAMTCm5vd3RpbWUuY2MwggEiMA0GCSqGSIb3
DQEBAQUAA4IBDwAwggEKAoIBAQDsIEKlS36Aay6UwWHLPYmsu9+3G3EA11236AD+
lLXEhEO4tAuc0FV5nliJ7mlXx9STvTtS/zzLqUDRVcWlBeXiS7UHjkvSN+sUU9rI
/osDO/Cd/NXo8DY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szrtnlZ5P2ThSRs3lpOJTjANBgkq
hkiG9w0BAQsFAAOCAQEAMLVoRspbIOTy72LPBshrWGF3P3o5Z85mhRwKeCHd4w6/
XH3gopnKlQ6epNK/DkviXm+S71q3CgJloLze0PKULG9SkuRBA4LJKrP+QU6xMUgh
W9HqjOU6/+CqOtEMsQqVda7jCwUygLLhpcZJVGx3AiEGnivcUYZnlFraJyFXVe5Z
TDZSUAvcqxduWspfec3jKxdEt+CfLf1+Um1+n1Wid1PWHQzw0ycBYCm3DGKFrtDI
LRsaSaUGH7BdbjHJ/A0380xv6Nb86NdAqT273Wpo97IHA/6H4LNV94pe5hawpht8
Qw2m6DohubBYXBf+4AlgJKZFSPxWdHOd66kD0rBOAg==
-----END CERTIFICATE-----
 1 s:C = US, O = Let's Encrypt, CN = Let's Encrypt Authority X3
   i:O = Digital Signature Trust Co., CN = DST Root CA X3
-----BEGIN CERTIFICATE-----
MIIEkjCCA3qgAwIBAgIQCgFBQgAAAVOFc2oLheynCDANBgkqhkiG9w0BAQsFADA/
MSQwIgYDVQQKExtEaWdpdGFsIFNpZ25hdHVyZSBUcnVzdCBDby4xFzAVBgNVBAMT
DkRTVCBSb290IENBIFgzMB4XDTE2MDMxNzE2NDA0NloXDTIxMDMxNzE2NDA0Nlow
SjELMAkGA1UEBhMCVVMxFjAUBgNVBAoTDUxldCdzIEVuY3J5cHQxIzAhBgNVBAMT
GkxldCdzIEVuY3J5cHQgQXV0aG9yaXR5IFgzMIIBIjANBgkqhkiG9w0BAQEFAAOC
AQ8AMIIBCgKCAQEAnNMM8FrlLke3cl03g7NoYzDq1zUmGSXhvb418XCSL7e4S0EF
q6meNQhY7LEqxGiHC6PjdeTm86dicbp5gWAf15Gan/PQeGdxyGkOlZHP/uaZ6WA8
SMx+yk13EiSdRxta67nsHjcAHJyse6cF6s5K671B5TaYucv9bTyWaN8jKkKQDIZ0
Z8h/pZq4UmEUEz9l6YKHy9v6Dlb2honzhT+Xhq+w3Brvaw2VFn3EK6BlspkENnWA
a6xK8xuQSXgvopZPKiAlKQTGdMDQMc2PMTiVFrqoM7hD8bEfwzB/onkxEz0tNvjj
/PIzark5McWvxI0NHWQWM6r6hCm21AvA2H3DkwIDAQABo4IBfTCCAXkwEgYDVR0T
AQH/BAgwBgEB/wIBADAOBgNVHQ8BAf8EBAMCAYYwfwYIKwYBBQUHAQEEczBxMDIG
CCsGAQUFBzABhiZodHRwOi8vaXNyZy50cnVzdGlkLm9jc3AuaWRlbnRydXN0LmNv
bTA7BggrBgEFBQcwAoYvaHR0cDovL2FwcHMuaWRlbnRydXN0LmNvbS9yb290cy9k
c3Ryb290Y2F4My5wN2MwHwYDVR0jBBgwFoAUxKexpHsscfrb4UuQdf/EFWCFiRAw
VAYDVR0gBE0wSzAIBgZngQwBAgEwPwYLKwYBBAGC3xMBAQEwMDAuBggrBgEFBQcC
ARYiaHR0cDovL2Nwcy5yb290LXgxLmxldHNlbmNyeXB0Lm9yZzA8BgNVHR8ENTAz
MDGgL6AthitodHRwOi8vY3JsLmlkZW50cnVzdC5jb20vRFNUUk9PVENBWDNDUkwu
Y3JsMB0GA1UdDgQWBBSoSmpjBH3duubRObemRWXv86jsoTANBgkqhkiG9w0BAQsF
AAOCAQEA3TPXEfNjWDjdGBX7CVW+dla5cEilaUcne8IkCJLxWh9KEik3JHRRHGJo
uM2VcGfl96S8TihRzZvoroed6ti6WqEBmtzw3Wodatg+VyOeph4EYpr/1wXKtx8/
wApIvJSwtmVi4MFU5aMqrSDE6ea73Mj2tcMyo5jMd6jmeWUHK8so/joWUoHOUgwu
X4Po1QYz+3dszkDqMp4fklxBwXRsW10KXzPMTZ+sOPAveyxindmjkW8lGy+QsRlG
PfZ+G6Z6h7mjem0Y+iWlkYcV4PIWL1iwBi8saCbGS5jN2p8M+X+Q7UNKEkROb3N6
KOqkqm57TH2H3eDJAkSnh6/DNFu0Qg==
-----END CERTIFICATE-----
---
Server certificate
subject=CN = nowtime.cc

issuer=C = US, O = Let's Encrypt, CN = Let's Encrypt Authority X3

---
No client certificate CA names sent
Peer signing digest: SHA256
Peer signature type: RSA-PSS
Server Temp Key: X25519, 253 bits
---
SSL handshake has read 3114 bytes and written 392 bytes
Verification error: unable to get local issuer certificate
---
New, TLSv1.3, Cipher is TLS_AES_256_GCM_SHA384
Server public key is 2048 bit
Secure Renegotiation IS NOT supported
Compression: NONE
Expansion: NONE
No ALPN negotiated
Early data was not sent
Verify return code: 20 (unable to get local issuer certificate)
---
---
Post-Handshake New Session Ticket arrived:
SSL-Session:
    Protocol  : TLSv1.3
    Cipher    : TLS_AES_256_GCM_SHA384
    Session-ID: 4AA5922EF7050399E3A09DCE51155BB98B51EE253019EFB444C62DA6023B3C2F
    Session-ID-ctx:
    Resumption PSK: B9B0D50AEFB17628674208CEB490771BBF8130E89DBA67F9BA9B902BEFA2F45658C35A21589F43239DC2672149F8F300
    PSK identity: None
    PSK identity hint: None
    SRP username: None
    TLS session ticket lifetime hint: 600 (seconds)
    TLS session ticket:
    0000 - e0 1c ce db 80 2b cd b1-11 af 49 73 0b 96 ab cc   .....+....Is....
    0010 - 4e 25 40 e0 ea 0f 87 25-03 e8 80 6c 92 62 c6 6a   N%@....%...l.b.j
    0020 - 1e 56 56 2c 10 e4 ad c8-90 4b 68 4c 4d e0 ac 69   .VV,.....KhLM..i
    0030 - 13 d1 fa aa 8a b4 29 05-50 12 cf d4 3f e6 1e 08   ......).P...?...
    0040 - 69 a3 0c a7 12 47 af 21-a6 e0 85 83 45 d3 c6 c3   i....G.!....E...
    0050 - be 72 19 aa db ec 04 ab-d3 33 0c 1b 92 db 3a 5b   .r.......3....:[
    0060 - 1a 5e c6 ff 61 68 87 fa-e0 00 ce 43 94 b4 5c 64   .^..ah.....C..\d
    0070 - 86 7f 56 88 ee 71 91 0b-b3 41 12 0d ae 77 b4 df   ..V..q...A...w..
    0080 - 61 84 0c 76 bf 12 70 f2-3d b8 b1 48 cd ff e2 7b   a..v..p.=..H...{
    0090 - ac d8 65 f8 61 c7 e7 8e-d3 06 98 35 fd d5 11 95   ..e.a......5....
    00a0 - 91 a2 d8 95 fc b9 5d ed-c2 4b 5d 45 d0 6e 02 99   ......]..K]E.n..
    00b0 - b1 2d a5 86 31 54 06 e1-7c 60 dc 81 01 49 9a 0b   .-..1T..|`...I..
    00c0 - 50 56 87 8d 3b 55 4d 8e-53 db c6 46 59 70 bf d1   PV..;UM.S..FYp..
    00d0 - b6 22 d5 36 71 66 d9 69-5d 91 3d 82 78 f7 3a d1   .".6qf.i].=.x.:.

    Start Time: 1594276699
    Timeout   : 7200 (sec)
    Verify return code: 20 (unable to get local issuer certificate)
    Extended master secret: no
    Max Early Data: 0
---
read R BLOCK
---
Post-Handshake New Session Ticket arrived:
SSL-Session:
    Protocol  : TLSv1.3
    Cipher    : TLS_AES_256_GCM_SHA384
    Session-ID: C937B1E7244B66542A204A57B63B6EECBEA34922740ACF0E95F8CEE676DAFE80
    Session-ID-ctx:
    Resumption PSK: 44BC6A3EB2CF2FEC82C1C08C58F25601921C3E8558AFA17ECF37B802B9A02E22B3537B267545803903764156A16FABB6
    PSK identity: None
    PSK identity hint: None
    SRP username: None
    TLS session ticket lifetime hint: 600 (seconds)
    TLS session ticket:
    0000 - e0 1c ce db 80 2b cd b1-11 af 49 73 0b 96 ab cc   .....+....Is....
    0010 - 24 07 ff 06 ff 62 e9 3c-fd 31 a1 93 c9 6b 5e 32   $....b.<.1...k^2
    0020 - 9f 77 1f 67 1a 95 44 e6-00 73 8f ac 0f 90 37 6f   .w.g..D..s....7o
    0030 - 6f a1 16 62 50 64 d7 0e-20 1f 5f 75 9f 47 85 98   o..bPd.. ._u.G..
    0040 - 84 d9 7b 7f e3 43 a9 d1-4e 58 4d 58 5f 19 8f fb   ..{..C..NXMX_...
    0050 - 4b d1 41 6b 93 45 27 8b-e0 7d a1 64 9b 2a f4 10   K.Ak.E'..}.d.*..
    0060 - b3 28 96 49 40 6f 88 27-4f b3 21 5a 38 3e c6 3c   .(.I@o.'O.!Z8>.<
    0070 - e8 43 f3 eb 69 e7 da be-c4 9a 64 b4 75 ad 79 69   .C..i.....d.u.yi
    0080 - 14 4e f8 1f cb 38 5f 33-80 18 ea b4 61 a9 ce ae   .N...8_3....a...
    0090 - 2d 43 66 83 dc 81 4c 15-7e d7 d3 8e 43 25 b2 16   -Cf...L.~...C%..
    00a0 - b0 a5 3d a4 1a f6 2b 5c-79 4b 83 46 77 ec 55 d3   ..=...+\yK.Fw.U.
    00b0 - 6b c5 ee 0f 17 46 3a c9-be 90 1f 07 f2 fc e9 2f   k....F:......../
    00c0 - 67 a5 de d8 ba 1f 6e 75-bb 74 42 b9 35 48 49 98   g.....nu.tB.5HI.
    00d0 - 85 25 b9 52 a5 05 e6 7e-e6 b2 5e 20 6e f9 38 35   .%.R...~..^ n.85

    Start Time: 1594276699
    Timeout   : 7200 (sec)
    Verify return code: 20 (unable to get local issuer certificate)
    Extended master secret: no
    Max Early Data: 0
---
read R BLOCK

假设大家要查看 authme.wechall.net 的证书,其 https 端口为 443

实行命令如下:

openssl s_client -showcerts -connect authme.wechall.net:443

运行结果:

C:\Users\chuwen>openssl s_client -showcerts -connect authme.wechall.net:443
CONNECTED(00000180)
depth=1 C = DE, ST = LowerSaxony, L = Peine, O = WeChall, OU = development, CN = gizmore, emailAddress = gizmore@wechall.net
verify error:num=19:self signed certificate in certificate chain
verify return:1
depth=1 C = DE, ST = LowerSaxony, L = Peine, O = WeChall, OU = development, CN = gizmore, emailAddress = gizmore@wechall.net
verify return:1
depth=0 C = DE, ST = LowerSaxony, L = Frankfurt, O = WeChall, OU = development, CN = authme.wechall.net, emailAddress = gizmore@wechall.net
verify return:1
13132:error:14094410:SSL routines:ssl3_read_bytes:sslv3 alert handshake failure:ssl\record\rec_layer_s3.c:1536:SSL alert number 40
---
Certificate chain
 0 s:C = DE, ST = LowerSaxony, L = Frankfurt, O = WeChall, OU = development, CN = authme.wechall.net, emailAddress = gizmore@wechall.net
   i:C = DE, ST = LowerSaxony, L = Peine, O = WeChall, OU = development, CN = g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Z8
AUKwGuDCp4OiinJRukokC+kY+qLLSbxR9NhVq0Vi6+T/xHKazOwCCZ0w9T7eCldF
OV7Yd85S8FtI0CvD5egs04OfCdnAMW2DK+JGTcSLmdbPGTddk4je9Oqi6QnVi2Yv
hNBaupEOAknl6Yo+bQEXaMwi1sS3uhpmrIxu5p8jdtb4qCkxRcl9dJcUSn/HWK7/
YrgbgPMYMjfA5wIDAQABMA0GCSqGSIb3DQEBBQUAA4GBAKiXqEGzNnPq0MxqQLcq
TxOF7H83MIXbHCIM4tJliYRm5wIs/Xg9koBT0Oi2PVXud3a/oOH0NBJTYF8bD0v0
s90fY8496QJs9BSVbTu4QWNZyvFpefBaO1fb0xeGlXFR8GHbUZ73rGLHE9qbZGrX
N7OyHBB6X0gXZ8lZ8nS49k3o
-----END CERTIFICATE-----
 1 s:C = DE, ST = LowerSaxony, L = Peine, O = WeChall, OU = development, CN = gizmore, emailAddress = gizmore@wechall.net
   i:C = DE, ST = LowerSaxony, L = Peine, O = WeChall, OU = development, CN = gizmore, emailAddress = gizmore@wechall.net
-----BEGIN CERTIFICATE-----
MIIDnDCCAwWgAwIBAgIJAMQYS3CTzcElMA0GCSqGSIb3DQEBBQUAMIGRMQswCQYD
VQQGEwJERTEUMBIGA1UECBMLTG93ZXJTYXhvbnkxDjAMBgNVBAcTBVBlaW5lMRAw
DgYDVQQKEwdXZUNoYWxsMRQwEgYDVQQLEwtkZXZlbG9wbWVudDEQMA4GA1UEAxMH
Z2l6bW9yZTEiMCAGCSqGSIb3DQEJARYTZ2l6bW9yZUB3ZWNoYWxsLm5ldDAeFw0x
NDA3MjkwOTA3MTRaFw0yNDA3MzEwOTA3MTRaMIGRMQswCQYDVQQGEwJERTEUMBIG
A1UECBMLTG93ZXJTYXhvbnkxDjAMBgNVBAcTBVBlaW5lMRAwDgYDVQQKEwdXZUNo
YWxsMRQwEgYDVQQLEwtkZXZlbG9wbWVudDEQMA4GA1UEAxMHZ2l6bW9yZTEiMCAG
CSqGSIb3DQEJARYTZ2l6bW9yZUB3ZWNoYWxsLm5ldDCBnzANBgkqhkiG9w0BAQEF
AAOBjQAwgYkCgYEAvdoWtpmxsCyhl8BFeZVqVk0JmVrkfls/uQVjzGiZ/9gV8G9A
REhNpQSWIBNdC52qv9xDVJmgGLAJhDL0Qhh7ia4F9W3Gt9ZOjGs4zT7ZkJwdr9r/
1N+7kwt1bd5pUEEiNHrqWppK9nh4DWueoOl/kGpOXRODkrR9lAdWnD+y4Z0CAwEA
AaOB+TCB9jAdBgNVHQ4EFgQUNGqLUeVuzA8iVTd94saA6ALAWMIwgcYGA1UdIwSB
vjCBu4AUNGqLUeVuzA8iVTd94saA6ALAWMKhgZekgZQwgZExCzAJBgNVBAYTAkRF
MRQwEgYDVQQIEwtMb3dlclNheG9ueTEOMAwGA1UEBxMFUGVpbmUxEDAOBgNVBAoT
B1dlQ2hhbGwxFDASBgNVBAsTC2RldmVsb3BtZW50MRAwDgYDVQQDEwdnaXptb3Jl
MSIwIAYJKoZIhvcNAQkBFhNnaXptb3JlQHdlY2hhbGwubmV0ggkAxBhLcJPNwSUw
DAYDVR0TBAUwAwEB/zANBgkqhkiG9w0BAQUFAAOBgQCLt0cRKdertOduwl/jfwlT
2eadw5dBtCryDO9d5PTWTkJl89MyYmQszj4Kx7NC2Yc3JklLI2q+XSgTdzn7VJ1W
HM4sC8XboLQttzBkI160Jgl/dYNcjX22vH2h4W8bGlAnq3MCMrjZnFhgWQTosJWh
qovBkUnH+FVo7S9eW+60hg==
-----END CERTIFICATE-----
---
Server certificate
subject=C = DE, ST = LowerSaxony, L = Frankfurt, O = WeChall, OU = development, CN = authme.wechall.net, emailAddress = gizmore@wechall.net

issuer=C = DE, ST = LowerSaxony, L = Peine, O = WeChall, OU = development, CN = gizmore, emailAddress = gizmore@wechall.net

---
Acceptable client certificate CA names
C = DE, ST = LowerSaxony, L = Brunswick, O = CSTx, OU = development, CN = authme.wechall.net, emailAddress = christian@wechall.net
C = DE, ST = LowerSaxony, L = Peine, O = WeChall, OU = development, CN = gizmore, emailAddress = gizmore@wechall.net
Client Certificate Types: RSA sign, DSA sign, ECDSA sign
Requested Signature Algorithms: RSA+SHA512:DSA+SHA512:ECDSA+SHA512:RSA+SHA384:DSA+SHA384:ECDSA+SHA384:RSA+SHA256:DSA+SHA256:ECDSA+SHA256:RSA+SHA224:DSA+SHA224:ECDSA+SHA224:RSA+SHA1:DSA+SHA1:ECDSA+SHA1
Shared Requested Signature Algorithms: RSA+SHA512:DSA+SHA512:ECDSA+SHA512:RSA+SHA384:DSA+SHA384:ECDSA+SHA384:RSA+SHA256:DSA+SHA256:ECDSA+SHA256:RSA+SHA224:DSA+SHA224:ECDSA+SHA224:RSA+SHA1:DSA+SHA1:ECDSA+SHA1
Peer signing digest: SHA256
Peer signature type: RSA
Server Temp Key: ECDH, P-256, 256 bits
---
SSL handshake has read 3056 bytes and written 458 bytes
Verification error: self signed certificate in certificate chain
---
New, TLSv1.2, Cipher is ECDHE-RSA-AES256-GCM-SHA384
Server public key is 4096 bit
Secure Renegotiation IS supported
Compression: NONE
Expansion: NONE
No ALPN negotiated
SSL-Session:
    Protocol  : TLSv1.2
    Cipher    : ECDHE-RSA-AES256-GCM-SHA384
    Session-ID:
    Session-ID-ctx:
    Master-Key: 1633D25BB4F817A340857CAF0C283284468941EF791EFDAF62E7F79FFE9C49C1727C5B78DF0DAC36A5C4BAD62CC6FDBB
    PSK identity: None
    PSK identity hint: None
    SRP username: None
    Start Time: 1594276479
    Timeout   : 7200 (sec)
    Verify return code: 19 (self signed certificate in certificate chain)
    Extended master secret: no
---

美高梅4858mgm 原生支撑 replaceAll 了

详见 MDN:https://developer.mozilla.org/zh-CN/docs/Web/美高梅4858mgm/Reference/Global_Objects/String/replaceAll

replaceAll() 方法返回一个新字符串,该字符串的所有满足;模式的匹配,都被用替换者;替换了。 模式 可以是一个字符串或者一个 RegExp, 并且替代者可以是一个字符串,也可以是每次匹配都要调用的函数。

不过兼容性很低,只有 Chrome 85、Firefox 77、Safari 13.1 开始支撑

Snipaste_2020-06-24_16-23-06.png

Chrome 85 运行结果

我66你66啊".replace("66", "喜欢");
>>> "我喜欢你66啊"

"我66你66啊".replaceAll("66", "喜欢");
>>> "我喜欢你喜欢啊"

Snipaste_2020-06-24_16-28-26.png

当然你还可以使用 replace 实现类似功能

"我666你666啊".replace(/666/g, "喜欢");
>>> "我喜欢你喜欢啊"

"我{{$tmp}}你{{$tmp}}啊".replace(/{{\$tmp}}/g, "喜欢");
>>> "我喜欢你喜欢啊"

(2019年8月) 第44次《中国互联网络发展状况统计报告》 | 中国(电信、移动、联通等...) IPv4/IPv6 持有量

第44次《中国互联网络发展状况统计报告》

参考数据:第44次《中国互联网络发展状况统计报告》
数据来源:中国互联网络信息中心

该报告没有写出 中国主要骨干网络国际出口带宽数
以下是为便于读者阅读,摘要的部分数据,具体以 第44次《中国互联网络发展状况统计报告》 为准

摘要

基础数据

仅为粗略摘要,可能有摘抄错误的地方,详细请查阅 第44次《中国互联网络发展状况统计报告》
  • 截至2019年6月,我国网民规模达 8.54亿,较2018年底增长 2598万,互联网普及率达 61.2%,较 2018年底提升1.6个百分点。
  • 截至2019年6月,我国手机网民规模达8.47亿,较2018年底增长2984万,我国网民使用手机上网的比例达99.1%,较2018年底提升0.5个百分点。
  • 截至2019年6月,我国农村网民规模为2.25亿,占网民整体的26.3%,较2018年底增长305万;城镇网民规模为6.30亿,占网民整体的73.7%,较2018年底增长2293万。
  • 截至2019年6月,我国网民使用手机上网的比例达99.1%;使用电视上网的比例为33.1%;使用台式电脑上网、笔记本电脑上网、平板电脑上网的比例分别为46.2%、36.1%和28.3%。
  • 截至2019年6月,我国IPv6地址数量为50286块/32,较2018年底增长14.3%。
  • 截至2019年6月,我国域名总数为4800万个;其中,“.CN”域名总数为2185万个,较2018年底增长2.9%,占我国域名总数的45.5%。
  • 截至2019年6月,我国即时通信用户规模达8.25亿,较2018年底增长3298万,占网民整体的96.5%;手机即时通信用户规模达8.21亿,较2018年底增长4040万,占手机网民的96.9%。
  • 截至2019年6月,我国网络资讯用户规模达6.86亿,较2018年底增长1114万,占网民整体的80.3%;手机网络资讯用户规模达6.60亿,较2018年底增长734万,占手机网民的78.0%。
  • 截至2019年6月,我国网络购物用户规模达6.39亿,较2018年底增长2871万,占网民整体的74.8%;手机网络购物用户规模达6.22亿,较2018年底增长2989万,占手机网民的73.4%。
  • 截至2019年6月,我国网上外卖用户规模达4.21亿,较2018年底增长1516万,占网民整体的49.3%;手机网上外卖用户规模达4.17亿,较2018年底增长2037万,占手机网民的49.3%。
  • 截至2019年6月,我国网络支付用户规模达6.33亿,较2018年底增长3265万,占网民整体的74.1%;手机网络支付用户规模达6.21亿,较2018年底增长3788万,占手机网民的73.4%。
  • 截至2019年6月,我国网络视频用户2规模达7.59亿,较2018年底增长3391万,占网民整体的88.8%;其中,短视频用户规模为6.48亿,占网民整体的75.8%。
  • 截至2019年6月,我国网约出租车用户规模达3.37亿,较2018年底增长670万,占网民整体的39.4%;我国网约专车或快车用户规模达3.39亿,较2018年底增长633万,占网民整体的39.7%。
  • 截至2019年6月,我国在线政务服务用户规模达5.09亿,占网民整体的59.6%。

趋势特点

部分摘要,详细请查阅 第44次《中国互联网络发展状况统计报告》

IPv6 地址数量全球第一,“.CN”域名数量持续增长
截至2019年6月,我国 IPv6地址 数量为 50286块 / 32,较2018年底增长14.3%,已跃居全球第一位。我国IPv6规模部署不断加速,IPv6 活跃用户数达 1.3 亿,基础电信企业已分配IPv6地址用户数 12.07亿3;域名总数为 4800万个,其中“.CN”域名总数为 2185万个,较2018年底增长 2.9%,占我国域名总数的 45.5%。2019年6月,首届“中国互联网基础资源大会2019”在京召开,大会围绕网络强国战略大局,回顾中国互联网二十五周年发展历程,聚焦互联网基础资源行业发展,展示前沿创新技术,搭建行业交流平台,推动行业规范有序发展。


互联网基础资源 (摘要)

(1)基础资源概述

截至 2019年6月,我国 IPv4 地址数量为 38598万个,IPv6 地址数量为 50286块/32。我国域名总数为 4800万个。其中,“.CN”域名总数为2185万个,占我国域名总数的 45.5%。

2018.12- 2019.6 互联网基础资源对比

IPv4* 2018年12月服2019年6月数据均含港、澳、台地区。
IPv6* 2018年12月服2019年6月数据均含港、澳、台地区。
域名 - 2018年12月* 2018年12月统计数据不含新通用顶级域名(New gTLD)数量。
域名 - 2019年6月* 2019年6月统计数据含新通用顶级域名(NewgTLD)数量。
2018年12月2019年6月半年增长量半年增长率
IPv4* (个)385,843 968385,979,136135,1680.04%
IPv6* (块/32)43,98550,2866,30114.3%
域名 (个)37,927,527*48,001,471*----
其中.CN域名 (个)21 ,243,47821 ,851 ,990608,5122.9%

中国各地区 IPv4 地址数量

地区地址量折合数
中国大陆338,991,36020A + 52B + 153C
中国台湾35,678,9762A + 32B + 107C
中国香港10,972,672167B + 110C
中国澳门336,1285B + 32C

大陆地区按分配单位 IPv4 地址数

单位名称地址量折合数
中国电信集团企业125,763,3287A+126B+255C
中国联合网络通信有限企业69,866,752*4A+42B+21C
CNNIC IP 地址分配联盟61,960,448*3A+177B+113C
中国移动通信集团企业35,294,2082A+26B+140C
中国教育和科研计算机网16,649,728254B+14C
中移铁通有限企业15,796,224*241B+8C
其它13,660,672208A+114C
合计338,991,36020A+52B+153C

大陆地区按分配单位 IPv4 地址数 - nowtime.cc 美高梅4858官方网站


中国大陆地区按分配单位 IPv6 地址数

单位名称地址量
中国电信集团企业16,387
CNNIC IP 地址分配联盟14,025*
中国教育和科研计算机网6,162
中国联合网络通信有限企业4,097
中国移动通信集团企业4,097
中移铁通有限企业2,049*
中国科技网17*
其它481
合计47,315

中国大陆地区按分配单位 IPv6 地址数


以往报告:

PHP 解析抖音短视频无水印源码(非调用 Ta 人接口解析)

Gitee 地址(不是我写的):https://gitee.com/uxqq/dyapi

我已经部署好的(我自己做了改动):https://api.nowtime.cc/v1/douyin/videoParse?url=视频链接
例如:https://api.nowtime.cc/v1/douyin/videoParse?url=https://v.douyin.com/sD6Wyk

返回结果:

{
  "code": 200,
  "msg": "获取成功",
  "data": {
    "title": "马斯克Boring企业开发地下立体交通隧道,系统智能管理,将让无间隔跟车成为可能#马斯克 #boring隧道",
    "img": "https://p9-dy.byteimg.com/img/tos-cn-p-0015/ec7c7768c516479489f8e6d62435bf95_1581734295~c5_300x400.jpeg?from=2563711402_large",
    "videourl": "http://v5-dy.ixigua.com/0cdda091045c66f99f261844772abf9d/5e4773a0/video/tos/hxsy/tos-hxsy-ve-0015/7a26bfc1603340cd981e76bca7906a91/?a=1128&br=0&bt=507&cr=0&cs=0&dr=0&ds=6&er=&l=2020021511290501001203410423F11F5A&lr=&qs=0&rc=amx2c2RzNXlvczMzOmkzM0ApaTNnOWkzZGQ5NzM5OWc6M2dxXzAvNl4wZjBfLS0xLS9zcy9gYy1iMi82YTUwYDReYjA6Yw%3D%3D&vl=&vr="
  }
}

PHP 代码:

<?php
header('Access-Control-Allow-Origin:*');
header('Content-type:application/json; charset=utf-8');
error_reporting(0);
if(!array_key_exists('url',$_REQUEST))exit(error("缺少参数"));
$url =@$_REQUEST;
preg_match("/http:\/\/v.douyin.com\/\S+/",$url['url'],$res);
if (!$res)exit(error("请检查你输入的链接"));
function error($str){
    return json_encode([
        "code"=>-1,
        "msg"=>$str
    ],JSON_UNESCAPED_UNICODE);
}
function curl($url, $getinfo=false)
{
    $ch = curl_init();
    curl_setopt($ch, CURLOPT_URL, $url);
    curl_setopt($ch, CURLOPT_NOBODY, false);
    curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
    curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, false);
    curl_setopt($ch, CURLOPT_TIMEOUT, 3600);
    curl_setopt($ch, CURLOPT_HTTPAUTH, CURLAUTH_ANY);
    curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
    curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false);
    curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
    curl_setopt($ch, CURLOPT_AUTOREFERER, true);
    curl_setopt($ch, CURLOPT_ENCODING, '');
    curl_setopt($ch, CURLOPT_HTTPHEADER, array('User-Agent:Mozilla/5.0 (苹果; CPU 苹果 OS 11_0 like Mac OS X) AppleWebKit/604.1.38 (KHTML, like Gecko) Version/11.0 Mobile/15A372 Safari/604.1'));
    if($getinfo){
        curl_exec($ch);
        $data = curl_getinfo($ch,CURLINFO_EFFECTIVE_URL);
    }else{
        $data = curl_exec($ch);
    }
    curl_close($ch);
    return $data;
}
preg_match_all("/itemId: \"([0-9]+)\"|dytk: \"(.*)\"/", curl($res[0]), $res, PREG_SET_ORDER);
if(!@$res[0][1] || !@$res[1][2])exit(error("数据异常"));
$arr = json_decode(curl("https://www.iesdouyin.com/web/api/v2/aweme/iteminfo/?item_ids={$res[0][1]}&dytk={$res[1][2]}"));
exit(json_encode([
    "code"=>1,
    "msg"=>"获取成功",
    "data"=>[
        'title'    => $arr->item_list[0]->desc,
        'img'      => $arr->item_list[0]->video->cover->url_list[0],
        'videourl' => curl($arr->item_list[0]->video->play_addr->url_list[0], true)
    ]
],JSON_UNESCAPED_UNICODE));
XML 地图 | Sitemap 地图