Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer in troubleshooting or you can ask me on GitHub.
Quick StartCreate a new post1$ hexo new "My New Post"
More info: Writing
Run server1$ hexo server
More info: Server
Generate static files1$ hexo generate
More info: Generating
Deploy to remote sites1$ hexo deploy
More info: Deployment
安装nvm
1wget -qO- https://raw.githubusercontent.com/creationix/nvm/v0.40.4/install.sh | bash
大概率上面的命令不会成功,建议直接去官网仓库下载:https://github.com/nvm-sh/nvm/releases
将下载的tar.gz文件上传到服务器,我这里下载的 nvm-0.40.4.tar.gz
创建nvm目录
1mkdir -p ~/nvm
解压文件到nvm目录
1tar -xzvf nvm-0.40.4.tar.gz -C ~/nvm
配置环境变量
123export NVM_DIR="$HOME/nvm"[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # 这是加载nvm的脚本[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_co ...
