跨域简介 当两个域具有相同的协议(如http), 相同的端口(如80),相同的host,那么我们就可以认为它们是相同的域(协议,域名,端口都必须相同)。 跨域就指着协议,域名,端口不一致,出于安全考虑,跨域的资源之间是无法交互的(例如一般情况跨域的JavaScript无法交互,当然有很多解决跨域的方 ...
分类:
其他好文 时间:
2020-12-03 11:49:10
阅读次数:
3
缘由:A项目用HttpURLConnection代理(B项目)内部接口的时候,返回值正常; 由于要走负载,nginx代理了几个A项目,通过nginx访问的时候,页面显示ERR_EMPTY_RESPONSE; nginx报错upstream sent invalid chunked response ...
分类:
其他好文 时间:
2020-12-03 11:34:06
阅读次数:
4
-hosts:allvars:cap_file:packet_capture_{{ansible_hostname}}.pcaptasks:-name:starttcpdump#command:/usr/sbin/tcpdump-nnviany‘port80‘-s0-B65535-C50M-W100-w/data/tmp/{{cap_file}}command:/usr/sbin/tcpdump-
分类:
其他好文 时间:
2020-12-02 12:46:20
阅读次数:
26
【容器技术】Docker容器技术入门(二)收录于话题#Docker专辑9个接上一篇文章【容器技术】Docker容器技术入门(一)今天接着上次聊一聊有关Docker网络、数据存储相关的技术点01Docker网络模式Dokcer通过使用Linux桥接提供容器之间的通信,Docker的网络模式有四种分别是以下四种模式host模式,使用--net=host指定。container模式,使用--net=co
分类:
其他好文 时间:
2020-12-02 11:56:22
阅读次数:
3
Rest 参数与 spread 扩展运算符在ES6中已经引入,不过ES6只针对于数组。 在ES9中为对象提供了像数组一样的 rest 参数和 扩展运算符 1. 输出 function connect({host,port,userName,password}){ console.log(host) ...
分类:
其他好文 时间:
2020-12-01 12:09:18
阅读次数:
6
>.ClouderaManager功能 1.1>.管理监控集群主机(主要监控硬件和软件的信息); 1.2>.同一管理配置(主要是针对服务,比如hdfs,hbase等等); 1.3>.管理维护Hadoop平台系统; 2>.ClouderaManager的一些常见名词 2.1>.主机-host 2.2> ...
分类:
其他好文 时间:
2020-12-01 11:54:36
阅读次数:
3
code macname@localhost Desktop % cat test.sh while read line;do echo $line; done < a.txt macname@localhost Desktop % macname@localhost Desktop % cat a ...
分类:
系统相关 时间:
2020-11-30 16:14:46
阅读次数:
16
在CentOS容器内执行 yum install passwd openssl openssh-server -y # Ubuntu把yum改成apt-get ssh-keygen -q -t rsa -b 2048 -f /etc/ssh/ssh_host_rsa_key -N '' ssh-ke ...
分类:
系统相关 时间:
2020-11-27 11:39:01
阅读次数:
15
配置远程Python解释器 选择File-->Settings-->Project: xxxx-->Project Interpreter, (xxxx是项目根目录), 然后在右边, 点击小齿轮设置, 点击"Add Remote", 勾选SSH Credentials, 配置相关信息: Host: ...
分类:
其他好文 时间:
2020-11-27 11:35:08
阅读次数:
8
1 查看主机名称 在Ubuntu系统中,快速查看主机名有多种方法: 在终端窗口中,主机名通常位于@符号后:root@lzyws739307453:~#例如这个的主机名就是lzyws739307453。 或在终端窗口中输入命令:hostname、hostnamectl、uname –n、uname - ...
分类:
系统相关 时间:
2020-11-27 11:01:13
阅读次数:
9