摘要: ##添加nacos.service文件,Exec开头的三个配置路径改为自己的nacos路径即可。 vim /lib/systemd/system/nacos.service [Unit] Description=nacos After=network.target [Service] Type=fo 阅读全文
posted @ 2022-07-15 09:29 张震-Miles 阅读(902) 评论(0) 推荐(0) 编辑
摘要: docker简介 Docker 是一个开源的应用容器引擎,基于 Go 语言 并遵从 Apache2.0 协议开源。 Docker 可以让开发者打包他们的应用以及依赖包到一个轻量级、可移植的容器中,然后发布到任何流行的 Linux 机器上,也可以实现虚拟化。 下载docker 根据自己的电脑系统在官网 阅读全文
posted @ 2021-05-12 21:28 张震-Miles 阅读(234) 评论(0) 推荐(0) 编辑
摘要: ####在项目使用feign拉取其他项目的服务时会报错Load balancer does not have available server for client ####修改配置文件 添加fetch-registry: true # eureka config eureka: instance: 阅读全文
posted @ 2021-01-15 15:45 张震-Miles 阅读(9620) 评论(1) 推荐(1) 编辑
摘要: ##添加EasyPoi依赖 <properties> <easypoi.version>3.1.0</easypoi.version> </properties> <dependencies> <!--EasyPoi--> <dependency> <groupId>cn.afterturn</gr 阅读全文
posted @ 2021-01-15 15:20 张震-Miles 阅读(5897) 评论(0) 推荐(0) 编辑
摘要: #####Zuul默认集成了Hystrix熔断机制和Ribbon负载均衡,不过超时策略都是默认值所以我们需要在配置文件中对这些策略进行手动配置。 hystrix: command: default: execution: isolation: strategy: SEMAPHORE thread: 阅读全文
posted @ 2020-10-26 15:27 张震-Miles 阅读(747) 评论(0) 推荐(0) 编辑
摘要: ###进入/etc/my.cnf vim /etc/my.cnf ###在[mysql]下添加 skip-grang-tables #启动安全模式 ###重启mysql服务 service mysql restart ###登录mysql,输入密码时直接回车 ###进入到mysql后,先切换成mys 阅读全文
posted @ 2020-10-21 18:31 张震-Miles 阅读(180) 评论(0) 推荐(0) 编辑
摘要: ##jdk1.8下载地址 https://repo.huaweicloud.com/java/jdk/8u202-b08/jdk-8u202-linux-x64.tar.gz ##安装jdk #检查是否安装jdk rpm -qa | grep jdk #如果有,先卸载已经安装的jdk rpm -e 阅读全文
posted @ 2020-10-20 20:01 张震-Miles 阅读(239) 评论(0) 推荐(0) 编辑
摘要: mysql5.6下载地址 http://mirrors.huaweicloud.com/mysql/Downloads/MySQL-5.6/mysql-5.6.48-linux-glibc2.12-x86_64.tar.gz 安装MySql ## 将下载好的安装包上传至服务器 /usr/local 阅读全文
posted @ 2020-10-20 19:01 张震-Miles 阅读(188) 评论(0) 推荐(0) 编辑
摘要: ##在/etc/init.d/nginx,并将一下内容添加至该文件中 vim /etc/init.d/nginx #!/bin/sh # # nginx - this script starts and stops the nginx daemon # # chkconfig: - 85 15 # 阅读全文
posted @ 2020-09-30 16:46 张震-Miles 阅读(1061) 评论(0) 推荐(0) 编辑
摘要: 在任意一个路径中创建startup.sh # 创建startup.sh vim /usr/local/project/startup.sh # 将环境配置写进去 不清楚自己配置的可以用 more /etc/profile查看 export JAVA_HOME=/usr/local/install/j 阅读全文
posted @ 2020-09-30 16:30 张震-Miles 阅读(4273) 评论(0) 推荐(0) 编辑