node 最新版 yum 部署 +iview admin 线上部署 nginx配置

时间:2019-06-05 23:15:14   收藏:0   阅读:178
node 最新版 yum 部署

curl --silent --location https://rpm.nodesource.com/setup_10.x | sudo bash -

sudo yum remove -y nodejs npm

sudo yum install -y nodejs  npm

npm install -g cnpm --registry=https://registry.npm.taobao.org

iview admin 线上部署 nginx配置

主要是修改 将所有请求 都发送到 /index.html 处理。


location / {
      index  index.html  index.htm;
      try_files $uri $uri/   /index.html;
}

原文:https://blog.51cto.com/hequan/2405165

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!