海思NAS安装Docusaurus文档服务

By Mige - 八月 03, 2023


安装nodejs环境

curl -fsSL https://deb.nodesource.com/setup_16.x | sudo -E bash -
sudo apt-get install -y nodejs

创建文档程序

npx create-docusaurus@latest my-website classic
cd my-website
npm run serve -- --build --port 3000 --host 0.0.0.0

开启服务

npm run serve

访问

http://ip:3000

 

  • Share:

You Might Also Like

0 comments