1.登陸google cloud.建立服務器,而且開啓遠程ssh訪問linux
進入控制檯,選取左側Compute Engine ==>VM instancesdocker
隨後點擊create數據庫
新建立的實例,地區就近選擇,訪問速度會快一點,亞洲地區隨便選bash
服務器類型選擇debian9服務器
安裝docker並運行docker並跑起wordpressssh
sudo apt update sudo apt install apt-transport-https ca-certificates curl gnupg2 software-properties-common -y curl -fsSL https://download.docker.com/linux/debian/gpg | sudo apt-key add - sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/debian $(lsb_release -cs) stable" sudo apt update apt-cache policy docker-ce sudo apt install docker-ce -y sudo systemctl status docker sudo gpasswd -a $USER docker newgrp docker docker ps docker pull wordpress:5.2.1 docker run -p 80:80 -d wordpress:5.2.1
2.建立數據庫,並開啓遠程訪問curl
3.編寫scrapy腳本爬取目標站並寫入到庫scrapy