[关闭]
@liruiyi962464 2024-07-10T10:30:11.000000Z 字数 666 阅读 52

nodejs安装+配置地图

oula

1. 安装nodejs

  1. dnf -y install nodejs
  2. npm config set registry https://registry.npmmirror.com -g
  3. npm config get registry https://registry.npmmirror.com

2. 安装n

  1. npm install n -g
  2. npm cache verify
  3. n 10 # 选择版本10 安装后npm出错
  4. n 16 # 装个新版的
  5. n #择机选择回10

3.上传地图文件

  1. // 安装7z
  2. 1、安装包在本地
  3. 2、解压
  4. mkdir 7zip --创建文件夹7zip
  5. mv 7z2301-linux-x64.tar.xz 7zip/ --移动
  6. cd 7zip
  7. tar -xvJf 7z2301-linux-x64.tar.xz --解压
  8. 输入ll 查看解压后的文件
  9. 3、安装
  10. cp 7zzs /usr/local/bin/
  11. 输入7zzs 查看是否安装成功
  12. 4、使用
  13. 解压文件
  14. 7zzs x 文件名.7z

地图插件

  1. cd /data/chinaMap/mapabc/roadmap
  2. export PATH=$PATH:/usr/local/node/node-v14.17.2-linux-x64/bin/
  3. echo $PATH
  4. cd /data/chinaMap/mapabc/roadmap
  5. source ~/.bashrc
  6. sudo nohup http-server>/data/chinaMapLogs/map.log 2>&1 &
  7. -- 上边不行用下边
  8. nohup http-server > /data/chinaMapLogs/map.log 2>&1 &
添加新批注
在作者公开此批注前,只有你和作者可见。
回复批注