手把手教你基于Centos7搭建个人博客(白嫖版 , 不需要购买云服务器)
我们本次教程使用的博客框架是Hexo
[官网链接在此] https://hexo.io/
由于Hexo依赖于NPM 我们先安装NodeJs
第一步:
curl --silent --location https://rpm.nodesource.com/setup_10.x | sudo bash
curl --silent --location https://rpm.nodesource.com/setup_10.x | sudo bash
## Installing the NodeSource Node.js 10.x repo...
## Inspecting system...
+ rpm -q --whatprovides redhat-release || rpm -q --whatprovides centos-release || rpm -q --whatprovides cloudlinux-release || rpm -q --whatprovides sl-release
+ uname -m
## Confirming "el6-x86_64" is supported...
+ curl -sLf -o /dev/null 'https://rpm.nodesource.com/pub_10.x/el/6/x86_64/nodesource-release-el6-1.noarch.rpm'
## Downloading release setup RPM...
+ mktemp
+ curl -sL -o '/tmp/tmp.aoQY5ifb9m'