05 2021 档案

摘要:现象: 1、swagger Base URL地址和下边的不一致; 2、通过swagger调试接口提示网络错误; 3、返回的接口地址是自己电脑的外网IP; 原因: nginx反向代理时配置如下: proxy_set_header Host $remote_addr;proxy_set_header X 阅读全文
posted @ 2021-05-26 10:51 John_2011 阅读(2121) 评论(0) 推荐(0) 编辑
摘要:1、关闭firewalld.service (1)设置开机启用防火墙:systemctl enable firewalld.service (2)设置开机禁用防火墙:systemctl disable firewalld.service (3)启动防火墙:systemctl start firewa 阅读全文
posted @ 2021-05-21 17:42 John_2011 阅读(134) 评论(0) 推荐(0) 编辑
摘要:linux修改系统时区(包括ubuntu系统) 1、运行以下命令 tzselect 1.1 选择 亚洲Asia;1.2 继续选择 中国China;1.3 选择北京Beijing。1.4 最后确认2、创建时区软链 ln -sf /usr/share/zoneinfo/Asia/Shanghai /et 阅读全文
posted @ 2021-05-13 16:50 John_2011 阅读(490) 评论(0) 推荐(0) 编辑
摘要:现象: docker run 命令在容器内运行一个应用程序,提示 You have to remove (or rename) that container to be able to reuse that name. 原因: 启动的容器已在容器中使用,必须删除或者重命名该容器才能使用。 解决办法: 阅读全文
posted @ 2021-05-12 15:59 John_2011 阅读(1030) 评论(0) 推荐(0) 编辑
摘要:现象: # docker rmi f8ab12e03d53删除镜像提示Error response from daemon: conflict: unable to delete f8ab12e03d53 (must be forced) - image is referenced in multi 阅读全文
posted @ 2021-05-12 15:26 John_2011 阅读(670) 评论(0) 推荐(0) 编辑
摘要:配置jdk环境变量时,修改了/etc/profile执行后,发现ls等命令不可用了,也不能重新编辑vi了,执行如下命令即可再次重新编辑/etc/profile,修改正确即可正常使用 export PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/ 阅读全文
posted @ 2021-05-03 16:19 John_2011 阅读(359) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示