access

cisco网络设备基本命令

假装没事ソ 提交于 2020-01-20 11:21:27
部署与网络规划 命令 三层交换   开启路由功能 ip routing 开启路由接口 no switchport 生成树STP   开启生成树 spanning-tree vlan vlan-list 指定根网桥 spanning-tree vlan vlan-list root {primary/secondary} 指定根网桥(优先级) spanning-tree vlan vlan-list priority 0-65535 修改端口成本 spanning-tree vlan vlan-list cost cost 修改端口优先级 spanning-tree vlan vlan-list port-priority 0-255 配置速端口 spanning-tree portfast 热备份路由HSRP   配置为HSRP组成员 standby group-number ip 虚拟ip 配置HSRP优先级 standby group-number priority 0-255 配置HSRP占先权 standby group-number preempt 配置HSRP端口跟踪 standby group-number track f0/0 interface-priority IP地址跟踪 tracert ip ACL   标准acl access-list 表号 permit

Getting “Too many parameters for command”, when calling WinSCP command-line from VBA

被刻印的时光 ゝ 提交于 2020-01-20 07:40:10
问题 Upload file via FTP from Excel VBA was very helpfull, I'm using the code to synchronize a local folder to my FTP server. Call Shell( _ CurrentProject.Path & "\WinSCP.com /log=" & CurrentProject.Path & "\ftp.log /command " & _ """open ftp://user:pass@ftp.server.com/"" " & _ """synchronize local " & localfolder & " /www/remotefolder/wines -filemask=""*.png"" " & _ """exit""") I'm trying to issue an exit command at the end, but the code gives me a Too many parameters for command 'synchronize'.

Getting “Too many parameters for command”, when calling WinSCP command-line from VBA

╄→гoц情女王★ 提交于 2020-01-20 07:36:05
问题 Upload file via FTP from Excel VBA was very helpfull, I'm using the code to synchronize a local folder to my FTP server. Call Shell( _ CurrentProject.Path & "\WinSCP.com /log=" & CurrentProject.Path & "\ftp.log /command " & _ """open ftp://user:pass@ftp.server.com/"" " & _ """synchronize local " & localfolder & " /www/remotefolder/wines -filemask=""*.png"" " & _ """exit""") I'm trying to issue an exit command at the end, but the code gives me a Too many parameters for command 'synchronize'.

Using OAuth 2.0 to Access Google APIs

烈酒焚心 提交于 2020-01-20 04:38:43
Using OAuth 2.0 to Access Google APIs Google APIs use the OAuth 2.0 protocol for authentication and authorization. Google supports common OAuth 2.0 scenarios such as those for web server, installed, and client-side applications. To begin, obtain OAuth 2.0 client credentials from the Google API Console . Then your client application requests an access token from the Google Authorization Server, extracts a token from the response, and sends the token to the Google API that you want to access. For an interactive demonstration of using OAuth 2.0 with Google (including the option to use your own

【跨域报错解决方案】Access to XMLHttpRequest at 'http://xxx.com/xxx' from origin 'null' has been blocked by

时光毁灭记忆、已成空白 提交于 2020-01-20 03:47:41
错误背景描述: 在使用ajax调用api接口的时候:发生错误如下 Access to XMLHttpRequest at ‘http://xxxx.com/xxx’ from origin ‘null’ has been blocked by CORS policy: No ‘Access-Control-Allow-Origin’ header is present on the requested resource. 发生错误的ajax代码如下: $ . ajax ( { url : 'http://xxx.com/xxxxx' , type : 'POST' , dataType : 'json' , success : function ( data ) { console . log ( data ) } } ) ; 错误发生原因: 这是一个资源跨域问题。 解决方法: 很简单。把dataType的json改为jsonp。 $ . ajax ( { url : 'http://xxx.com/xxxxx' , type : 'POST' , dataType : 'jsonp' , //这里修改成jsonp success : function ( data ) { console . log ( data ) } } ) ; 来源: CSDN 作者: 征途黯然. 链接:

乐优day06,CORS、分页、vue

僤鯓⒐⒋嵵緔 提交于 2020-01-20 03:00:32
CORS跨域 解决跨域的方案 目前比较常用的跨域解决方案有3种: Jsonp 最早的解决方案,利用script标签可以跨域的原理实现。 限制: 需要服务的支持 只能发起GET请求 nginx反向代理 思路是:利用nginx把跨域反向代理为不跨域,支持各种请求方式 缺点:需要在nginx进行额外配置,语义不清晰 CORS 规范化的跨域请求解决方案,安全可靠。 优势: 在服务端进行控制是否允许跨域,可自定义规则 支持各种请求方式 缺点: 会产生额外的请求 我们这里会采用cors的跨域方案。 什么是cors CORS是一个W3C标准,全称是"跨域资源共享"(Cross-origin resource sharing)。 它允许浏览器向跨源服务器,发出XMLHttpRequest请求,从而克服了AJAX只能同源使用的限制。 CORS需要浏览器和服务器同时支持。目前,所有浏览器都支持该功能,IE浏览器不能低于IE10。 浏览器端: 目前,所有浏览器都支持该功能(IE10以下不行)。整个CORS通信过程,都是浏览器自动完成,不需要用户参与。 服务端: CORS通信与AJAX没有任何差别,因此你不需要改变以前的业务逻辑。只不过,浏览器会在请求中携带一些头信息,我们需要以此判断是否允许其跨域,然后在响应头中加入一些信息即可。这一般通过过滤器完成即可。 6.3.2.原理有点复杂

nodejs用于跨域全部

巧了我就是萌 提交于 2020-01-20 01:51:53
app.all("*",function(req,res,next){ //设置允许跨域的域名, 代表允许任意域名跨域 res.header(“Access-Control-Allow-Origin”," "); //允许的header类型 res.header(“Access-Control-Allow-Headers”,“content-type”); //跨域允许的请求方式 res.header(“Access-Control-Allow-Methods”,“DELETE,PUT,POST,GET,OPTIONS”); if (req.method.toLowerCase() == ‘options’) {res.send(200); //让options尝试请求快速结束} }else{ next(); } }) 来源: CSDN 作者: luoxindong 链接: https://blog.csdn.net/luoxindong/article/details/104041095

ELK学习实验017:filebeat收集java日志

倖福魔咒の 提交于 2020-01-19 19:28:32
收集JAVA格式日志 1 查看Java格式日志 elasticsearch属于Java日志,可以收集elasticsearch作为Java日志范本 [root@node3 ~]# tail -f /usr/local/elasticsearch/logs/my-elktest-cluster.log [2020-01-19T01:57:18,496][INFO ][o.e.t.TransportService ] [node-3] publish_address {192.168.132.133:9300}, bound_addresses {[::]:9300} [2020-01-19T01:57:18,506][INFO ][o.e.b.BootstrapChecks ] [node-3] bound or publishing to a non-loopback address, enforcing bootstrap checks [2020-01-19T01:57:18,531][INFO ][o.e.c.c.Coordinator ] [node-3] cluster UUID [4xt-ZTijTz2oTnlz1gMFjg] [2020-01-19T01:57:19,195][INFO ][o.e.c.s.ClusterApplierService] [node-3]

CUDA ---- Memory Access

天涯浪子 提交于 2020-01-19 18:57:44
Memory Access Patterns 大部分device一开始从global Memory获取数据,而且,大部分GPU应用表现会被带宽限制。因此最大化应用对global Memory带宽的使用时获取高性能的第一步。也就是说,global Memory的使用就没调节好,其它的优化方案也获取不到什么大效果,下面的内容会涉及到不少L1的知识,这部分了解下就好,L1在Maxwell之后就不用了,但是cache的知识点是不变的。 Aligned and Coalesced Access 如下图所示,global Memory的load/store要经由cache,所有的数据会初始化在DRAM,也就是物理的device Memory上,而kernel能够获取的global Memory实际上是一块逻辑内存空间。Kernel对Memory的请求都是由DRAM和SM的片上内存以128-byte和32-byte传输解决的。 所有获取global Memory都要经过L2 cache,也有许多还要经过L1 cache,主要由GPU的架构和获取模式决定的。如果L1和L2都被使用,那么Memory的获取是以128-byte为单位传输的,如果只使用L2,则以32-byte为单位传输,在允许使用L1的GPU中(Maxwell已经彻底不使用L1,原本走L1都换成走texture cache)

浏览器(内核,同源策略原理,渲染...)

元气小坏坏 提交于 2020-01-19 02:37:30
浏览器存储 特点 cookie localStorage sessionStorage indexDb 生命周期 可过期 除非清理,否则一直存在 页面关闭就清理 除非清理,否则一直存在 存储大小 4K 5M 5M ∞ 与服务端通信 请求携带在 header 头部 no no no 浏览器内核 浏览器最重要或者说核心的部分是“Rendering Engine”,可大概译为“渲染引擎”,不过我们一般习惯将之称为“浏览器内核”。 通常所谓的浏览器内核也就是浏览器所采用的渲染引擎 浏览器内核主要包括三个分支技术: 排版渲染引擎 、 JavaScript引擎 , 以及其他 。 Trident IE 内核 其中 IE8 的 JavaScript 引擎是 JScript 引擎, IE9 开始使用 Chakra Gecko FF 内核 JavaScript 引擎使用 Spider Monkey 第一款 JavaScript 引擎 Webkit Safari 内核 Chrome 内核原型 Android 默认浏览器使用 Webkit 内核 Blink Chrome 最新的内核(Safari 目前也使用的内核) 而谷歌方面,则使用了自己研发的 V8 引擎 内核 是否开源 插件支持 应用浏览器 支持操作系统 Trident 否,但提供接口调用 ActiveX IE Windows Gecko 是