我试图在EC2实例中安装scrapyd服务来部署scrapy项目。
我做了什么:
1-导入用于将Scrapy包签名到APT密钥环的GPG密钥:
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 627220E7
2-使用以下命令创建/etc/apt/sources.list.d/scrapy.list文件:
sudo su -c "echo 'deb http://archive.scrapy.org/ubuntu scrapy main' | sudo tee /etc/apt/sources.list.d/scrapy.list"
3-安装scrapyd
sudo apt-get update && sudo apt-get install scrapyd
我收到以下错误:
Err:7 http://archive.scrapy.org/ubuntu precise InRelease
Could not connect to archive.scrapy.org:80 (54.83.53.20), connection timed out
Err:8 http://archive.scrapy.org/ubuntu scrapy InRelease
Unable to connect to archive.scrapy.org:http:
Reading package lists... Done
N: Ignoring file 'scrapy.listecho' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension
W: Failed to fetch http://archive.scrapy.org/ubuntu/dists/precise/InRelease Could not connect to archive.scrapy.org:80 (54.83.53.20), connection timed out
W: Failed to fetch http://archive.scrapy.org/ubuntu/dists/scrapy/InRelease Unable to connect to archive.scrapy.org:http:
W: Some index files failed to download. They have been ignored, or old ones used instead.
enter code here
谢谢你的帮助