ICode9

精准搜索请尝试: 精确搜索
首页 > 系统相关> 文章详细

LINUX系统下部署百度离线地图开发API

2021-06-08 21:55:48  阅读:308  来源: 互联网

标签:compose sudo 离线 apt Server API LINUX Docker docker


Bigemap离线地图发布服务器 for Linux

 

SDK下载地址:http://www.bigemap.com/reader/download/detail2019041117.html

当前版本:v1.2.1-slim

一站式搭建离线地图服务器,支持多种地图离线发布;提供快速WEB应用、WMTS、TMS等服务;支持二次开发调用;

系统要求

Bigemap Server 支持以下操作系统:

  • Windows 7, Windows Server 2008及以上*
  • CentOS 6
  • CentOS 7
  • Ubuntu 14.04
  • Ubuntu 16.04

注* 部署到 Windows 系统直接下载安装程序。部署到 Linux 系统按照以下步骤。

安装依赖项

在安装Bigemap Server之前,需要安装一下依赖项:

  • Wget
  • OpenSSL (optional)
  • Docker
  • Docker Compose
  • unzip

Wget、OpenSSL及unzip都是Bigemap Server安装脚本所需,Docker和Docker Compose是服务运行、集成容器。

CentOS 7 安装依赖项

# Most of these commands need to be run by the root user
$ sudo su

$ yum check-update
$ yum install -y epel-release
$ yum install -y wget openssl python-pip unzip

# Install Docker
$ curl -fsSL https://get.docker.com/ | sh

# Add your user to the Docker group. i.e. centos
$ usermod -aG docker <your-user-name>

# Enable the Docker daemon to start at system boot
$ systemctl enable docker.service

# Start the Docker daemon
$ systemctl start docker.service

# Install Docker Compose
$ pip install docker-compose

Ubuntu 14.04 安装依赖项

# Update the package database
$ sudo apt-get update

# Install Docker and Server dependencies
$ sudo apt-get install \
    linux-image-extra-$(uname -r) \
    linux-image-extra-virtual \
    apt-transport-https \
    ca-certificates \
    curl \
    software-properties-common \
    docker-ce \
    wget \
    openssl \
    unzip

# Add the Docker repository to APT sources
$ curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
$ sudo add-apt-repository \
   "deb [arch=amd64] https://download.docker.com/linux/ubuntu \
   $(lsb_release -cs) \
   stable"

# Update the package database with the Docker packages
$ sudo apt-get update

# Install Docker
$ sudo apt-get install -y docker-ce

# Add your user to the Docker group. i.e. ubuntu
$ sudo usermod -aG docker <your-user-name>

# Check the current release and, if necessary, update it in the command below
$ sudo curl -L \
    https://github.com/docker/compose/releases/download/1.18.0/docker-compose-`uname -s`-`uname -m` \
    -o /usr/local/bin/docker-compose

# Set execute permissions on docker-compose
$ sudo chmod +x /usr/local/bin/docker-compose

Ubuntu 16.04 安装依赖项

# Update the package database
$ sudo apt-get update

# Install Docker and Server dependencies
$ sudo apt-get install -y wget openssl python-pip unzip

# Add the Docker repository to APT sources
$ curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
$ sudo add-apt-repository \
   "deb [arch=amd64] https://download.docker.com/linux/ubuntu \
   $(lsb_release -cs) \
   stable"

# Update the package database with the Docker packages
$ sudo apt-get update

# Make sure you are about to install from the Docker repo
$ sudo apt-cache policy docker-ce

# Install Docker
$ sudo apt-get install -y docker-ce

# Add your user to the docker group. i.e. ubuntu
$ sudo usermod -aG docker <your-user-name>

# Check the current release and, if necessary, update it in the command below
$ sudo curl -L \
    https://github.com/docker/compose/releases/download/1.18.0/docker-compose-`uname -s`-`uname -m` \
    -o /usr/local/bin/docker-compose

# Set execute permissions on docker-compose
$ sudo chmod +x /usr/local/bin/docker-compose

安装 Bigemap Server

Bigemap Server Installer

Bigemap Server installer是命令行脚本(CLI)程序用于下载、安装Bigemap Server。

安装命令

命令 需要联网 描述
download 下载Bigemap Server
setup 安装Bigemap Server
list 查看发布的历史版本
remove 卸载Bigemap Server

下载 Installer

  1. 点击下载 bm-server-installer.zip
  2. 解压下载的zip文件: unzip bm-server-installer.zip
  3. 修改执行权限:chmod +x ./bm-server-installer
  4. 查看命令帮助:./bm-server-installer help

根据安装脚本帮助步骤完成安装。

标签:compose,sudo,离线,apt,Server,API,LINUX,Docker,docker
来源: https://blog.51cto.com/u_15262562/2883511

本站声明: 1. iCode9 技术分享网(下文简称本站)提供的所有内容,仅供技术学习、探讨和分享;
2. 关于本站的所有留言、评论、转载及引用,纯属内容发起人的个人观点,与本站观点和立场无关;
3. 关于本站的所有言论和文字,纯属内容发起人的个人观点,与本站观点和立场无关;
4. 本站文章均是网友提供,不完全保证技术分享内容的完整性、准确性、时效性、风险性和版权归属;如您发现该文章侵犯了您的权益,可联系我们第一时间进行删除;
5. 本站为非盈利性的个人网站,所有内容不会用来进行牟利,也不会利用任何形式的广告来间接获益,纯粹是为了广大技术爱好者提供技术内容和技术思想的分享性交流网站。

专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有