hexo设备迁移

本文最后更新于 大约 4 年前,文中所描述的信息可能已发生改变。
  1. 备份整个blog文件夹(除 node_modules 文件夹以及一些临时文件)

  2. 在新设备上安装 node.js 、npm、git

  3. 使用npm全局安装hexo

  4. 在博客文件夹下执行npm install安装依赖

  5. 配置ssh密钥

    ssh-keygen -t rsa -C "[email protected]" 生成密钥后复制内容粘贴到代码托管网站的个人密钥设置中 github>settings>SSH and GPG keys>New SSH key

  6. 设置git全局身份

    git config --global user.name "your user name"

    git config --global user.email "[email protected]"

  7. 定位到备份下来的blog文件夹,执行hexo d部署尝试,可能会遇到以下错误提示:

    “Warning: Permanently added the RSA host key for IP address 'i.p.i.p' to the list of known hosts.”

    并会询问是否仍要建立连接(yes/no) yes 就可以了

在 WSL2 上安装 CUDA
Valaxy v0.19.5 驱动 | 主题 - Yun v0.19.5
本站已勉强运行0 天0 小时0 分0 秒(ノ`Д)ノ