avatar
文章
464
标签
16
分类
76

Believe it

Believe it

ARP协议
发表于2021-03-29|计算机网络
nexthexonextbutterflyvolantisyearnyiliashokaindigoapollolandscapecactusmateryicarusfluidmaterial ARPAddress Resolution Protocol, 地址解析协议,实现IP地址到MAC地址的映射。 在局域网中,网络中实际传输的是“帧”,帧里面是有目标主机的MAC地址的。在以太网中,一个主机和另一个主机进行直接通信,必须要知道目标主机的MAC地址。但这个目标MAC地址是如何获得的呢?它就是通过地址解析协议获得的。所谓“地址解析”就是主机在发送帧前将目标IP地址转换成目标MAC地址的过程。ARP协议的基本功能就是通过目标设备的IP地址,查询目标设备的MAC地址,以保证通信的顺利进行。 ARP映射静态映射: 手动修改ARP表,比较复杂,难以维护。 动态映射: 不用自己修改,通过协议获取 如何映射广播: 在局域网中的任何时候,当主机需要寻找另一个主机的IP地址的时候,他会发送一个ARP请求报文,报文中包含了发送方的MAC地址、IP地址和接收方的IP地址,这个包被广播,局域网中的 ...
操作系统进程如何通信
发表于2021-03-29|操作系统OS
nexthexonextbutterflyvolantisyearnyiliashokaindigoapollolandscapecactusmateryicarusfluidmaterial 进程如何互相通信共享内存 操作系统通过页表让不同的进程共享一个物理地址空间,他们对应的逻辑地址空间可能不同,但是物理地址空间是相同的。共享内存不提供同步机制,我们需要额外的手段来保证同步。 管道管道的参数如下 1int pipe(int pipefd[2]); 成功则返回0,否则返回-1,pipefd中会得到两个文件描述符,一个可读,一个可写,就实现了管道,一般用于父子进程通信,父进程可fork,然后写pipefd[1], 子进程即可读pipefd[0], 或者父进程fork两次 命名管道123456# docker run --rm -it centos:centos8 bashmkfifo mypipefor i in {1..100}; do echo $i>mypipe; sleep 1s; done &for i in {1..10 ...
腾讯实习
发表于2021-03-27|实习
nexthexonextbutterflyvolantisyearnyiliashokaindigoapollolandscapecactusmateryicarusfluidmaterial 腾讯的实习暂时结束了,新的位置在哪我也不知道。这图还是去年的,哈哈哈哈。
k8s学习
发表于2021-03-25|DockerK8s
nexthexonextbutterflyvolantisyearnyiliashokaindigoapollolandscapecactusmateryicarusfluidmaterial k8s 学习总结 点我直接查看pdf文件
mermaid基本操作
发表于2020-05-01|Hexo
nexthexonextbutterflyvolantisyearnyiliashokaindigoapollolandscapecactusmateryicarusfluidmaterial Mermaid这是一个画图的东西,他可以画有向图、无向图、流程图、时序图、类图、状态图等等,官网在这有一个坑,就是md文件第一非空行不可以是#mermaid, 否则渲染失败,所以我这用了Mermaid作为开头, why this blog简单介绍一下用法,避免每次都去官网找半天 基础用法 参数 备注 TB top bottom BT bottom top RL right left LR left right TD same as TB 节点形状123456graph TB id1[id1] id2(id2) id3([id3]) id4[(id4)] id5((id5)) 123456graph TB id1[id1] id2(id2) id3([id3]) id4[(id4)] id5((id5)) 有向边无向边1234graph L ...
logstash
发表于2021-03-16|大数据ES
nexthexonextbutterflyvolantisyearnyiliashokaindigoapollolandscapecactusmateryicarusfluidmaterial 12345678# install logstashyum install -y java-1.8.0-openjdk.x86_64 wget vimwget https://artifacts.elastic.co/downloads/logstash/logstash-7.0.0.tar.gztar -xzvf logstash-7.0.0.tar.gzmv logstash-7.0.0 /usr/local/logstashecho "LOGSTASH_HOME=/usr/local/logstash" >> ~/.bashrcecho "PATH=\$LOGSTASH_HOME/bin:\$PATH" >> ~/.bashrcsource ~/.bashrc grok语法 https://github.com ...
filebeat
发表于2021-03-15|大数据ES
nexthexonextbutterflyvolantisyearnyiliashokaindigoapollolandscapecactusmateryicarusfluidmaterial 123456789101112131415161718192021222324252627curl -L -O https://artifacts.elastic.co/downloads/beats/filebeat/filebeat-7.5.1-x86_64.rpmrpm -vi filebeat-7.5.1-x86_64.rpmfilebeat modules enable logstashfilebeat setupcat<<EOF>/etc/filebeat/filebeat.ymlfilebeat.inputs:- type: log enabled: true paths: - /data/*.logfilebeat.config.modules: path: \${path.config}/modules.d/*.yml ...
docker-mysql
发表于2021-03-15|Database
nexthexonextbutterflyvolantisyearnyiliashokaindigoapollolandscapecactusmateryicarusfluidmaterial mysql安装可以酌情修改内存大小和交换内存大小。 12345678# filename: $HOME/data/mysql/conf/docker.cnf[mysqld]performance_schema_max_table_instances=400table_definition_cache=400table_open_cache=256performance_schema = offskip-host-cacheskip-name-resolve 12345678docker run \ --cpus 0.2 \ -d -e MYSQL_ROOT_PASSWORD=123456 \ --name mysql \ -v $HOME/data/mysql/data:/var/lib/mysql \ -v $HOME/data/mysql/conf:/etc/mysql/con ...
k8s故障
发表于2021-03-15|DockerK8s
nexthexonextbutterflyvolantisyearnyiliashokaindigoapollolandscapecactusmateryicarusfluidmaterial 很多POD处于evicted状态 12345#!/bin/bashfor pod in $(kubectl get pods|grep Evicted|awk '{print $1}');do kubectl delete pods $poddone
hexo博客搭建浅谈
发表于2020-04-05|Hexo
nexthexonextbutterflyvolantisyearnyiliashokaindigoapollolandscapecactusmateryicarusfluidmaterial 博客崩溃了 我很难受,重新开始配置一下,然后我记录一下过程 初始化博客script1hexo init 然后我碰到了第一个问题 script12345678910111213141516171819202122232425262728293031INFO Cloning hexo-starter https://github.com/hexojs/hexo-starter.gitCloning into '/Users/s/Documents/debug'...remote: Enumerating objects: 30, done.remote: Counting objects: 100% (30/30), done.remote: Compressing objects: 100% (24/24), done.remote: Total 161 (delta 1 ...
1…91011…47
avatar
fightinggg
O ever youthful, O ever weeping
文章
464
标签
16
分类
76
Follow Me
公告
This is my Blog
最新文章
智慧的疆界:从图灵机到人工智能2023-05-17
Transformer2023-03-28
2023你好2023-02-06
VPN与代理那些事2022-07-24
CPU架构介绍2022-07-19
分类
  • ACM238
    • 刷题实战56
      • CodeForces7
      • bzoj4
      • hdu19
      • uoj1
      • 比赛15
      • 洛谷3
标签
AI AspectJ CPU docker 结构体中的引用 SpringFox使用 跟我一起写编译器 GPT linux指令 读书,HTTP 读书 flag Transformer Proxy VPN nginx
归档
  • 五月 20231
  • 三月 20231
  • 二月 20231
  • 七月 20223
  • 五月 20221
  • 三月 20221
  • 二月 20221
  • 一月 20221
网站资讯
文章数目 :
464
本站访客数 :
本站总访问量 :
最后更新时间 :
©2020 - 2023 By fightinggg
框架 Hexo|主题 Butterfly