linux dpkg查看运行库,安装与启动 - Linux下OpenEdge安装及环境配置 - 《边缘计算 OpenEdge 文档》 - 书栈网 · BookStack...

Linux下OpenEdge安装及环境配置OpenEdge 主要使用 Go 语言开发,支持两种运行模式,分别是 docker 容器模式和 native 进程模式。

本文主要介绍 OpenEdge 程序的安装以及运行所需环境的安装与配置。

OpenEdge 程序安装

前往下载页面找到机器对应版本并进行下载,完成后解压到任意目录。(推荐下载最新版程序运行包)

注: 官方下载页面仅提供容器模式程序运行包,如需以进程模式运行,请参考从源码编译相关内容。

运行环境配置

Docker 安装

可通过以下命令进行安装:curl-sSL https://get.docker.com | sh

支持平台:x86_64-centos-7

x86_64-fedora-28

x86_64-fedora-29

x86_64-debian-jessie

x86_64-debian-stretch

x86_64-debian-buster

x86_64-ubuntu-trusty

x86_64-ubuntu-xenial

x86_64-ubuntu-bionic

x86_64-ubuntu-cosmic

s390x-ubuntu-xenial

s390x-ubuntu-bionic

s390x-ubuntu-cosmic

ppc64le-ubuntu-xenial

ppc64le-ubuntu-bionic

ppc64le-ubuntu-cosmic

aarch64-ubuntu-xenial

aarch64-ubuntu-bionic

aarch64-ubuntu-cosmic

aarch64-debian-jessie

aarch64-debian-stretch

aarch64-debian-buster

aarch64-fedora-28

aarch64-fedora-29

aarch64-centos-7

armv6l-raspbian-jessie

armv7l-raspbian-jessie

armv6l-raspbian-stretch

armv7l-raspbian-stretch

armv7l-debian-jessie

armv7l-debian-stretch

armv7l-debian-buster

armv7l-ubuntu-trusty

armv7l-ubuntu-xenial

armv7l-ubuntu-bionic

armv7l-ubuntu-cosmic

Ubuntu

使用命令sudo snap install docker// Ubuntu16.04 往后

或sudo apt install docker.io

即可完成 Docker 安装。

CentOS

使用命令yum install docker

即可完成 docker 安装。

注意 :Docker 安装完成后可通过一下命令查看所安装Docker版本。docker version官方提供 Dockerfile 为多阶段镜像构建,如后续需自行构建相关镜像,需要安装17.05 及以上版本的 Docker 来build Dockerfile。但生产环境可以使用低版本 Docker 来运行镜像,经目前测试,最低可使用版本为 12.0。

Debian 9/Raspberry Pi 3

使用以下命令完成安装:curl-sSL https://get.docker.com | sh

更多内容请参考官方文档。

Python 开发环境安装- OpenEdge 提供了 Python Runtime,支持 Python 2.7 版本的运行。

Ubuntu 18.04 LTS/Debian 9/Raspberry Pi 3

使用如下命令安装 Python 2.7:sudo apt update

sudo apt upgrade

sudo apt install python2.7

sudo apt install python-pip

CentOs

执行以下命令检查已安装Python版本:python-V

如果显示未安装,可使用以下命令进行安装:yum install python

yum install python-pip

或者通过源码编译安装:yum install gcc openssl-devel bzip2-devel

wget https://www.python.org/ftp/python/2.7.15/Python-2.7.15.tgz

tar xzfPython-2.7.15.tgz

make altinstall

curl"https://bootstrap.pypa.io/get-pip.py"-o"get-pip.py"

python2.7get-pip.py

输入命令查看 Python 版本为 2.7.* 后为安装正确。

指定默认 Python 版本

某些情况下需要指定默认 Python 版本为上述安装版本。通过以下命令完成(重启有效):aliaspython=/yourpath/python2.7

Python Runtime 依赖模块安装

按照上述步骤完成 Python 2.7版本的安装后,需要安装 Python Runtime 运行所需模块:pip install pyyaml protobuf grpcio

常见问题

A. Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Get http://%2Fvar%2Frun%2Fdocker.sock/v1.38/images/json: dial unix /var/run/docker.sock: connect: permission denied提供管理员权限

通过以下命令添加当前用户到docker用户组:sudo usermod-aG docker ${USER}

su-${USER}

如提示没有 docker group,使用如下命令创建新docker用户组后再执行上述命令:sudo groupadd docker

B. Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?

按照问题A解决方案执行后如仍报出此问题,重新启动docker服务即可。

例,CentOs 下启动命令:systemctl start docker

最后更新于 2018-12-28 10:23:09

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
QAD ERP专用数据库及程序开发语言手册 ABL Reference Preface This Preface contains the following sections: * Purpose * Audience * Organization * Using this manual * Typographical conventions * Examples of syntax descriptions * Example procedures * OpenEdge messages * Third party acknowledgements Purpose This book describes ABL (Advanced Business Language), which is the OpenEdge® programming language for building business applications. It covers all ABL statements, functions, phrases, operators, preprocessor directives, special symbols, widgets, handles, classes, interfaces, attributes, methods, properties, and events. Audience This book is intended for programmers who develop applications using ABL and for anyone who needs to read and understand ABL code. Organization This book consists of the following sections: * A dictionary of ABL statements, functions, phrases, operators, preprocessors, and special symbols. * A dictionary of ABL widgets. * A dictionary of ABL handles. * A dictionary of ABL attributes and methods (for handles). * A dictionary of ABL handle-based object events. * A dictionary of ABL classes and interfaces. * A dictionary of ABL properties and methods (for classes). * A dictionary of ABL class events and event methods * An index of ABL keywords. Using this manual OpenEdge provides a special purpose programming language for building business applications. In the documentation, the formal name for this language is ABL (Advanced Business Language). With few exceptions, all keywords of the language appear in all UPPERCASE, using a font that is appropriate to the context. All other alphabetic language content appears in mixed case. For the latest documentation updates see the OpenEdge Product Documentation Overview page on PSDN: http://communities.progress.com/pcom/docs/DOC-16074. References to ABL compiler and run-time features ABL is both a compiled and an interpreted language that executes in a run-time engine.
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值