<feed xmlns="http://www.w3.org/2005/Atom"> <id>https://fanyixuanf.github.io/</id><title>Fyx</title><subtitle>A minimal, responsive and feature-rich Jekyll theme for technical writing.</subtitle> <updated>2024-04-04T22:23:38+08:00</updated> <author> <name>fanyixuanf</name> <uri>https://fanyixuanf.github.io/</uri> </author><link rel="self" type="application/atom+xml" href="https://fanyixuanf.github.io/feed.xml"/><link rel="alternate" type="text/html" hreflang="zh" href="https://fanyixuanf.github.io/"/> <generator uri="https://jekyllrb.com/" version="4.3.3">Jekyll</generator> <rights> © 2024 fanyixuanf </rights> <icon>/assets/img/favicons/favicon.ico</icon> <logo>/assets/img/favicons/favicon-96x96.png</logo> <entry><title>Configure multiple Git accounts on the same computer</title><link href="https://fanyixuanf.github.io/posts/config/" rel="alternate" type="text/html" title="Configure multiple Git accounts on the same computer" /><published>2023-05-28T16:29:00+08:00</published> <updated>2023-05-28T16:29:00+08:00</updated> <id>https://fanyixuanf.github.io/posts/config/</id> <content src="https://fanyixuanf.github.io/posts/config/" /> <author> <name>fyx</name> </author> <category term="Blogging" /> <category term="Git" /> <summary> 为同一个电脑，配置多个 git 账号，其整体流程如下： 清空默认的全局 user.name 和 user.email 为不同的 git 账户生成不同的 ssh-key 将以上的 ssh-key 分别添加到 ssh-agent 信任列表 添加以上的公钥到自己的 git 账户中 在 config 文件配置多个 ssh-key 1. 清空默认的全局 user.name 和 user.email git config --global --unset user.name git config --global --unset user.email 2. 为不同的 git 账户生成不同的 ssh-key id_ras 是默认的文件名称，我们现在需要生成不同的 ssh-key，所以要设置不同的文件存储对应的公钥，比如：自己的 GitHub 账户，使用... </summary> </entry> <entry><title>算法</title><link href="https://fanyixuanf.github.io/posts/algorithms/" rel="alternate" type="text/html" title="算法" /><published>2023-05-03T17:19:00+08:00</published> <updated>2023-05-03T17:19:00+08:00</updated> <id>https://fanyixuanf.github.io/posts/algorithms/</id> <content src="https://fanyixuanf.github.io/posts/algorithms/" /> <author> <name>fyx</name> </author> <category term="Blogging" /> <category term="Algorithms" /> <summary> 线性搜索 线性搜索 </summary> </entry> <entry><title>The Go Playground</title><link href="https://fanyixuanf.github.io/posts/The-Go-Playground/" rel="alternate" type="text/html" title="The Go Playground" /><published>2023-05-03T16:50:00+08:00</published> <updated>2023-05-03T16:50:00+08:00</updated> <id>https://fanyixuanf.github.io/posts/The-Go-Playground/</id> <content src="https://fanyixuanf.github.io/posts/The-Go-Playground/" /> <author> <name>fyx</name> </author> <category term="Blogging" /> <category term="Go" /> <summary> The Go Playground </summary> </entry> <entry><title>OSI, TCP/IP Model</title><link href="https://fanyixuanf.github.io/posts/tcp/" rel="alternate" type="text/html" title="OSI, TCP/IP Model" /><published>2023-05-01T16:54:00+08:00</published> <updated>2023-05-01T16:54:00+08:00</updated> <id>https://fanyixuanf.github.io/posts/tcp/</id> <content src="https://fanyixuanf.github.io/posts/tcp/" /> <author> <name>fyx</name> </author> <category term="Blogging" /> <category term="Tutorial" /> <summary> OSI, TCP/IP Model 标准的七层模型，即OSI（Open System Interconnection）参考模型 理解各种协议和通信层、套接字的含义 IP：网络层协议；（高速公路） TCP和UDP：传输层协议；（卡车） HTTP：应用层协议；（货物）。HTTP(超文本传输协议)是建立在TCP协议之上的一种应用。HTTP连接最显著的特点是客户端发送的每次请求都需要服务器回送响应，在请求结束后，会主动释放连接。从建立连接到关闭连接的过程称为“一次连接”。 SOCKET：套接字，TCP/IP网络的API。(港口码头/车站)Socket是应用层与TCP/IP协议族通信的中间软件抽象层，它是一组接口。socket是在应用层和传输层之间的一个抽象层，它把TCP/IP层复杂的操作抽象为几个简单的接口供应用层调用已实现进程... </summary> </entry> <entry><title>WebSocket</title><link href="https://fanyixuanf.github.io/posts/websocket/" rel="alternate" type="text/html" title="WebSocket" /><published>2023-05-01T16:50:00+08:00</published> <updated>2023-05-01T16:50:00+08:00</updated> <id>https://fanyixuanf.github.io/posts/websocket/</id> <content src="https://fanyixuanf.github.io/posts/websocket/" /> <author> <name>fyx</name> </author> <category term="Blogging" /> <category term="Tutorial" /> <summary> 开始 原理： WebSocket 同 HTTP 一样也是应用层的协议，但是它是一种双向通信协议，是建立在 TCP 之上的。 WebSocket和Http的关系和异同点 每个WebSocket连接都始于一个HTTP请求。 具体来说，WebSocket协议在第一次握手连接时，通过HTTP协议在传送WebSocket支持的版本号，协议的字版本号，原始地址，主机地址等等一些列字段给服务器端 Upgrade首部，用来把当前的HTTP请求升级到WebSocket协议，这是HTTP协议本身的内容，是为了扩展支持其他的通讯协议。 如果服务器支持新的协议，则必须返回101 一个WebSocket连接是在客户端与服务器之间HTTP协议的初始握手阶段将其升级到Web Socket协议来建立的，其底层仍是TCP/IP连接 *** 相同点： ... </summary> </entry> </feed>
