随笔分类 -  Linux

摘要:man ssh_config: Three Test Host: ram5 ram6 ram7 /etc/ssh/sshd_config: GatewayPorts yes | no this will dertermin SSHD listen address Command Line: ssh 阅读全文
posted @ 2021-12-24 15:24 ascertain 阅读(186) 评论(0) 推荐(0) 编辑
摘要:Take below for example shopt -s dotglob # glob will include hidden file & directories cp -frv /etc/skel/{,.[^.]}* . -T --no-target-directory cp -frv / 阅读全文
posted @ 2021-12-16 11:18 ascertain 阅读(42) 评论(0) 推荐(0) 编辑
摘要:https://superuser.com/questions/710253/allow-non-root-process-to-bind-to-port-80-and-443 google search linux listen port 80 non-root 阅读全文
posted @ 2021-12-03 15:43 ascertain 阅读(30) 评论(0) 推荐(0) 编辑
摘要:display NUMA state journalctl --dmesg | grep -i NUMA dmesg --kernel --human | grep -i NUMA only have one node, so it doesn't matter. numastat # cat /s 阅读全文
posted @ 2021-12-01 17:14 ascertain 阅读(61) 评论(0) 推荐(0) 编辑
摘要:vm.max_map_count 限制一个进程可拥有的VMA(虚拟内存区域) max_virtual memory areas vm.max_map_count [65530] is too low 阅读全文
posted @ 2021-07-12 15:25 ascertain 阅读(129) 评论(0) 推荐(0) 编辑
摘要:Universal: Disable Bell In the Terminal sed -i '/bell-style none/c \set bell-style none' /etc/inputrc Ubuntu: Setup Fountain sed -i 's@http://.*.ubunt 阅读全文
posted @ 2021-06-18 13:22 ascertain 阅读(50) 评论(0) 推荐(0) 编辑
摘要:TCP BBR是谷歌出品的TCP拥塞控制算法。并提交到了 Linux 内核,从 4.9 开始,Linux 内核已经用上了该算法。BBR目的是要尽量跑满带宽,并且尽量不要有排队的情况。BBR可以起到单边加速TCP连接的效果。替代锐速再合适不过,毕竟免费。 Google提交到Linux主线并发表在ACM 阅读全文
posted @ 2020-12-26 20:18 ascertain 阅读(2006) 评论(0) 推荐(0) 编辑
摘要:/proc/sys/net/core/somaxconn系统中每一个端口的最大监听队列长度,default 128defines a ceiling value for the backlog argument of listen net.core.somaxconn = 2048 /proc/sy 阅读全文
posted @ 2020-12-11 16:15 ascertain 阅读(170) 评论(0) 推荐(0) 编辑
摘要:关于内核版本的定义: 版本性质:主分支ml(mainline),稳定版(stable),长期维护版lt(longterm) 版本命名格式为 “A.B.C”: 数字 A 是内核版本号:版本号只有在代码和内核的概念有重大改变的时候才会改变,历史上有两次变化:数字 B 是内核主版本号:主版本号根据传统的奇 阅读全文
posted @ 2020-10-15 20:08 ascertain 阅读(201) 评论(0) 推荐(0) 编辑
摘要:简介 rp_filter (Reverse Path Filtering)参数定义了网卡对接收到的数据包进行反向路由验证的规则。他有三个值,0、1、2,具体含意如下: 0:关闭反向路由校验 1:开启严格的反向路由校验。对每个进来的数据包,校验其反向路由是否是最佳路由。如果反向路由不是最佳路由,则直接 阅读全文
posted @ 2020-09-27 20:19 ascertain 阅读(10311) 评论(1) 推荐(2) 编辑
摘要:系统允许一个进程创建新进程,新进程即为子进程,子进程还可以创建新的子进程,形成进程树结构模型。整个linux系统的所有进程也是一个树形结构。树根是系统自动构造的,即在内核态下执行的0号进程,它是所有进程的祖先。由0号进程创建1号进程(内核态),1号负责执行内核的部分初始化工作及进行系统配置,并创建若 阅读全文
posted @ 2020-07-22 20:36 ascertain 阅读(673) 评论(0) 推荐(0) 编辑
摘要:32位下的内存地址分布图如下:1g为内核空间,3g为用户空间 内核空间:内核空间表示运行在处理器最高级别的超级用户模式(supervisor mode)下的代码或数据,内核空间占用从0xC0000000到0xFFFFFFFF的1GB线性地址空间,内核线性地址空间由所有进程共享,但只有运行在内核态的进 阅读全文
posted @ 2020-06-23 00:31 ascertain 阅读(918) 评论(0) 推荐(0) 编辑
摘要:ipv6.disable=1 禁用ipv6 sysctl --write net.ipv6.conf.all.disable_ipv6=1sysctl --write net.ipv6.conf.eth0.disable_ipv6=1 sysctl net.ipv4.ip_local_port_ra 阅读全文
posted @ 2020-06-16 18:41 ascertain 阅读(601) 评论(0) 推荐(0) 编辑
摘要:单内核设计: 把所有功能做成一个程序,每个功能在程序中使用线程实现(内核线程) 微内核设计: 每个功能使用独立子系统实现,联合完成 lsmod:内容来自/proc/modules modinfo:show information about linux kernel module modprobe: 阅读全文
posted @ 2020-06-14 18:05 ascertain 阅读(558) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示