我的电脑是Win7 64,我安装了vagrant和virtualbox 我通过以下方式安装了portia:
git clone https://github.com/scrapinghub/portia
vagrant up
cmd中的结果可以显示在:
==> default: Installing collected packages: slybot
==> default: Running setup.py develop for slybot
==> default:
==> default: warning: no files found matching 'slybot/splash-script-combined
.js'
==> default: Creating /usr/local/lib/python2.7/dist-packages/slybot.egg-link
(link to .)
==> default: Adding slybot 0.13.0b32 to easy-install.pth file
==> default: Installing slybot script to /usr/local/bin
==> default: Installing portiacrawl script to /usr/local/bin
==> default:
==> default: Installed /vagrant/slybot
==> default: Successfully installed slybot
==> default: Cleaning up...
==> default: Executing command: configure_nginx
==> default: Executing command: configure_initctl
==> default: Starting slyd service
==> default: =====================
The SSH command responded with a non-zero exit status. Vagrant
assumes that this means the command failed. The output for this command
should be in the log above. Please read the output to determine what
went wrong
鉴于此结果,我认为我已经成功安装了portia。
但是当我在Chrome浏览器中打开http://localhost:9001
或http://127.0.0.1:9001
时,没有任何事情发生。
当我打开'http://127.0.0.1:2222
'时,我可以找到:
SSH-2.0-OpenSSH_6.6.1p1 Ubuntu-2ubuntu2.8
Protocol mismatch.
当我打开'http://33.33.33.10
'时,我可以找到:
Welcome to nginx!
If you see this page, the nginx web server is successfully installed and working. Further configuration is required.
For online documentation and support please refer to nginx.org.
Commercial support is available at nginx.com.
Thank you for using nginx.
我也在Win7_Child_VHD系统中再次尝试,但结果是一样的 我也尝试在docker中安装portia,但它也失败了,我不记得结果 我也尝试在我的ubuntu vmware中安装portia:14.04,但它对我来说太复杂了,我不得不放弃。
这让我困惑了将近三个星期,如果我无法解决问题,我必须放弃。
我知道我可以在scrapinghub/portia中运行portia。 但我真的想知道如何在本地运行portia。所以我想知道如何解决这些问题。