1
0
mirror of https://gitee.com/coder-xiaomo/notes synced 2025-09-06 03:21:37 +08:00
Code Issues Projects Releases Wiki Activity GitHub Gitee

2021.12.26

This commit is contained in:
2021-12-26 20:44:44 +08:00
parent 6916a69daa
commit 41a3167862
41 changed files with 400 additions and 15 deletions

15
docs/.vuepress/dist/404.html vendored Normal file
View File

@@ -0,0 +1,15 @@
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
<meta name="generator" content="VuePress 2.0.0-beta.27">
<link rel="icon" href="/images/logo.png"><link rel="stylesheet" href="/css/search.css"><title>Coz的学习笔记</title><meta name="description" content="这是我的第一个 VuePress 站点">
<link rel="preload" href="/assets/js/runtime~app.f7ccc4cf.js" as="script"><link rel="preload" href="/assets/css/styles.792c48da.css" as="style"><link rel="preload" href="/assets/js/567.6fcf9384.js" as="script"><link rel="preload" href="/assets/js/app.159ad4c9.js" as="script">
<link rel="stylesheet" href="/assets/css/styles.792c48da.css">
</head>
<body>
<div id="app"><!--[--><div class="theme-container"><div class="theme-default-content"><h1>404</h1><blockquote>There&#39;s nothing here.</blockquote><a href="/" class="">回到首页</a></div></div><!----><!--]--></div>
<script src="/assets/js/runtime~app.f7ccc4cf.js" defer></script><script src="/assets/js/567.6fcf9384.js" defer></script><script src="/assets/js/app.159ad4c9.js" defer></script>
</body>
</html>

View File

@@ -0,0 +1 @@
iframe{border:2px solid #3eaf7c;width:100%;height:500px}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 140 KiB

View File

@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 49.484 28.284"><g transform="translate(-229 -126.358)" fill="currentColor"><rect width="35" height="5" rx="2" transform="rotate(-45 296.902 -200.874)"/><rect width="35" height="5" rx="2" transform="rotate(-135 169.502 20.377)"/></g></svg>

After

Width:  |  Height:  |  Size: 291 B

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 786 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 435 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 314 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 236 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 195 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 62 KiB

View File

@@ -0,0 +1 @@
<?xml version="1.0" encoding="UTF-8"?><svg xmlns="http://www.w3.org/2000/svg" width="12" height="13"><g stroke-width="2" stroke="#aaa" fill="none"><path d="M11.29 11.71l-4-4"/><circle cx="5" cy="5" r="4"/></g></svg>

After

Width:  |  Height:  |  Size: 216 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 91 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 59 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 164 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 67 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 64 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 39 KiB

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1 @@
"use strict";(self.webpackChunkvuepress=self.webpackChunkvuepress||[]).push([[491],{8491:(e,t,u)=>{u.r(t),u.d(t,{default:()=>v});var l=u(6252),n=u(3577),o=u(2262),a=u(7621),s=u(2791);const r={class:"theme-container"},c={class:"theme-default-content"},h=(0,l._)("h1",null,"404",-1),v=(0,l.aZ)({setup(e){var t,u,v;const d=(0,a.I)(),k=(0,s.X6)(),m=null!=(t=k.value.notFound)?t:["Not Found"],p=null!=(u=k.value.home)?u:d.value,f=null!=(v=k.value.backToHome)?v:"Back to home";return(e,t)=>{const u=(0,l.up)("RouterLink");return(0,l.wg)(),(0,l.iD)("div",r,[(0,l._)("div",c,[h,(0,l._)("blockquote",null,(0,n.zw)(m[Math.floor(Math.random()*m.length)]),1),(0,l.Wm)(u,{to:(0,o.SU)(p)},{default:(0,l.w5)((()=>[(0,l.Uk)((0,n.zw)((0,o.SU)(f)),1)])),_:1},8,["to"])])])}}})}}]);

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,8 @@
/* NProgress, (c) 2013, 2014 Rico Sta. Cruz - http://ricostacruz.com/nprogress
* @license MIT */
/*!
* vue-router v4.0.12
* (c) 2021 Eduardo San Martin Morote
* @license MIT
*/

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1 @@
(()=>{"use strict";var e,r,t,a,o,n={},s={};function i(e){var r=s[e];if(void 0!==r)return r.exports;var t=s[e]={exports:{}};return n[e].call(t.exports,t,t.exports,i),t.exports}i.m=n,e=[],i.O=(r,t,a,o)=>{if(!t){var n=1/0;for(u=0;u<e.length;u++){for(var[t,a,o]=e[u],s=!0,l=0;l<t.length;l++)(!1&o||n>=o)&&Object.keys(i.O).every((e=>i.O[e](t[l])))?t.splice(l--,1):(s=!1,o<n&&(n=o));if(s){e.splice(u--,1);var d=a();void 0!==d&&(r=d)}}return r}o=o||0;for(var u=e.length;u>0&&e[u-1][2]>o;u--)e[u]=e[u-1];e[u]=[t,a,o]},i.d=(e,r)=>{for(var t in r)i.o(r,t)&&!i.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},i.f={},i.e=e=>Promise.all(Object.keys(i.f).reduce(((r,t)=>(i.f[t](e,r),r)),[])),i.u=e=>"assets/js/"+({88:"v-3706649a",352:"v-5d7259d4",509:"v-8daa1a0e",652:"v-45077b3a",783:"v-077d9751"}[e]||e)+"."+{88:"859b00ff",293:"f4cccc85",352:"b4e6193d",491:"e62e5555",509:"fbae5ea0",634:"ee6a060d",652:"d3add6dd",783:"fecfa636"}[e]+".js",i.miniCssF=e=>"assets/css/"+e+".styles.ee6a060d.css",i.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),r={},t="vuepress:",i.l=(e,a,o,n)=>{if(r[e])r[e].push(a);else{var s,l;if(void 0!==o)for(var d=document.getElementsByTagName("script"),u=0;u<d.length;u++){var f=d[u];if(f.getAttribute("src")==e||f.getAttribute("data-webpack")==t+o){s=f;break}}s||(l=!0,(s=document.createElement("script")).charset="utf-8",s.timeout=120,i.nc&&s.setAttribute("nonce",i.nc),s.setAttribute("data-webpack",t+o),s.src=e),r[e]=[a];var c=(t,a)=>{s.onerror=s.onload=null,clearTimeout(p);var o=r[e];if(delete r[e],s.parentNode&&s.parentNode.removeChild(s),o&&o.forEach((e=>e(a))),t)return t(a)},p=setTimeout(c.bind(null,void 0,{type:"timeout",target:s}),12e4);s.onerror=c.bind(null,s.onerror),s.onload=c.bind(null,s.onload),l&&document.head.appendChild(s)}},i.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.p="/",a=e=>new Promise(((r,t)=>{var a=i.miniCssF(e),o=i.p+a;if(((e,r)=>{for(var t=document.getElementsByTagName("link"),a=0;a<t.length;a++){var o=(s=t[a]).getAttribute("data-href")||s.getAttribute("href");if("stylesheet"===s.rel&&(o===e||o===r))return s}var n=document.getElementsByTagName("style");for(a=0;a<n.length;a++){var s;if((o=(s=n[a]).getAttribute("data-href"))===e||o===r)return s}})(a,o))return r();((e,r,t,a)=>{var o=document.createElement("link");o.rel="stylesheet",o.type="text/css",o.onerror=o.onload=n=>{if(o.onerror=o.onload=null,"load"===n.type)t();else{var s=n&&("load"===n.type?"missing":n.type),i=n&&n.target&&n.target.href||r,l=new Error("Loading CSS chunk "+e+" failed.\n("+i+")");l.code="CSS_CHUNK_LOAD_FAILED",l.type=s,l.request=i,o.parentNode.removeChild(o),a(l)}},o.href=r,document.head.appendChild(o)})(e,o,r,t)})),o={523:0},i.f.miniCss=(e,r)=>{o[e]?r.push(o[e]):0!==o[e]&&{634:1}[e]&&r.push(o[e]=a(e).then((()=>{o[e]=0}),(r=>{throw delete o[e],r})))},(()=>{var e={523:0,512:0};i.f.j=(r,t)=>{var a=i.o(e,r)?e[r]:void 0;if(0!==a)if(a)t.push(a[2]);else if(/^(512|523|634)$/.test(r))e[r]=0;else{var o=new Promise(((t,o)=>a=e[r]=[t,o]));t.push(a[2]=o);var n=i.p+i.u(r),s=new Error;i.l(n,(t=>{if(i.o(e,r)&&(0!==(a=e[r])&&(e[r]=void 0),a)){var o=t&&("load"===t.type?"missing":t.type),n=t&&t.target&&t.target.src;s.message="Loading chunk "+r+" failed.\n("+o+": "+n+")",s.name="ChunkLoadError",s.type=o,s.request=n,a[1](s)}}),"chunk-"+r,r)}},i.O.j=r=>0===e[r];var r=(r,t)=>{var a,o,[n,s,l]=t,d=0;if(n.some((r=>0!==e[r]))){for(a in s)i.o(s,a)&&(i.m[a]=s[a]);if(l)var u=l(i)}for(r&&r(t);d<n.length;d++)o=n[d],i.o(e,o)&&e[o]&&e[o][0](),e[n[d]]=0;return i.O(u)},t=self.webpackChunkvuepress=self.webpackChunkvuepress||[];t.forEach(r.bind(null,0)),t.push=r.bind(null,t.push.bind(t))})()})();

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1 @@
"use strict";(self.webpackChunkvuepress=self.webpackChunkvuepress||[]).push([[88],{1801:(e,t,r)=>{r.r(t),r.d(t,{data:()=>n});const n={key:"v-3706649a",path:"/404.html",title:"",lang:"zh-CN",frontmatter:{layout:"404"},excerpt:"",headers:[],filePathRelative:null,git:{}}},8109:(e,t,r)=>{r.r(t),r.d(t,{default:()=>s});const n={},s=(0,r(3744).Z)(n,[["render",function(e,t){return null}]])},3744:(e,t)=>{t.Z=(e,t)=>{const r=e.__vccOpts||e;for(const[e,n]of t)r[e]=n;return r}}}]);

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1 @@
"use strict";(self.webpackChunkvuepress=self.webpackChunkvuepress||[]).push([[352],{1753:(e,t,r)=>{r.r(t),r.d(t,{data:()=>n});const n={key:"v-5d7259d4",path:"/guide.html",title:"",lang:"zh-CN",frontmatter:{home:!0,heroText:"目录",tagline:"🎉欢迎来到Coding Zhang的笔记小站🎊",actions:[{text:"回首页",link:"/",type:"secondary"}]},excerpt:"",headers:[],filePathRelative:"guide.md",git:{updatedTime:1638721323e3,contributors:[{name:"Coding Zhang",email:"2291200076@qq.com",commits:1}]}}},9784:(e,t,r)=>{r.r(t),r.d(t,{default:()=>o});var n=r(6252);const a={align:"center",style:{"margin-top":"70px","font-size":"larger"}},s=[(0,n._)("p",null,[(0,n._)("a",{href:"computer-networks"},"计算机网络笔记")],-1),(0,n._)("p",null,[(0,n._)("a",{href:"web-server"},"web服务器")],-1)],i={},o=(0,r(3744).Z)(i,[["render",function(e,t){return(0,n.wg)(),(0,n.iD)("div",a,s)}]])},3744:(e,t)=>{t.Z=(e,t)=>{const r=e.__vccOpts||e;for(const[e,n]of t)r[e]=n;return r}}}]);

View File

@@ -0,0 +1 @@
"use strict";(self.webpackChunkvuepress=self.webpackChunkvuepress||[]).push([[509],{6464:(e,t,r)=>{r.r(t),r.d(t,{data:()=>a});const a={key:"v-8daa1a0e",path:"/",title:"",lang:"zh-CN",frontmatter:{home:!0,heroImage:"/images/logo.png",heroAlt:" ",tagline:"🎉欢迎来到Coding Zhang的笔记小站🎊",actions:[{text:"查看目录",link:"/guide",type:"primary"}],footerHtml:!0,footer:'MIT Licensed | Copyright © 2021 <a href="http://www.only4.work/" target="_blank" rel="noopener noreferrer">张小弟之家</a>',sidebar:!1},excerpt:"",headers:[],filePathRelative:"README.md",git:{updatedTime:1638721323e3,contributors:[{name:"Coding Zhang",email:"2291200076@qq.com",commits:1}]}}},720:(e,t,r)=>{r.r(t),r.d(t,{default:()=>i});var a=r(6252);const n={align:"center",style:{"margin-top":"70px"}},o={},i=(0,r(3744).Z)(o,[["render",function(e,t){return(0,a.wg)(),(0,a.iD)("p",n,"梦想需要付诸行动,否则只能是梦")}]])},3744:(e,t)=>{t.Z=(e,t)=>{const r=e.__vccOpts||e;for(const[e,a]of t)r[e]=a;return r}}}]);

File diff suppressed because one or more lines are too long

36
docs/.vuepress/dist/css/search.css vendored Normal file
View File

@@ -0,0 +1,36 @@
/* 搜索框样式 */
:root {
--search-input-width: 12rem;
--search-result-width: 25rem;
}
/* 暗黑模式下,透明图内容看不清,设置为白色背景 */
/* 文章的图片 */
html.dark .page img,
/* 点击放大的大图 */
html.dark .medium-zoom-image {
background-color: white;
background-color: yellow;
filter:alpha(style=0, opacity=40, finishopacity=40);
}
/*
:root {
--search-bg-color: #ffffff;
--search-accent-color: #3eaf7c;
--search-text-color: #2c3e50;
--search-border-color: #eaecef;
--search-item-text-color: #5d81a5;
--search-item-focus-bg-color: #f3f4f5;
--search-input-width: 8rem;
--search-result-width: 20rem;
}
body {
background: black;
}
*/

15
docs/.vuepress/dist/guide.html vendored Normal file

File diff suppressed because one or more lines are too long

BIN
docs/.vuepress/dist/images/logo.png vendored Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.5 KiB

15
docs/.vuepress/dist/index.html vendored Normal file

File diff suppressed because one or more lines are too long

Binary file not shown.

View File

@@ -0,0 +1,139 @@
{
"_comment": "Web服务器配置文件配置后请重启服务器",
"default_comment": "Web服务器站点默认配置站点配置中未配置项将以默认配置为准",
"default": {
"comment_comment": "默认配置说明(仅做备注用,无实际作用)",
"comment": "默认配置",
"web_comment": "网站相关配置",
"web": {
"host_comment": "绑定的IP或域名字符串或数组",
"host": "127.0.0.1",
"port_comment": "绑定的端口号(数字或数组)",
"port": 80
},
"path_comment": "网站目录相关配置",
"path": {
"websitePath_comment": "网站目录(绝对路径,以 '/' 结尾)",
"websitePath": "/www/wwwroot/",
"runPath_comment": "网站运行目录(相对路径,相对网站目录,以 '/' 结尾)",
"runPath": "./",
"accessLogPath_comment": "访问日志目录",
"accessLogPath": "/www/wwwlogs/",
"errorLogPath_comment": "错误日志目录",
"errorLogPath": "/www/wwwlogs/"
},
"page_comment": "默认文档相关配置",
"page": {
"defaultPage_comment": "默认文档(数组)",
"defaultPage": [
"index.html",
"index.htm",
"default.html",
"default.htm"
],
"errorPage_comment": "默认错误页(键值对)",
"errorPage": {
"403": "./403.html",
"404": "./404.html",
"500": "./500.html",
"default": "./error.html"
}
},
"ssl_comment": "SSL证书公钥、私钥配置",
"ssl": {
"private_comment": "私钥所在目录",
"private": "./private.pem",
"public_comment": "公钥所在目录",
"public": "./public.pem"
},
"reverseProxy_comment": "反向代理",
"reverseProxy": {
"state_comment": "'on' / 1 / true 表示开启,'off' / 0 / false 表示关闭",
"state": "off",
"origin_comment": "代理源配置 [Todo] 待完善",
"origin": {
"host_comment": "被代理主机(字符串)",
"host": "127.0.0.1",
"port_comment": "被代理端口号(数字)",
"port": 8080
}
},
"logs": {
"format_comment": "日志记录默认格式,需以'\r\n'结尾。设计时参考Nginx [Todo] 待完善",
"format_comment_options": {
"_": "格式(以下是可选参数)",
"{remoteAddr}": "发起请求的客户端所在IP地址",
"{remoteUser}": "发起请求的客户端用户名称,获取不到则显示为'-'",
"{timeLocal}": "用来记录访问时间与时区(依赖服务器本地时间),形如'20/Aug/2017:21:15:19 +0800',获取不到则显示为'-'",
"{request}": "记录发起的请求,形如'POST /index.html?page=1 HTTP/1.1'",
"{status}": "记录响应状态,比如'200'",
"{requestTime}": "记录请求处理时间(以秒为单位、精确到毫秒)。从读取客户端第一个字节开始算起,到发送最后一个字节给客户端的时间间隔",
"{upstreamResponseTime}": "记录Web服务器从后端服务获取响应的时间以秒为单位、精确到毫秒多个请求的时间以逗号分隔",
"{requestLength}": "记录请求长度(包括请求行,请求头,请求体)",
"{gzipRatio}": "记录nginx gzip压缩比例获取不到则显示为'-'",
"{bytesSent}": "发送给客户端的字节数",
"{bodyBytesSent}": "发送给客户端的响应体字节数",
"{connectionRequests}": "单个连接的并发请求数",
"{httpReferer}": "记录请求引用页面地址",
"{httpUserAgent}": "记录用户代理信息(通常是浏览器信息)",
"{httpXForwardedFor}": "当为了承受更大的负载使用反向代理时web服务器不能获取真实的客户端IP$remote_addr获取到的是反向代理服务器的ip这种情况下代理服务器通常会增加一个叫做x_forwarded_for的信息头把连接它的真实客户端IP加到这个信息头里这样就能保证网站的web服务器能获取到真实IP获取不到则显示为'-'",
"{connection}": "连接序列号",
"{msec}": "写入日志的时间(以秒为单位、精确到毫秒)",
"{pipe}": "如果为管道请求则显示为p否则显示为'.'"
},
"format": "{timeLocal}\t{remoteAddr}\t{status}\t{request}\t{httpUserAgent}\r\n"
}
},
"server_comment": "Web服务器服务的站点每一个站点都作为server数组的一个元素",
"server": [
{
"comment": "网站首页",
"web": {
"host": "www.only4.work",
"port": [
80,
443
]
},
"ssl": {
"private": "./ssl/private.pem",
"public": "./ssl/public.pem"
},
"path": {
"path": "/www/wwwroot/www.only4.work",
"runPath": "./public/"
},
"page": {
"defaultPage": [
"index.php",
"index.html",
"index.htm",
"default.html",
"default.htm"
],
"errorPage_comment": "默认错误页(键值对)",
"errorPage": {
"403": "./error.html?code=403",
"404": "./error.html?code=404",
"500": "./error.html?code=500",
"default": "./error.html?code=unknown"
}
}
},
{
"comment": "网站首页(代理页面)",
"web": {
"host": "www.only4.work",
"port": 888
},
"reverseProxy": {
"state": true,
"origin": {
"host": "127.0.0.1",
"port_comment": "被代理端口号",
"port": 80
}
}
}
]
}

Binary file not shown.

File diff suppressed because one or more lines are too long

View File

@@ -240,30 +240,26 @@ sidebarDepth: 4
1. 发送时延:主机或路由器发送数据帧所需要的时间。
计算公式:$\sqrt{3x-1}+(1+x)^2$
###### 正在整理......
$1 *2* 3$
$$1 *2* 3$$
$\sqrt{3x-1}+(1+x)^2$
[百度](https://baidu.com/)111
计算公式:$发送时延={数据帧长度(bit)}/{发送速率(bit/s)}$
2.
##### 5
##### 6
###### 正在整理......
#### 1.6.2 计算机网络的非性能特征