我正在运行一个python脚本,该脚本检查服务器上的一个文本文件,然后根据它读取的内容打开一个中继。如果在一段时间后打开中继,脚本将发送一个GET请求来更新服务器上的文本文件,然后关闭中继。程序在一段时间内运行正常。我可以打开和关闭中继,当时间延迟超时时,它会更新服务器。如果我让程序运行,一段时间后什么也不做,我会得到以下错误。File "remote-relay.py", line 41, in <module>File "remote-relay.py
我已经在aws上创建了一个实例/数据库,当我试图通过我的终端连接到它时,通过运行下面的代码,我会得到一个错误。psql --host=testdb.c7hgibdbsgjm.eu-west-2.rds.amazonaws.com --端口=5432--用户名=postgres--密码-dbname=testdbpsql: error: could not connect to server: could not translate host name "testdb.c7hgibdbsgjm.eu-west-2.rds.amazonaws