自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(271)
  • 收藏
  • 关注

原创 揭秘操作系统文件描述符的最大数量:计算方法解析

操作系统最大可设置的文件描述符数量是由多个因素决定的,主要包括内核参数、系统资源(如内存)以及系统架构的限制。以下是详细的计算方式和影响因素:操作系统通过内核参数来限制文件描述符的最大数量。主要的参数包括:默认值通常是根据系统内存大小动态计算的,公式大致为:例如,如果系统有 8GB 内存(8388608 KB),则 大约为:可以通过修改 文件来调整:然后运行 使更改生效。1.2 这是单个进程可以打开的文件描述符的最大数量。可以通过 文件查看当前值:默认值通常是 (即 102

2025-03-03 09:30:24 613

原创 如何理解 epoll 中的水平触发 (LT) 和边缘触发 (ET)

水平触发(LT):重复提醒,直到你处理完为止;边缘触发(ET):只提醒一次,错过了就没。

2024-12-02 22:14:47 422

原创 如何理解 select、poll 和 epoll (大白话版)

用生活中的场景类比,可以更容易理解 `select`、`poll` 和 `epoll` 的工作原理和区别。

2024-12-02 22:11:15 535

原创 如何理解select、poll 和 epoll(专业版)

`select`、`poll` 和 `epoll` 是 Linux 系统中用于处理多路 I/O 复用的系统调用,它们主要用于监控多个文件描述符(如网络套接字)以判断是否有数据可以进行读写操作

2024-12-02 22:09:22 450

原创 Shebang(Hashbang)是什么

**Shebang**(也叫 **hashbang**)是一个特殊的字符序列,通常出现在脚本文件的第一行,用于指定该脚本应该由哪个解释器来执行

2024-12-01 20:17:35 631

原创 What is shebang or hashbang in script

A **shebang** (also known as **hashbang**) is a special sequence of characters at the beginning of a script file that indicates which interpreter should be used to execute the script.

2024-12-01 20:15:50 1070

原创 如何使用 Python 实现插件式架构

使用 Python 实现插件式架构可以通过动态加载和调用模块或类,构建一个易于扩展和维护的系统

2024-11-29 22:37:39 599

原创 如何分析 Binlog 日志

Binlog 是 MySQL 的二进制日志,用于记录对数据库执行的写操作

2024-11-29 09:47:21 1531

原创 如何分析 Nginx 日志

分析 Nginx 日志可以帮助我们了解服务器性能、流量来源、用户行为,以及诊断问题(如错误和攻击)

2024-11-28 22:27:57 1619 2

原创 Blinker 核心设计

Blinker 是一个用于实现发布/订阅模式的轻量级 Python 库

2024-11-25 21:44:42 575 1

原创 如何定位 Mysql 负载高

当mysql负载过高怎么办

2024-11-24 22:00:25 1783

原创 Nginx 架构与设计

Nginx 是一个高性能的 HTTP 和反向代理服务器

2024-11-23 22:23:46 642

原创 Redis 架构与设计

Redis 是一种开源的高性能内存键值数据库

2024-11-22 22:04:03 1050

原创 Dkron 架构与设计

Dkron 是一个分布式、容错的任务调度系统。

2024-11-21 22:34:28 718

原创 如何使用 Traceroute 命令

Traceroute 是一个强大的网络诊断工具

2024-11-20 17:17:10 6687

原创 How to Use the Traceroute Command: A Step-by-Step Guide

Traceroute is a powerful tool for diagnosing network issues, and with its advanced options, you can tailor it to suit your specific use case.

2024-11-20 17:11:10 806

原创 The Architecture and Design of Dramatiq

【代码】The Architecture and Design of Dramatiq。

2024-11-19 21:33:28 680

原创 Dramatiq 架构与设计

Dramatiq 的架构与设计以模块化为核心,结合 Actor、Broker 和 Worker 等模块,构建了一套可靠、高效、可扩展的分布式任务处理框架。Middleware 是 Dramatiq 的可插拔扩展机制,可以在任务的各个阶段(消息发送、接收、执行等)插入自定义逻辑。Dramatiq 是一个为分布式任务处理设计的轻量级异步任务队列系统,其架构和设计理念聚焦于。Worker 是后台运行的进程,从 Broker 中消费消息并执行对应的任务。装饰器定义的函数,表示可异步执行的任务。

2024-11-19 21:28:50 1217

原创 How To find the executable path of Chrome

【代码】How To find the executable path of Chrome。

2024-11-17 17:55:01 291

原创 How To open Chrome with proxy server

【代码】How To open Chrome with proxy server。

2024-11-17 17:51:36 988

原创 如何在 Dramatiq 中选择消息代理:Redis 与 RabbitMQ 对比指南

Redis 和 RabbitMQ 作为Dramatiq Broker的对比总结

2024-11-07 18:05:32 470

原创 Choosing Between Redis and RabbitMQ as Brokers in Dramatiq: A Comparative Guide

Choosing Between Redis and RabbitMQ as Brokers in Dramatiq: A Comparative Guide

2024-11-07 18:02:08 1082

原创 vscode extension 内部通信的几种方式

在 VSCode 扩展中,内部通信有多种方式可选,具体选择哪种方式取决于你的应用场景和需求。使用 Commands 是最常见和直接的方式,而 EventEmitter 适用于事件驱动的场景。Webview 和 Extension Host 之间的通信通常用于展示和处理复杂的 UI,而 Global State 和 Workspace State 则用于持久化和共享数据。依赖注入和扩展 API 适用于更复杂的模块化和跨扩展通信。

2024-08-23 13:55:08 1026 1

原创 How to Use the Arp Command

【代码】How to Use the Arp Command。

2024-05-07 08:57:26 284

原创 How to print the final Query sent to Elasticsearch in elasticsearch-dsl-py

# ElasticSearch # ElasticSearch DSL

2024-03-07 08:57:38 470

原创 How to fixed yarn version in project

# Package.json # Yarn

2024-03-01 10:27:57 233

原创 How to Implement a icon using Web Component

# Web Component # Icon

2024-02-25 09:51:39 547

原创 How to Implement a scrollbar using Web Component

# Web Component # Scrollbar

2024-02-24 08:58:26 656

原创 How to Implement a tour using Web Component

# Web Component # Tour

2024-02-22 09:14:34 589

原创 How to Implement a tag using Web Component

# Web Component # Tag

2024-02-20 09:26:32 369

原创 How to Implement a skeleton using Web Component

# Web Component # Skeleton

2024-02-19 09:17:47 609

原创 How to Implement a transfer using Web Component

# Web Component # Transfer

2024-02-18 09:05:21 1007

原创 How to Implement a timeline using Web Component

# Web Component # Timeline

2024-02-17 12:59:42 1076

原创 How to Implement a carousel using Web Component

# Web Component # Carousel

2024-02-16 08:27:51 1472

原创 How to Implement a cascader using Web Component

# Web Component # Cascader

2024-02-15 10:13:02 1286

原创 How to Implement a rate using Web Component

# Web Component # Rate

2024-02-14 09:53:44 820

原创 How to Implement a switch using Web Component

# Web Component # Switch

2024-02-14 09:51:34 751

原创 How to Implement a slider using Web Component

# Web Component # Slider

2024-02-14 09:50:06 900

原创 How to Implement a datetime picker using Web Component

# Web Component # Datetime Picker

2024-02-12 09:35:38 676

原创 How to Implement a date picker using Web Component

# Web Component # Date Picker

2024-02-11 21:34:51 841

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除