目录:导读
前言
1、docker部署tomcat
1)下载tomcat容器
到docker-hub中去寻找tomcat 8的版本,且支持jdk 8的版本
bash
docker pull tomcat:8.5.0-jre8

2)创建映射文件地址
bash
cd /root/docker
mkdir tomcat
mkdir webapps

3)把pinter.db项目放到webapps里,并解压

4)修改application.properties配置文件中数据库和redis信息
bash
cd WEB-INF/classes
vi application.properties

5)启动tomcat
bash
docker run -d -p 8080:8080 --network mtx --network-alias tomcat-pinter-1 -v /root/docker/tomcat/webapps:/usr/local/tomcat/webapps --privileged=true tomcat:8.5.0-jre8

6)在浏览器中验证是否可以访问http://10.196.130.168:8080/pinter/

7)tomcat扩容-集群式部署
本机的映射的端口号:8090
Tomcat的名字:tomcat-pinter-2
bash
docker run -d -p 8090:8080 --network mtx --network-alias tomcat-pinter-2 -v /root/docker/tomcat/webapps:/usr/local/tomcat/webapps --privileged=true tomcat:8.5.0-jre8

8)在浏览器中验证是否可以访问 http://10.196.130.168:8080/pinter/

2、docker部署redis
1)在docker中拉去redis镜像
bash
docker pull redis

2)在本机给redis创建配置文件
bash
mkdir --p /root/docker/redis/conf

上传redis自带的redis.conf到改目录下。
注意:有可能xftp无法链接,可以先传到其他目录,在linux中移动到该目录

编辑redis.conf配置文件
把bind 127.0.0.1 注释掉

通过requirepass设置密码

daemonize后台运行一定要为no

bash
docker run -d -p 6379:6379 --network mtx --network-alias redis -v /root/docker/redis/conf/redis.conf:/etc/redis/redis.conf --privileged=true redis redis-server /etc/redis/redis.conf

查看redis容器是否启动成功
bash
docker ps

|-------------------------------------|
| 下面是我整理的2023年最全的软件测试工程师学习知识架构体系图 |
一、Python编程入门到精通

二、接口自动化项目实战

三、Web自动化项目实战

四、App自动化项目实战

五、一线大厂简历

六、测试开发DevOps体系

七、常用自动化测试工具

八、JMeter性能测试

九、总结(尾部小惊喜)
不要让失败成为绊脚石,而是将其变成跳板,奋力跃向成功的彼岸;坚持不懈、勇往直前,你将发现,每一次努力都是迈向辉煌的重要一步。相信自己,无所不能!
在困境中不放弃,在挫折中不气馁,因为每一次奋斗都是成长的机会,每一次努力都是迈向成功的脚步。相信自己的能力,坚持追求,你定能创造出辉煌的未来!
不论风雨如何,心中的梦想永不熄灭;不论困难多大,奋斗的步伐永不停歇。相信自己的力量,勇往直前,只有坚持不懈,才能迎来辉煌的人生。