前面的的文章中,我已经将环境准备好了,现在需要是ngnix做负载均衡
ngnix在centos环境环境下,我直接用yum安装,修改配置文件参照
http://blog.csdn.net/xyang81/article/details/51702900
http { # ... 省略其它配置 upstream tomcats { server 192.168.0.100:8080; server 192.168.0.101:8080; server example.com:8080; } server { listen 80; location / { PRoxy_pass http://tomcats; } } # ... 省略其它配置}修改好以后启动即可。首先遇见的第一个问题
docker registry push错误“server gave HTTP response to HTTPS client”
解决办法 在客户端修改/etc/sysconfig/docker 加上ADD_REGISTRY='--add-registry 192.168.174.128:5000'
INSECURE_REGISTRY='--insecure-registry 192.168.174.128:5000'
参考 http://blog.csdn.net/dream_broken/article/details/52757386
如果找到那个配置文件,参考 http://www.CUOXin.com/hobinly/p/6110624.html
再次push 的时候出现 错误
TLS handshake error from 127.0.0.1:46038: tls: first record does not look like a TLS handshake
解决办法 注释掉 tls配置registry,config-example.ymlversion: 0.1log: fields: service: registrystorage: cache: layerinfo: inmemory filesystem: rootdirectory: /home/jojo/registryhttp: addr: :5000 secret: admin# tls: # certificate: /etc/ssl/demoCA/certs/cacert.pem# key: /etc/ssl/demoCA/private/cakey.pem参考 http://www.tuicool.com/articles/QJNjIjU
http://blog.csdn.net/renhuailin/article/details/50461651 这篇文章也提及到几个问题的决绝办法,可以参考
新闻热点
疑难解答