摘要: 使用docker-compose 大杀器来部署服务 上 我们都听过或者用过 docker,然而使用方式却是仅仅用手动的方式,这样去操作 docker 还是很原始。 好吧,可能在小白的眼中噼里啪啦的对着 term 一顿操作会很拉风,但是高手很不屑!在高手眼里…too young, too low. 因 阅读全文
posted @ 2019-03-08 16:16 brady-wang 阅读(737) 评论(0) 推荐(0)
摘要: 1、安装docker-compose(官网:https://github.com/docker/compose/releases) 安装: curl -L https://github.com/docker/compose/releases/download/1.25.0/docker-compos 阅读全文
posted @ 2019-03-08 16:14 brady-wang 阅读(313) 评论(0) 推荐(0)
摘要: 最近偶尔发现一个比较奇怪的现象,netstat 查看监听的服务端口时,却只显示了 tcp6 的监控, 但是服务明明是可以通过 tcp4 的 ipv4 地址访问的,那为什么没有显示 tcp4 的监听呢? 以 sshd 监听的 22 端口为例: 可以看到,netstat 显示表示 sshd 既监听在 i 阅读全文
posted @ 2019-03-08 13:44 brady-wang 阅读(20804) 评论(0) 推荐(1)
摘要: CentOs7 使用iptables防火墙开启关闭端口 # 0x01介绍 iptables命令是Linux上常用的防火墙软件,是netfilter项目的一部分iptables文件设置路径:命令:vim /etc/sysconfig/iptables-config 0x02注意事项 如果说你以前使用的 阅读全文
posted @ 2019-03-08 10:18 brady-wang 阅读(2155) 评论(0) 推荐(0)
摘要: 今天新增一个Docker服务器,Docker安装顺利,启动hello-world测试的时候却出现了问题; $ docker run hello-worldUnable to find image 'hello-world:latest' locallylatest: Pulling from lib 阅读全文
posted @ 2019-03-08 08:48 brady-wang 阅读(4036) 评论(0) 推荐(0)