SpiderClub / haipproxy

:sparkling_heart: High available distributed ip proxy pool, powerd by Scrapy and Redis
https://spiderclub.github.io/haipproxy/
MIT License
5.44k stars 912 forks source link

ARM support? #39

Closed zingdle closed 6 years ago

zingdle commented 6 years ago

在树莓派3b+上尝试部署docker:

pi@raspberrypi:~/haipproxy $ sudo docker-compose up
Starting haipproxy_splash_1 ... done
Starting haipproxy_redis_1  ... done
Starting haipproxy_haipproxy_1 ... done
Attaching to haipproxy_redis_1, haipproxy_splash_1, haipproxy_haipproxy_1
redis_1      | 1:C 08 Apr 05:27:23.229 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
redis_1      | 1:C 08 Apr 05:27:23.229 # Redis version=4.0.9, bits=32, commit=00000000, modified=0, pid=1, just started
redis_1      | 1:C 08 Apr 05:27:23.229 # Configuration loaded
redis_1      | 1:M 08 Apr 05:27:23.237 # Warning: 32 bit instance detected but no memory limit set. Setting 3 GB maxmemory limit with 'noeviction' policy now.
redis_1      | 1:M 08 Apr 05:27:23.238 * Running mode=standalone, port=6379.
redis_1      | 1:M 08 Apr 05:27:23.239 # WARNING: The TCP backlog setting of 511 cannot be enforced because /proc/sys/net/core/somaxconn is set to the lower value of 128.
redis_1      | 1:M 08 Apr 05:27:23.239 # Server initialized
redis_1      | 1:M 08 Apr 05:27:23.239 # WARNING overcommit_memory is set to 0! Background save may fail under low memory condition. To fix this issue add 'vm.overcommit_memory = 1' to /etc/sysctl.conf and then reboot or run the command 'sysctl vm.overcommit_memory=1' for this to take effect.
redis_1      | 1:M 08 Apr 05:27:23.239 * Ready to accept connections
splash_1     | standard_init_linux.go:190: exec user process caused "exec format error"
haipproxy_1  | standard_init_linux.go:190: exec user process caused "exec format error"
haipproxy_splash_1 exited with code 1
haipproxy_haipproxy_1 exited with code 1

猜测是架构的问题?

ResolveWang commented 6 years ago

不是很清楚这个问题。目前只在mac和linux上测试过,应该都是x86和amd的,可能是你说的这个原因

zingdle commented 6 years ago

3b+是1G内存,可能刚刚好不够...?

splash_1     | standard_init_linux.go:190: exec user process caused "exec format error"
haipproxy_1  | standard_init_linux.go:190: exec user process caused "exec format error"

exec format error 是不是因为elf格式的问题?

yemaobumei commented 6 years ago

image 我这种又是什么情况。ubuntu16.04

zingdle commented 6 years ago

@yemaobumei 参考 pull request #41