Pra*_*ske 4 postgresql amazon-web-services amazon-rds aws-cloudshell
我正在尝试从 AWS Cloud shell 安装 postgresql 客户端,但是出现以下错误:
Preparing your terminal...
Failed to open session : Timed out while opening the session
Trying to open session (Retrying. Attempt #1)
Connection is lost. Please refresh the browser to re-establish the connection.
[cloudshell-user@ip$ Try these commands to get started:
aws help or aws <command> help or aws <command> --cli-auto-prompt
[cloudshell-user@ip$ sudo apt install postgresql-client
sudo: apt: command not found
[cloudshell-user@ip$
Run Code Online (Sandbox Code Playgroud)
我使用下面的命令来安装 postgresql 客户端。
sudo apt install postgresql-client。
我们有什么方法可以从 AWS Cloud Shell 连接 AWS RDS PostgreSQL 吗?就像在 GCP Cloud Shell 中一样?当我尝试从 GCP Cloud shell 进行连接时,它允许我没有任何问题,但问题仍然存在于 AWS cloud shell 中。
感谢你的帮助。
cloudshell 在 Amazon Linux 2 上运行,它基于 centos 或 redhat enterprise Linux。它不是一个基于debian的系统,所以你不会找到apt和朋友。
您可以尝试使用 进行安装yum,但您可能最好使用亚马逊特定的工具:
sudo amazon-linux-extras install postgresql14
Run Code Online (Sandbox Code Playgroud)
目前版本 11、12、13 和 14 可用
| 归档时间: |
|
| 查看次数: |
3387 次 |
| 最近记录: |