标签:部署 code -- pem session orm mon libs 安装
[准备 Jetson Nano 系统环境] sudo groupadd --system ggc_group sudo useradd --system ggc_user sudo apt install openjdk-8-jdk mkdir greengrass-dependency-checker-GGCv1.10.x cd greengrass-dependency-checker-GGCv1.10.x wget https://github.com/aws-samples/aws-greengrass-samples/archive/master.zip unzip master.zip cd aws-greengrass-samples-master unzip greengrass-dependency-checker-GGCv1.10.x.zip sudo ./check_ggc_dependencies | more cd /usr/lib/jvm/java-8-openjdk-arm64/jre/bin sudo cp java java8 vi ~/bashrc 添加下面的内容 export PATH=$PATH:/usr/lib/jvm/java-8-openjdk-arm64/jre/bin ############## [ 安装 python 3.7 ] ####################### 1.安装依赖包 sudo apt-get update sudo apt-get install build-essential python-dev python-setuptools python-pip python-smbus sudo apt-get install build-essential libncursesw5-dev libgdbm-dev libc6-dev sudo apt-get install zlib1g-dev libsqlite3-dev tk-dev sudo apt-get install libssl-dev openssl sudo apt-get install libffi-dev 2. 安装pyenv git clone git://github.com/pyenv/pyenv.git ~/.pyenv echo ‘export PYENV_ROOT="$HOME/.pyenv"‘ >> ~/.bashrc echo ‘export PATH="$PYENV_ROOT/bin:$PATH"‘ >> ~/.bashrc echo ‘eval "$(pyenv init -)"‘ >> ~/.bashrc exec $SHELL -l 3. 安装 python3.7.0 (3.7.1等版本都可以) pyenv install 3.7.0 -v 3.1安装完成之后,需要使用如下命令对数据库进行更新: pyenv rehash 3.2查看已经安装的python版本: pyenv versions * system (set by /root/.pyenv/version) 3.7.0 4.设置全局python版本 pyenv global 3.7.0 ################################################################################# [ 开始安装部署 GreenGrass ] sudo tar -xzvf greengrass-linux-aarch64-1.10.0.tar.gz -C / sudo tar -xzvf <hash-setup>.tar.gz -C /greengrass cd /greengrass/certs/ sudo wget -O root.ca.pem https://www.amazontrust.com/repository/AmazonRootCA1.pem cat root.ca.pem cd /greengrass/ggc/core/ sudo ./greengrassd start ps aux | grep PID-number ps aux | grep -E ‘greengrass.*daemon‘ ################################################################################# [报错]GreenGrassSession is not authorized to perform: GetGroupVersion [原因]如果多次部署greengrass,并且设置了全局的role,就会出现上面的错误。 [解决方案]在全局的setting中解除全局的role。 点击 Detach role。 重新部署应用,然后再重新设置全局的role即可。
标签:部署 code -- pem session orm mon libs 安装
原文地址:https://www.cnblogs.com/cloudrivers/p/12149116.html