在Vmware
esx/esxi中使用虚拟Lan(Vlan)时,通常是指Vlan
Trunk的使用,使用的Vlan配置还有其他三种类型:
Virtual Switch Tagging(虚拟交换机标记,缩写VST
)、External SwitchTagging(外部交换机标记,缩写EST)和Virtual
Guest Tagging(虚拟guest标记,简称VGT)。
那...
分类:
其他好文 时间:
2014-05-12 14:34:17
阅读次数:
432
本篇將在 SELinux 安全機制及 IPTables
防火牆開啟的環境下實作,分別實作簡單網頁服務及虛擬主機 Virtual Host 設定,最後則是實作網頁中需要保護網頁時可以透過 .htaccess
機制進行保護,關於 Apache 網頁伺服器內容及更詳細設定參數可以參考官方文件RedHat ...
分类:
其他好文 时间:
2014-05-10 08:10:08
阅读次数:
385
Problem DescriptionIn 2100, since the sea level
rise, most of the cities disappear. Though some survived cities are still
connected with others, but m...
分类:
其他好文 时间:
2014-05-10 07:33:38
阅读次数:
265
import MySQLdb# 打开数据库连接db =
MySQLdb.connect("localhost","testuser","test123","TESTDB" )# 使用cursor()方法获取操作游标
cursor = db.cursor() #cursor用来执行命令的方法:
分类:
数据库 时间:
2014-05-10 06:03:19
阅读次数:
309
在执行/etc/init.d/ndbd--initial出现下列错误[root@ndbd1~]#/etc/init.d/ndbd--initialUnabletoconnectwithconnectstring:nodeid=0,localhost:1186Retryingevery5seconds.Attemptsleft:121110987654321,failed.解决办法1.查看/etc/my.cnf文件配置[root@ndbd1~]#cat/etc/my.cnf..
分类:
数据库 时间:
2014-05-10 04:07:58
阅读次数:
1778
首先需要保证PC与手机在同一局域网内或有独立公网IP, 以下以在同一局域网为例(保证手机能访问到这台PC机器):
1. PC端配置
1). 安装Fiddler
2). 开启Fiddler以下功能:
1).allow romote computer to connect.
2).decrypt https traffic
3).ignore server...
分类:
其他好文 时间:
2014-05-10 03:25:39
阅读次数:
380
Problem DescriptionThere are N villages, which
are numbered from 1 to N, and you should build some roads such that every two
villages can connect to e...
分类:
其他好文 时间:
2014-05-10 02:28:50
阅读次数:
374
#include
#include
#include
#ifndef VIRTUAL
#define VIRTUAL
#endif
#ifndef DELETE
#define DELETE(X) do { free(X);X = NULL; } while(0)
#endif
#define NEW(TYPE,pInstance,SUBTYPE) struct TYPE* pInst...
分类:
编程语言 时间:
2014-05-09 22:29:48
阅读次数:
455
Windows Socket+TCP服务器客户端
Winsock是 Windows下套接字标准。
1.UDP socket编程:
UDP(用户数据报协议)是一个无连接,不可靠的数据传输,其特点是简单,快捷。相比与TCP,UDP不需要建立连接(不需connect、accept函数),数据发送接收...