当我试图为我的AWS Lightsail实例加载Cloud9集成开发环境时,它给我这个错误:
Installation Started
Package Cloud9 IDE 1
--------------------
Python version 2.7 is required to install pty.js. Please install Python 2.7 and try again. You can find more information on how to install Python in the docs: http://docs.aws.amazon.com/console/cloud9/python-ssh
exiting with 1
Failed Bash. Exit code 1我的Lightsail实例确实安装了python 2.7.15 (当我安装python --version时)。有没有人知道这个问题的解决方案?
发布于 2019-03-31 07:27:38
以下是将AWS Lightsail集成开发环境连接到AWS cloud9实例(Wordpress、Node、Python等)的演练。
转到https://lightsail.aws.amazon.com/ls/webapp/home/instances
使用UNIX/Linux/Wordpress或Node或其他任何工具创建一个实例。->
单击创建实例
进入网络,为实例创建一个静态IP
转到管理实例并使用基于web的SSH shell进行连接
sudo apt-get update
sudo apt-get安装-y python-minimal
sudo apt-get update
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.0/install.sh | bash
。~/.bashrc
nvm安装节点
哪个节点(应该打印像=> /home/bitnami/.nvm/versions/node/v11.13.0/bin/node)这样的东西
curl -L https://raw.githubusercontent.com/c9/install/master/install.sh | bash
wget -O - https://raw.githubusercontent.com/c9/install/master/install.sh | bash
转到https://us-west-2.console.aws.amazon.com/cloud9/home
使用SSH创建新环境
输入用户名bitnami和来自lightsail的实例的静态IP
环境路径=> /home/bitnami
Node Path ->输入来自lightsail =>的“which node”命令的值(例如/home/bitnami/.nvm/versions/node/v11.10.0/bin/node)
在新的cloud9配置的底部,有一个SSH,突出显示并复制它。
返回到lightsail =>中的云终端,运行vi ~/.ssh/authorized_keys
将Cloud9 ssh密钥添加到缺省密钥之后的2行
添加并保存cloud9密钥后,返回到您的SSH环境并单击“创建环境
您现在应该已通过AWS cloud9连接到您的lightsail实例
https://stackoverflow.com/questions/50785308
复制相似问题