接口测试的核心概念是什么
272
2022-11-06
Docker入门 (3) | 简单网站监控器
架构设计
2.实现
创建容器A并启动
sudo
将80端口映射到本地端口,打开浏览器访问run -i -t --link web:web --name web_test busybox /bin/sh
容器B是一个交互容器,运行后会进入shell模式,在shell模式访问80端口:
wget
显示了nginx服务器的页面结果
Connecting to web:80 (172.17.0.4:80) Welcome to nginx! Welcome to nginx!If you see this page, the nginx web server is successfully installed and working. Further configuration is required.For online documentation and support please refer to nginx.org. Commercial support is available at nginx.com.Thank you for using nginx.
由–tty(-t) 命令可以用键位ctrl+p+q来切换到终端
运行监控器
sudo
运行后会每秒一次显示web运行的状态
System up.
停止运行web
docker stop web
查看监控器日志
docker logs agent
System up. System up. nc: timed out
查看邮件日志
CH2 Example Mailer has started. Sending email: To: admin@work Message: The service is down!
版权声明:本文内容由网络用户投稿,版权归原作者所有,本站不拥有其著作权,亦不承担相应法律责任。如果您发现本站中有涉嫌抄袭或描述失实的内容,请联系我们jiasou666@gmail.com 处理,核实后本网站将在24小时内删除侵权内容。
发表评论
暂时没有评论,来抢沙发吧~