上一页 1 ··· 14 15 16 17 18 19 20 21 22 ··· 39 下一页
摘要: nginx的default.nginx中添加 location ~ ^/mqtt { proxy_pass http://emqttd:8083; proxy_redirect off; proxy_set_header X-Real-IP $remote_addr; proxy_set_heade 阅读全文
posted @ 2020-09-15 17:06 坚强的小蚂蚁 阅读(1177) 评论(0) 推荐(0)
摘要: 脚本比较粗糙,可根据这个思想去改写自己的脚本 这里使用Python脚本来实现,熟悉subprocess.Popen, os.popen docker save 镜像名(不需要加tag) -o tarname.tar import re import os from subprocess import 阅读全文
posted @ 2020-04-27 17:27 坚强的小蚂蚁 阅读(2554) 评论(0) 推荐(0)
摘要: 一个类实例也可以变成一个可调用对象,只需要实现一个特殊方法__call__() class People: def __init__(self, name, age): self.name = name self.age = age def __str__(self): return "his na 阅读全文
posted @ 2020-04-15 14:07 坚强的小蚂蚁 阅读(131) 评论(0) 推荐(0)
摘要: 局部变量在函数执行完成后就被销毁了。那么如果在line函数中使用了line_conf的变量,当line_conf函数执行完成后,在全局环境中的line函数还能使用line_conf中的变量吗? def line_conf(): b = 15 def line(x): return 2*x + b r 阅读全文
posted @ 2020-04-14 14:21 坚强的小蚂蚁 阅读(133) 评论(0) 推荐(0)
摘要: model如下 class Publisher(models.Model): name = models.CharField(max_length=30) address = models.CharField(max_length=50) website = models.URLField() cl 阅读全文
posted @ 2020-04-01 14:20 坚强的小蚂蚁 阅读(312) 评论(0) 推荐(0)
摘要: https://www.jianshu.com/p/d43e73efefe1 如果www.a.com域设置了access-control-allow-origin:* http头, 其他任何域包括www.b.com域的js就可以使用Ajax技术读取到​www.a.com域的数据 阅读全文
posted @ 2020-03-05 18:21 坚强的小蚂蚁 阅读(179) 评论(0) 推荐(0)
摘要: 参考 https://www.cnblogs.com/yyxianren/p/10894708.html 阅读全文
posted @ 2020-03-03 16:22 坚强的小蚂蚁 阅读(135) 评论(0) 推荐(0)
摘要: 参考 https://www.cnblogs.com/kevingrace/p/9512287.html 阅读全文
posted @ 2020-03-03 12:45 坚强的小蚂蚁 阅读(1376) 评论(0) 推荐(0)
摘要: 这几个的参数的作用是向后端转发的时候添加头信息; proxy_set_header Host $host:$server_port; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_ad 阅读全文
posted @ 2020-03-03 10:53 坚强的小蚂蚁 阅读(632) 评论(0) 推荐(0)
摘要: 一. 修改普通docker run启动的容器的网段 https://blog.51cto.com/13670314/2345518?source=dra https://blog.csdn.net/wanhuaqiu/article/details/81052538(参考) 安装网桥管理工具 yum 阅读全文
posted @ 2019-09-19 17:19 坚强的小蚂蚁 阅读(2222) 评论(0) 推荐(0)
上一页 1 ··· 14 15 16 17 18 19 20 21 22 ··· 39 下一页