08 2020 档案
摘要:1. 创建目录 mkdir -p /opt/nginx/conf mkdir -p /opt/nginx/html 2. 创建配置文件 touch /opt/nginx/conf/nginx.conf 在nginx.conf文件添加如下配置,多个端口监听 worker_processes 1; ev
阅读全文
摘要:需求说明 系统配置低了,且应用程序内一直在执行定时任务,在程序运行一段时间后,发现接口请求会变得很慢,需要每天定时凌晨重启服务器 脚本实现 1. linux 终端输入crontab -e,添加定时任务脚本命令 [root@localhost ~]# crontab -e 2. 在文件末尾追加 0 0
阅读全文
摘要:
SpringCloud整合Nacos实现配置中心
阅读全文

摘要:
前言 随着eureka的停止更新,如果同时实现注册中心和配置中心需要SpringCloud Eureka和SpringCloud Config两个组件;配置修改刷新时需要SpringCloud Bus消息总线发出消息通知(Kafka、RabbitMQ等)到各个服务完成配置动态更新,否则只有重启各个微
阅读全文
