次世代文档编辑器 WriterSide 手把手部署到公网

打包

image
会在目录下打包出一个zip包,例如为blog.zip
上传到服务器

安装rz

yum install -y lrzsz

安装unzip

yum install unzip

安装nodejs和npm

sudo yum install nodejs
sudo yum install npm

安装http-server

npm install http-server -g

启动

解压压缩包

mkdir blog
unzip blog.zip

前台启动

http-server blog

后台启动

nohup http-server blog  > /dev/null 2>&1 &
posted @ 2024-01-19 11:48  iiiiiiiivan  阅读(321)  评论(0)    收藏  举报