Linux 技巧
· One min read
SSH Remote Host Identification has changed
ssh-keygen -f ~/.ssh/known_hosts -R "[host]:port"
比如 ssh-keygen -f ~/.ssh/known_hosts -R "[www.baidu.com]:8022"
ssh-keygen -f ~/.ssh/known_hosts -R "[host]:port"
比如 ssh-keygen -f ~/.ssh/known_hosts -R "[www.baidu.com]:8022"
下面介绍如果永久删除 Ubuntu 系统 Files 侧边栏上的 Videos 或者 Public 等固定目录.
Amazon.cn 明年6月份会关闭电子书下载功能, 网上找了个备份Kindle电子书的教程, 整理如下.

收藏一些比较惊艳的代码片段
搭建直播服务
容器内使用 pm2-runtime
/**
* PM2 使用
* https://pm2.keymetrics.io/docs/usage/application-declaration/
*/
module.exports = {
apps: [{
name: "SPA_Application",
cwd: `${ROOT_DIR}/build`,
script: "serve",
instances: 1,
args: "",
env: {
PM2_SERVE_PORT: 8080,
PM2_SERVE_SPA: "true",
PM2_SERVE_PATH: ".",
PM2_SERVE_HOMEPAGE: './index.html'
},
env_production: {
},
env_development: {
},
max_restarts: 5,
restart_delay: 300_000,
out_file: "spa.log"
}]
}
国内 .npmrc 配置:
修改 nuxt.config.js 中的 webpack 配置: