摘要: 一、查看活跃的区域 firewall-cmd --get-active-zones public interfaces: eth0 以后就可以针对public进行设置 二、查看当前public区域开启的服务 firewall-cmd --permanent --zone=public --list- 阅读全文
posted @ 2020-04-19 14:42 rrrzx 阅读(222) 评论(0) 推荐(0) 编辑
摘要: 用以下两个注解可以自定义配置类,可以把要注入的参数放在application.yml中@Configuration@ConfigurationProperties(prefix = "userinfo")但是在填写application.yml时并没有提示功能,需要加入配置处理器依赖 <depend 阅读全文
posted @ 2020-04-13 21:54 rrrzx 阅读(247) 评论(0) 推荐(0) 编辑
摘要: 1.拉取镜像 docker pull redis:5.0.8 2.新建目录conf存放配置文件和目录data存放数据 mkdir docker/redis/{conf,data} -p 3.下载配置文件 curl https://raw.githubusercontent.com/antirez/r 阅读全文
posted @ 2020-04-11 22:38 rrrzx 阅读(260) 评论(0) 推荐(0) 编辑
摘要: CONFIG GET requirepass CONFIG SET requirepass 阅读全文
posted @ 2020-04-11 14:40 rrrzx 阅读(235) 评论(0) 推荐(0) 编辑
摘要: 查看当前状态 sudo systemctl get-default gracphical.target为图形化启动 multi-user.target为终端形式 使用sudo systemctl set-default multi-user.target设置 阅读全文
posted @ 2020-04-11 14:29 rrrzx 阅读(333) 评论(0) 推荐(0) 编辑
摘要: 零、增加sudo权限 在/etc/sudoers添加 ## Allow root to run any commands anywhere root ALL=(ALL) ALLrzx ALL=(ALL) ALL 一、更换仓库源 1.备份 sudo mv /etc/yum.repos.d/CentOS 阅读全文
posted @ 2020-04-09 19:37 rrrzx 阅读(193) 评论(0) 推荐(0) 编辑
摘要: docker run -id -p 3307:3306 --name mysql -v /Users/rzx/mysql_docker/conf:/etc/mysql/conf.d -v /Users/rzx/mysql_docker/logs:/logs -v /Users/rzx/mysql_d 阅读全文
posted @ 2020-04-02 15:04 rrrzx 阅读(169) 评论(0) 推荐(0) 编辑
摘要: LocalDateTime localDateTime = LocalDateTime.now();DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyy年MM月dd日 HH时mm分ss秒");String time = loc 阅读全文
posted @ 2020-03-26 20:26 rrrzx 阅读(208) 评论(0) 推荐(0) 编辑
摘要: maven依赖 <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-devtools</artifactId> <version>2.2.4.RELEASE</version> </depe 阅读全文
posted @ 2020-03-10 19:31 rrrzx 阅读(201) 评论(0) 推荐(0) 编辑
摘要: 在安装目录下的conf/setting.xml中添加 <mirrors> <mirror> <id>alimaven</id> <name>aliyun maven</name> <url>http://maven.aliyun.com/nexus/content/groups/public/</u 阅读全文
posted @ 2020-03-10 12:29 rrrzx 阅读(335) 评论(0) 推荐(0) 编辑