1. 找到内存占用最高的10个进程
bash
ps aux --sort=-%mem | head -102. 杀掉匹配完整命令行的进程
bash
pkill -f "命令"3. pm2 logs 指定行数
bash
pm2 logs my-app --lines 504. 部署后网页打不开
ping 不通,telnet、nslookup 都可以,可能是证书有问题
4.1. hans
- han (汉) s:simplified
- han (汉) t:tradition
5. 游戏
需要从游戏拿的:
- 账号
- 匹配
- 结算
6. standard-version
记性越来越差了,顺手记录下。
bash
npx standard-version --release-as patch -a --no-verify权限更新
bash
sudo chown -R username ./7. 修改 git remote 默认远程地址
bash
# 先看看当前配置
git config --list | grep remote
# 修改
git config branch.master.remote groupmaster 是分支名,不同项目不一样。
8. lint
bash
npx stylelint "**/*.scss" --fixbash
npx eslint --ext .ts,.js,.vue . --quiet --fix