会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
rrrzx
博客园
首页
新随笔
联系
订阅
管理
2020年4月19日
firewall设置
摘要: 一、查看活跃的区域 firewall-cmd --get-active-zones public interfaces: eth0 以后就可以针对public进行设置 二、查看当前public区域开启的服务 firewall-cmd --permanent --zone=public --list-
阅读全文
posted @ 2020-04-19 14:42 rrrzx
阅读(251)
评论(0)
推荐(0)
2020年4月13日
自定义配置类注入时开启提示
摘要: 用以下两个注解可以自定义配置类,可以把要注入的参数放在application.yml中@Configuration@ConfigurationProperties(prefix = "userinfo")但是在填写application.yml时并没有提示功能,需要加入配置处理器依赖 <depend
阅读全文
posted @ 2020-04-13 21:54 rrrzx
阅读(271)
评论(0)
推荐(0)
2020年4月11日
docker部署redis
摘要: 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
阅读(286)
评论(0)
推荐(0)
添加密码
摘要: CONFIG GET requirepass CONFIG SET requirepass
阅读全文
posted @ 2020-04-11 14:40 rrrzx
阅读(253)
评论(0)
推荐(0)
以终端形式启动linux
摘要: 查看当前状态 sudo systemctl get-default gracphical.target为图形化启动 multi-user.target为终端形式 使用sudo systemctl set-default multi-user.target设置
阅读全文
posted @ 2020-04-11 14:29 rrrzx
阅读(362)
评论(0)
推荐(0)
2020年4月9日
Centos部署docker
摘要: 零、增加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
阅读(215)
评论(0)
推荐(0)
2020年4月2日
docker mysql
摘要: 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
阅读(184)
评论(0)
推荐(0)
2020年3月26日
Cookie一坑
摘要: LocalDateTime localDateTime = LocalDateTime.now();DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyy年MM月dd日 HH时mm分ss秒");String time = loc
阅读全文
posted @ 2020-03-26 20:26 rrrzx
阅读(228)
评论(0)
推荐(0)
2020年3月10日
springboot热部署
摘要: 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
阅读(222)
评论(0)
推荐(0)
maven换仓库地址
摘要: 在安装目录下的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
阅读(359)
评论(0)
推荐(0)
下一页
公告