摘要: #1. 新建一个pw.pl文件专门用来生成密码 #!/usr/bin/perl use strict; my $pw=$ARGV[0]; print crypt($pw,$pw)."\n"; #2. 修改Nginx配置文件,添加,用户名和密码存放的位置 auth_basic "nginx status"; auth_basic_user_file /usr/local/web/nginx.0... 阅读全文
posted @ 2016-08-08 22:43 shiningrise 阅读(733) 评论(0) 推荐(0)
摘要: https://yq.aliyun.com/articles/55912 摘要: 什么是docker的link机制 同一个宿主机上的多个docker容器之间如果想进行通信,可以通过使用容器的ip地址来通信,也可以通过宿主机的ip加上容器暴露出的端口号来通信,前者会导致ip地址的硬编码,不方便迁移,并且容器重启后ip地址会改变,除非使用固定的ip,后者的通信方式比较单一,只能依靠监听在暴露出的端口的... 阅读全文
posted @ 2016-08-08 22:33 shiningrise 阅读(1030) 评论(0) 推荐(0)
摘要: taken from https://docs.docker.com/compose/install/ the only thing is that /usr is read only, but /opt/bin is writable and in the path, so: sd-xx~ # mkdir /opt/bin sd-xx~ # curl -L https://github.com... 阅读全文
posted @ 2016-08-08 19:29 shiningrise 阅读(308) 评论(0) 推荐(0)
// 侧边栏目录 // https://blog-static.cnblogs.com/files/douzujun/marvin.nav.my1502.css