Linux部署WBO在线白板

部署Node.js环境

wget https://nodejs.org/dist/v16.17.0/node-v16.17.0-linux-x64.tar.xz

在/opt目录下,解压Node.js安装包

tar -xf node-v16.17.0-linux-x64.tar.xz

ln -s  /opt/node-v16.17.0-linux-x64/bin/node /usr/local/bin/node 
ln -s /opt/node-v16.17.0-linux-x64/bin/npm /usr/local/bin/npm

vim /etc/profile 
export NODE_HOME=/opt/node-v16.17.0-linux-x64/bin/ 
export PATH=$PATH:$NODE_HOME:/usr/local/bin/

github下载WBO源码包

git clone https://github.com/lovasoa/whitebophir.git

npm设置国内淘宝镜像源

npm config set registry https://registry.npmmirror.com


vim /root/.npmrc 
registry=https://registry.npmmirror.com

安装WBO项目的依赖

npm install --production

启动WBO服务

PORT=5001 HOST=0.0.0.0 npm start

访问

http://x.x.x.x:5001

你可能感兴趣的:(web,web)