中间件
yelrihsss
很菜,所以都在看基础。
展开
-
nginx配置-gzip
cp usr/loca/nginx/sbin usr/loca/sbin/nginx.bak //备份。./configure --prefix=/usr/local/nginx --with-http_gzip_static_module //添加模块。先查看已经安装了哪些模块,然后在添加模块的时候把需要的模块都加上。如果已经安装了其他的模块,再重启就会覆盖掉原先的模块,原创 2023-09-11 15:24:47 · 707 阅读 · 0 评论 -
springboot 整合 oss
一、阿里云配置获取accessKeyIdaccessSecret创建桶bucketName二、demo1、oss.configimport org.springframework.beans.factory.annotation.Value;import org.springframework.context.annotation.Configuration;import...原创 2022-12-08 10:56:00 · 106 阅读 · 0 评论 -
springboot 整合 swagger
1、依赖<!-- swagger --><dependency> <groupId>io.springfox</groupId> <artifactId>springfox-boot-starter</artifactId> <version>3.0.0</version>...原创 2023-03-15 14:59:00 · 35 阅读 · 0 评论 -
springboot - 整合flyway
一、概念官网:https://flywaydb.org/数据库版本控制管理工具,通过集成Flyway可以实现启动项目时自动执行项目迭代升级。Flyway已经支持数据库包括:Oracle, SQL Server, SQL Azure, DB2, DB2 z/OS, MySQL (including Amazon RDS), MariaDB, Google Cloud SQL, Postgre...原创 2023-07-13 14:48:00 · 655 阅读 · 0 评论 -
docker&rancher 搭建新环境的过程
1、配置文件全局中配置-选择环境:spring.profiles.active=${PRO_ENV}application.properties 记录全局文件 常量dev、test、uat 记录各自的变量 比如数据库、redis等例如:提交代码,并升级jenkins打包升级,此时rancher会报错,因为数据库等地址还没有配置各自的地址2、升级原先服务的rancher先对刚...原创 2023-03-20 13:57:00 · 240 阅读 · 0 评论 -
docker - 删除TAG为<none>的镜像
1、查看所有镜像docker images2、查看所有标记为 none 的镜像docker images -f "dangling=true"3、移除所有标记为 none 的镜像docker rmi $(docker images -f "dangling=true" -q)无法解决:直接使用docker image prune...原创 2022-10-12 14:35:00 · 618 阅读 · 0 评论