config

CISCO命令信息大全

故事扮演 提交于 2020-03-29 18:30:54
思科配置: 配置主机名: 查看路由器配置SW1#show run 关闭域名解析 domain(域名) no ip domain lookup 修改路由器的主机名:SW(config)#hostname R1-test 进入端口SW(config)#int fa0/0 配置互联ip地址SW(config-if)#ip add 202.106.1.1 255.255.255.252 开启端口SW(config-if)#no shut 开启端口:SW(config-if)#no shut 开启设备远程管理功能 进入虚拟远程端口 SW(config)#line vty ? <0-935> First Line number(允许936个人同时在线) 配置控制台密码 --Router>enable --Router# configure terminal --Router(config)# line console 0 --Router(config-line)# login --Router(config-line)# password 1234 --Router(config-line)# 按ctrl+z --Router#exit 交换机的命令模式 --Switch> --switch>:用户模式 --switch>enable --switch#特权模式(一般用于查看配置信息) --

07-3.部署 kube-proxy 组件

瘦欲@ 提交于 2020-03-29 17:09:58
07-3.部署 kube-proxy 组件 kube-proxy 运行在所有 worker 节点上,,它监听 apiserver 中 service 和 Endpoint 的变化情况,创建路由规则来进行服务负载均衡。 本文档讲解部署 kube-proxy 的部署,使用 ipvs 模式。 下载和分发 kube-proxy 二进制文件 参考 06-0.部署master节点.md 安装依赖包 各节点需要安装 ipvsadm 和 ipset 命令,加载 ip_vs 内核模块。 参考 07-0.部署worker节点.md 创建 kube-proxy 证书 创建证书签名请求: cat > kube-proxy-csr.json <<EOF { "CN": "system:kube-proxy", "key": { "algo": "rsa", "size": 2048 }, "names": [ { "C": "CN", "ST": "BeiJing", "L": "BeiJing", "O": "k8s", "OU": "4Paradigm" } ] } EOF CN:指定该证书的 User 为 system:kube-proxy ; 预定义的 RoleBinding system:node-proxier 将User system:kube-proxy 与 Role system:node

【Config】类库读取自己的配置文件,配置文件的扩展

旧时模样 提交于 2020-03-29 05:19:01
我们在项目中一般都是使用统一的项目文件配置,所有的配置和自定义的字段都写在一个web.config或者App.config文件中。一般平时我们也没有发现问题,确实这么写没有问题,但是就是如果写的多了就看着很臃肿。 并且假如你其他地方不是主项目的配置也写在这里,多了是不是很乱,有时候自己都不知道这个是配置的那个东西了。这不我在搭建自己的框架做日志写入的时候就发现这个问题,我就想因为我日志写入我是单独作为类库存在的,所以我不一定非要写在web.config中啊。我直接写在我类库下的配置文件就可以啊。想法不错说干就干,经过一下午的鼓捣吧(其实也弄别的拉。)终于封装成了一个方法其实很简单,主要是老是报路径错误鼓捣的时间。原本我是想用程序集的路径(Assembly.Location或者assembly.CodeBase)不过研究半天发现他们给的路径都不好使,也不知道为什么(回头再研究先解决眼下的问题)。反正是一个给返回C盘的路径一个是有多于字段。最后我还是用AppDomain这个代替吧,先用着发现不行在撤。嘻嘻嘻 最后大概就是这么一个结构: 类就是config的帮助扩展类,然后读取到的就是当前下的app.config。 获取当前类库的文件配置 方法代码: 1 #region 1.获取当前类库的文件配置 2 public static Configuration InitLogConfig()

Node实战-----爬取网页图片

无人久伴 提交于 2020-03-28 20:58:10
在本篇博文中我将实现一个完整的实例:主要使用Node.js爬取一个网页,需要通过第三方模块cheerio.js分析这个网页的内容,最后将这个网页的图片保存个在本地。 一、项目目录与思路 新建一个项目名为:project_01,输入命令在控制台,使其生成package.json文件: 命令: npm init 在控制台输入npm install命令下载需要的模块,在本项目中需要的request和cheerio模块,将使用命令进行下载到本地: 命令: npm install request cheerio -S 此时项目的文件夹的目录为: img文件夹用来存储图片文件 node_modules文件夹是模块默认的保存位置 index.js文件是整个项目的入口文件。 config.js文件是配置文件,用来存放网页地址和图片文件夹的路径,这样做的目的是使整个项目的可拓展性增强。 analyze.js文件用来存储分析DOM的方法。 package.json文件是包的描述文件。 打开node_modules文件夹可以看到相应的模块: 整体的思路:通过第三方模块request的请求网页地址,从而得到整个网页的DOM结构,根据DOM结构利用cheerio模块分析出图片文件的地址,再次请求这个地址,再次请求这个地址,最后将得到的图片数据存储在本地。 二、 配置网页地址及图片存放的文件夹 配置内容

CKEditor与定制

江枫思渺然 提交于 2020-03-28 19:47:34
一 开始使用 官网 基本示例: 搭建服务器(这里使用apache) 下载 standard 的ckeditor解压放在apache的htdocs的目录下 在htdoc下面新建index.html,写入代码: <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>A Simple Page with CKEditor</title> <!-- Make sure the path to CKEditor is correct. --> <script src="ckeditor/ckeditor.js"></script> </head> <body> <form> <textarea name="editor1" id="editor1" rows="10" cols="80"> This is my textarea to be replaced with CKEditor. </textarea> <script> // Replace the <textarea id="editor1"> with a CKEditor // instance, using default configuration. CKEDITOR.replace( 'editor1' ); </script> </form> <

springboot通过url访问本地图片

随声附和 提交于 2020-03-28 19:08:56
1.引入jar包 <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-web</artifactId> </dependency> 2.创建配置类 package com.common.config; import org.springframework.beans.factory.annotation.Value; import org.springframework.context.annotation.Configuration; import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry; import org.springframework.web.servlet.config.annotation.WebMvcConfigurer; /** * @BelongsProject: demo * @Author: DanBrown * @CreateTime: 2020-03-28 14:33 * @description: TODO */ @Configuration public class WebConfig implements

在vue.config.js项目中配置proxy解决跨域问题

二次信任 提交于 2020-03-28 17:12:08
首先我们在本地开发,域名都是localhost,当我们需要请求后台数据时,就会出现跨域的问题 下面就是在vue.config.js配置文件里 devServer: { proxy: { // detail: https://cli.vuejs.org/config/#devserver-proxy '/api': { target: `http://10.24.4.214:8098/api`, changeOrigin: true, pathRewrite: { '^/api' : '' } } } }   /api表示需要去匹配请求时的url,然后替换成target的值 比如你页面里是写的 axios.post('/api/list/gd') 最终node去请求后台的地址是:http://10.24.4.214:8098/api/list/gd 但是你在浏览器里看到的还是:http://localhost:8888/api/list/gd,这时候就不存在跨越的问题的,node服务已经代理拿到数据了 ---------------------- 其实真正引起跨越问题是浏览器的安全机制 来源: https://www.cnblogs.com/bobo1/p/12588079.html

Router配置

半腔热情 提交于 2020-03-27 17:44:27
1.Router配置 各模式切换简要命令 1 为enable配置密码 Reter(config)# enable password ******   ·设置明文密码 Reter(config)# enable secret ******    设置密文密码 Reter(config)# login 是密码生效 2 为consolo设置密码 2.1   Reter(config)# line consolo o   进去 consolo 接口   Reter(config-line)# password ******   Reter(config-line)#login   使密码生效   2.2 设置用户名密码 Reter(config)#username *** password ****** Reter(config)# line consolo o 进去 consolo 接口 Reter(config-linel)# login local 以本地用户名密码登录 来源: https://www.cnblogs.com/jokejie/p/12582588.html

设置文件上传的最大大小

夙愿已清 提交于 2020-03-27 09:22:40
设置文件上传的最大大小 系统环境:win8 开发环境:asp.net mvc 功能:文件上传 在上传文件时,比较小的文件会直接上传成功,大的文件页面报错:“文件超过了最大请求长度”。 经过查明: 需要在配置文件里面设置文件上传限定的两个属性值: maxAllowedContentLength,maxRequestLength 允许上传文件的长度,和请求的长度,两个大小需要设置一致,如果不一致,则以请求长度为准。 The maximum request size in kilobytes. The default size is 4096 KB (4 MB). 默认请求长度只有4M. 设置的单位都为byte <system.web>   <httpRuntime maxRequestLength ="2147483647" executionTimeout="36000" delayNotificationTimeout="36000"/> </system.web> <system.webServer>   <security>     <requestFiltering>       <!--<requestLimits maxAllowedContentLength ="1073741824"/>-->       <requestLimits

Springboot整合MybatisPlus

≯℡__Kan透↙ 提交于 2020-03-27 04:54:06
目录 1、pom文件 2、创建CodeGenerator.java 3、在application.yml中配置mybatis-plus 4、创建MybatisPlusConfig.java文件 其他 1、pom文件 <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>com.cun</groupId> <artifactId>plus</artifactId> <version>0.0.1-SNAPSHOT</version> <packaging>jar</packaging> <name>plus</name> <description>Demo project for Spring Boot</description> <parent> <groupId>org