ByteNote LogoByteNote

Navigation

  • Blog
  • 工具

    © 2025 ByteNote. All rights reserved.

    降低 webpack 打包时的内存占用

    Aug 2, 20221 min read

    对付 node 内存爆炸安装一个 jemalloc 有奇效,
    设置环境变量:

    LD_PRELOAD=/usr/lib/[libjemalloc.so](http://libjemalloc.so/)

    注意这个 so 文件不同发行版可能位置不一样

    相关文章

    OpenAI api代理的搭建 代码

    本文介绍了如何通过Cloudflare Worker、Nginx配置和Go语言实现OpenAI API的代理搭建,包括代码示例和配置步骤。

    Unchecked runtime.lastError: The message port closed before a response was received.

    The error "The message port closed before a response was received" in a browser extension indicates a communication failure between extension parts due to premature closure of the message port, potentially caused by various issues like crashes, network errors, or malformed messages.

    解决 Two output files share the same path but have different contents

    解决两个内容不同的文件共享同一路径的问题,需检查包名大小写并清空lock文件后重新生成。

    Linux ls -AlhS 参数全称和详细解释命令

    `ls -AlhS`命令以长格式显示所有文件和目录(包括隐藏的),按大小从大到小排序,并以人类可读的格式显示文件大小。

    Docker 挂载 Docker sock 文件的作用

    挂载 Docker sock 文件允许 Docker 容器访问主机 Docker Daemon,从而在容器内构建、发布镜像及运行其他容器。