上一页 1 2 3 4 5 6 7 8 9 ··· 12 下一页
摘要: server配置server.address指定server绑定的地址 server.compression.enabled是否开启压缩,默认为false. server.compression.excluded-user-agents指定不压缩的user-agent,多个以逗号分隔,默认值为:te 阅读全文
posted @ 2019-06-28 14:46 liuxm-刘小明 阅读(1287) 评论(0) 推荐(0) 编辑
摘要: 通用的git ignore文件 创建文件名 .gitignore 并复制以下内容 阅读全文
posted @ 2019-06-25 10:18 liuxm-刘小明 阅读(123) 评论(0) 推荐(0) 编辑
摘要: maven resource 组件可以把pom的变量替换到相关的resouces目录中的资源文件变量 示例项目:内容中心 (文章管理) 生成jar包,生成docker ,生成k8s文件 1.项目结构 2. 父级项目pom文件 2.2实体类 2.3接口 3 content-server项目 具体业务服 阅读全文
posted @ 2019-06-24 17:48 liuxm-刘小明 阅读(3752) 评论(0) 推荐(0) 编辑
摘要: nginx日志监控 yum install goaccess 安装使用教程 goaccess access.log -o ../html/report.html --real-time-html --time-format='%H:%M:%S' --date-format='%d-%b-Y' --l 阅读全文
posted @ 2019-06-12 18:23 liuxm-刘小明 阅读(276) 评论(0) 推荐(0) 编辑
摘要: Nginx基于连接探测,如果发现后端异常,在单位周期为fail_timeout设置的时间,中达到max_fails次数,这个周期次数内,如果后端同一个节点不可用,那么接将把节点标记为不可用,并等待下一个周期(同样时常为fail_timeout)再一次去请求,判断是否连接是否成功。如果成功,将恢复之前 阅读全文
posted @ 2019-06-12 18:19 liuxm-刘小明 阅读(2032) 评论(0) 推荐(0) 编辑
摘要: SpringBooot中的CommandLineRunner接口会在所有Spring Beans初始化之后,SpringApplication.run()之前执行。 1.添加pom引用 2.添加两个CommandLineRunner 3.启动项目 4.运行结果 阅读全文
posted @ 2019-06-11 09:53 liuxm-刘小明 阅读(5272) 评论(0) 推荐(0) 编辑
摘要: 1.设置pom引用 <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instan 阅读全文
posted @ 2019-06-10 15:53 liuxm-刘小明 阅读(1186) 评论(0) 推荐(0) 编辑
摘要: 解决方法:未在本地计算机上注册“Microsoft.Jet.OLEDB.4.0”提供程序 server2016 , win7或win8 64位调试程序,出现这样的错误提示:未在本地计算机上注册 Microsoft.Jet.OLEDB.4.0 提供程序 解决方法如下: 1.安装AccessDataba 阅读全文
posted @ 2019-05-30 17:21 liuxm-刘小明 阅读(4172) 评论(0) 推荐(0) 编辑
摘要: certbot 使用letsencrypt 生成免费https证书 以下内容网上整理,原文地址 https://segmentfault.com/a/1190000005797776 环境linux + nginx 1.安装CertBot certbot官网地址https://certbot.eff 阅读全文
posted @ 2019-05-25 10:15 liuxm-刘小明 阅读(948) 评论(0) 推荐(0) 编辑
摘要: #!/bin/bash appName=`ls|grep .jar$` if [ -z $appName ] then echo "Please check that this script and your jar-package is in the same directory!" exit 1 fi killForceFlag=$2 function star... 阅读全文
posted @ 2019-05-24 11:31 liuxm-刘小明 阅读(687) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 ··· 12 下一页