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

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;
}
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章