找到对应的网卡名称
使用命令:ipconfig
ipconfig/all
Windows IP Configuration
Host Name . . . . . . . . . . . . : D501-4-3
Primary Dns Suffix . . . . . . . :
Node Type . . . . . . . . . ....
在C/C++写网络程序的时候,往往会遇到字节的网络顺序和主机顺序的问题。这时就可能用到htons(), ntohl(),
ntohs(),htons()这4个网络字节顺序与本地字节顺序之间的转换函数:htonl()--"Host to Network Long int"
32Bytesntohl.....
分类:
其他好文 时间:
2014-06-11 09:58:25
阅读次数:
328
脚本 d:\dot.ps1 内容如下:$hostwrite-host
"hh"$m="pp"$a ="cc"通过 . 方式运行脚本 dot.sp1,如下:. d:\dot.ps1之后,脚本 dot.ps1中的变量
$m,$a都可以继续使用
分类:
其他好文 时间:
2014-06-11 08:55:38
阅读次数:
241
ASP.NET MVC 6.0,又称ASP.NET
vNext,比之从前的版本有了大规模的更新,几乎所有类库全部重写,本文基于Visual Studo 2014 CTP1创建ASP.NET
vNext,记录基本创建、self-host、IIS运行时遇到的问题。
分类:
Web程序 时间:
2014-06-11 08:44:50
阅读次数:
309
# -*- coding: utf-8 -*- import socket import
sys port = 80 host = sys.argv[1] filename = sys.argv[2] soc =
socket.socket(socket.AF_INET, socket....
分类:
编程语言 时间:
2014-06-07 23:43:22
阅读次数:
320
.\Obj\HST3GSTM32F205.axf: Error: L6218E: Undefined symbol get_host_by_name (referred from neti_tcpip.o).
.\Obj\HST3GSTM32F205.axf: Error: L6218E: Undefined symbol tcp_abort (referred from neti_tcpip....
分类:
其他好文 时间:
2014-06-07 16:22:39
阅读次数:
260
前言:cacti监控mysql服务器的大概50张graphs都弄出来了,也出图了,其中遇到一些问题,印象比较深刻的记录如下:(一):添加io监控 点击Create Graphs for this Host 进去创建IO的图,结果报错This data query returned 0 rows, perhaps there was a problem executing this data que...
分类:
数据库 时间:
2014-06-07 12:18:41
阅读次数:
457
这篇文章几乎是对Push SSH public keys to multiple
host的翻译,谢谢该作者。使用SSH登陆、执行命令到远程机器需要输入密码,很多系统需要免输密码访问远程机器,比如hadoop主节点访问子节点时,这时可以使用ssh-copy-id命令将公钥拷贝到远程机器上,比如:
s...
分类:
其他好文 时间:
2014-06-07 10:42:57
阅读次数:
208
window系统hosts文件地址C:\WINDOWS\system32\drivers\etc。将下面的内容copy到host文件中就可以了。#Google
Services START203.208.46.200 0.docs.google.com203.208.46.200 0.driv...
分类:
Web程序 时间:
2014-06-07 09:39:07
阅读次数:
241