获得徽章 0
- 一个 nginx bypass 的细节:
location /prefix/ { proxy_pass http://unix:/tmp/1.sock:; }
会把 /prefix/ 传给 socket 文件,而
location /prefix/ { proxy_pass http://unix:/tmp/1.sock:/; }
不会展开赞过评论2 - Windows 杀死占用端口程序的脚本:
1. 使用 netstat -aon| findstr 3000 找到对应进程
2. 使用 taskkill /F /PID 8888 杀死对应进程等人赞过评论5 - 如何让 package.json 默认不加 ^ 前缀?两种选择:
1. 运行 npm config set save-prefix='' 和 yarn config set save-prefix false ,它们将全局有效。
2. 在项目目录创建 .npmrc 内容为 save-prefix= ,然后在项目目录创建 .yarnrc 内容为 save-prefix ""
如此一来,你用 npm i 或者 yarn add 安装依赖时,就不会有烦人的 ^ 前缀了。展开赞过43 - quick-lint-js 一个用 C++ 重写的 JS Lint 工具,比 eslint 快 110 倍(官方数据)。赞过评论1