Stuff you should know, stuff I should remember
- Nodejs
Ubuntu系统下安装Node.js v18.x:
curl -fsSL https://deb.nodesource.com/setup_18.x | sudo -E bash - &&\
sudo apt-get install -y nodejs
其他版本的安装方式见:https://github.com/nodesource/distributions
- Hexo
npm install -g hexo
- Nginx
apt install nginx
Nginx vhost Config
server {
listen 80;
server_name www.cyub.vip cyub.vip;
root /var/www/blog/public;
}
cd /var/www/blog
npm run build