一、问题描述 容器中修改了/etc/hosts文件。手动测试已经生效。但是容器中的项目却还是访问的公网。 二、问题解决 修改dockerfile。在dockerfile中添加/etc/nsswitch.conf文件 RUN [ ! -e /etc/nsswitch.conf ] && echo 'h ...
分类:
其他好文 时间:
2021-06-18 20:07:20
阅读次数:
0
#更新yum软件管理器 yum -y update #安装docker yum install -y docker 2.配置docker 加速器 curl -sSL https://get.daocloud.io/daotools/set_mirror.sh | sh -s http://f1361 ...
分类:
其他好文 时间:
2021-06-18 20:01:26
阅读次数:
0
<div :style="{ color: activeColor, fontSize: fontSize + 'px' }"></div> data () { return { //初始样式 activeColor:'red', fontSize :30, }; }, //改变样式 this.ac ...
分类:
其他好文 时间:
2021-06-18 19:58:55
阅读次数:
0
用ffmpeg命令从视频文件中提取音频 命令:ffmpeg -i D:\AI\bili_data\test.mp4 -vn -y -acodec copy D:\AI\bili_data\output.aac # 从视频中提取音频 def video_to_audio(video_file,audi ...
分类:
编程语言 时间:
2021-06-18 19:49:50
阅读次数:
0
:is的作用有两个:1,动态切换组件 <!-- 组件会在 `件名` 改变时改变 --> <component :is="组件名变量"></component> <!-- 通过is特性,可以动态切换当前组件 --> <div v-bind:is="currentView"></div> <!-- v- ...
分类:
其他好文 时间:
2021-06-18 19:21:35
阅读次数:
0
<!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <title>计数器</title></head><body><div id="showNum">0</div><div class="butDiv"><button type= ...
分类:
Web程序 时间:
2021-06-18 19:10:19
阅读次数:
0
using System; using System.Net.Http; using System.Net.Http.Json; using System.Threading.Tasks; namespace ConsoleApp1 { class Program { static async Ta ...
分类:
Web程序 时间:
2021-06-18 19:08:41
阅读次数:
0
一、硬盘结构 ●硬盘的物理结构 ①盘头:硬盘有多个盘片,每盘片两面 ②磁头:每面一个磁头 ●硬盘的数据结构 ①扇区:盘片被分为多个扇形区域,每个扇区存放512字节的数据,是硬盘的最小存储单位 ②磁道:同一盘片不同半径的同心圆,是由磁头在盘片表面划出的圆形轨迹 ③柱面:不同盘片相同半径构成的圆柱面,由 ...
分类:
系统相关 时间:
2021-06-18 18:58:14
阅读次数:
0
所遇到的问题: 1. 使用datatable.js 异步渲染表格内容时(配置 processing: true),当点击下拉条内的 checkbox按钮,会导致表头缩至隐藏; 2. 方案: 当ajax请求完成,设置(加载div) 样式 margin-top: 0px; ...
分类:
Web程序 时间:
2021-06-18 18:47:58
阅读次数:
0
1 cors和csrf的区别2 路飞首页 -页面组件:设置一个路由,当在浏览器访问某个路径,就会显示这个页面组件 -头部组件 -轮播图组件 -页面跳转的两种方式 -<router-link :to='/home'>点我看美女</router-link> -js中写:this.$router.push ...
分类:
其他好文 时间:
2021-06-18 18:47:13
阅读次数:
0