ip命令 来自于iproute包,可用于代替ifconfig ip [ OPTIONS ] OBJECT { COMMAND | help } ip 命令说明: OBJECT := { link | addr | route } ip link - network device configurat ...
分类:
其他好文 时间:
2021-04-20 14:18:52
阅读次数:
0
IP、MASK、GW、DNS相关的配置文件: /etc/sysconfig/network-scripts/ifcfg-IFACE 说明参考 /usr/share/doc/initcripts-*/sysconfig.txt 常用配置 设置 说明 TYPE 接口类型;常见有的Ethernet, Br ...
分类:
其他好文 时间:
2021-04-20 14:18:37
阅读次数:
0
代码: #include <stdio.h> #include <stdlib.h> /* run this program using the console pauser or add your own getch, system("pause") or input loop */ int ma ...
分类:
其他好文 时间:
2021-04-20 14:10:46
阅读次数:
0
goconvery基本使用 (1.)项目地址 https://github.com/smartystreets/goconvery (2.)安装 go get -u github.com/smartystreets/goconvery/convery (3.)启动UI界面 $GOPATH/bin/g ...
分类:
其他好文 时间:
2021-04-20 14:09:28
阅读次数:
0
特殊属性 1 # 2 # @author:浊浪 3 # @version:0.1 4 # @time: 2021/4/17 9:34 5 # 6 7 8 class A: 9 pass 10 class B: 11 pass 12 class C(A,B): 13 def __init__(self ...
分类:
编程语言 时间:
2021-04-19 15:35:56
阅读次数:
0
会话 用户打开一个浏览器,点击了很多超链接,访问多个web资源,关闭浏览器,这个过程可以称之为会话 一个网站怎么证明你来过 客户端 服务端 服务端给客户端一个信件,客户端下次访问服务端带上信件就可以了; cookie 服务器登记你来过了,下次你来的时候我来匹配你; session Cookie 客户 ...
分类:
其他好文 时间:
2021-04-19 15:25:44
阅读次数:
0
NuGet安装 Microsoft.AspNetCore.Session Microsoft.AspNetCore.Http.Extensions Startup.cs中注册 // 添加一个内存缓存 services.AddDistributedMemoryCache(); services.Add ...
分类:
Web程序 时间:
2021-04-19 15:18:17
阅读次数:
0
在使用ie浏览器调用get请求时,如果请求方法一样,会默认先缓存,后面每次都先从缓存取,这个问题可能引发奇怪鉴权问题 普遍解决:get请求后加随机数,需要改代码 如果用的nginx做前端服务器,可以在server中增加配置项: add_header Cache-Control "no-cache, ...
分类:
其他好文 时间:
2021-04-19 15:16:50
阅读次数:
0
import xlwt my_workbook = xlwt.Workbook(encoding='utf-8') my_sheet1 = my_workbook.add_sheet('sheet1') for i in range(0, 9): # i:行号 for j in range(0, i ...
分类:
编程语言 时间:
2021-04-19 15:12:06
阅读次数:
0
<dependency> <groupId>org.elasticsearch</groupId> <artifactId>elasticsearch</artifactId> <version>${es.version}</version> </dependency> <dependency> < ...
分类:
编程语言 时间:
2021-04-19 15:11:01
阅读次数:
0