博客首页
注册
建议与交流
排行榜
加入友情链接
推荐
投诉
搜索:
帮助
ELM's Blog
工作、学习、生活、娱乐......
wenzk.cublog.cn
管理博客
发表文章
留言
收藏夹
· Blogs
· 商业网站
· 在线投稿系统
· RPMs
· 技术论坛
· 技术网站
· 精彩推荐
博客圈
音乐
相册
· 其它照片
· 风景照片
· 个人照片
文章
· 乱七八糟
· BSD杂谈
· DNS相关
· 数码相机
· 数据库相关
· IT新技术
· Linux系统相关
· 邮件系统相关
· Office相关
· OpenVPN
· Solaris系统
· 程序设计
· 工作相关
· 供电系统
· 计算机网络
· 自娱自乐
首页
关于作者
姓名:ELM 职业:网管[网吧管理员] 年龄:26 位置:辽宁 沈阳 介绍:一定要把网络管好 QQ:616621 Email:wzk<AT>wenzk<DOT>net
||
<<
>>
||
我的分类
文章列表 -
【置顶】寻求网通-教育网主机
<font size="3"><span style="font-weight: bold; color: rgb(255, 1, 2);"> 由于在下家里使用的是网通的网络,访问教育网速度还行,但是对于使用Putty这么简单的字符界面还是延时过大,很多时候简直无法忍受,不知哪位仁兄拥有这样的主机,可否借用用于访问教育网资源,本人保证不会占用过多的资源,因为家里宽带也就2M顶天了。</span><br style="font-weight: bold; color: rgb(255, 1, 2);"><span style="font-weight: bold; color: rgb(255, 1, 2);"> 如果仁兄有什么要求可以私下联系,谢谢!……
查看全文
发表于:2007-09-23 ┆
阅读(2020)
┆
评论(3)
【置顶】OpenVPN在Windows下使用User/Pass验证
OpenVPN在Windows下使用User/Pass验证<br><br>对于Windows下使用User/Pass验证已经是很久以前的承诺了,因为一开始一直都是在找寻<br>使用CMD(bat)文件检查用户名/密码的方式,但是一直没有结果,最后使用C写了一个小程<br>序实现用户名/密码验证。<br><br>转载请注明出处,如有疑问访问: http://wenzk.cublog.cn 反馈。<br><br>Windows安装OpenVPN是很容易的,OpenVPN GUI下载网址:<br>http://openvpn.se/files/install_packages/openvpn-2.0.7-gui-1.0.3-install.exe<br><br>记得选上easy-rsa这部分脚本,安装完毕后,easy-rsa……
查看全文
发表于:2006-07-10 ┆
阅读(9539)
┆
评论(94)
【置顶】Windows 下使用 CA 验证的 OpenVPN Server 的配置方法
查看全文
发表于:2006-02-11 ┆
阅读(22767)
┆
评论(121)
【置顶】OpenVPN 常见问题解答(FAQ)
查看全文
发表于:2006-01-19 ┆
阅读(24459)
┆
评论(137)
【置顶】可以把用户名/密码保存到文件的OpenVPN程序--[下载]
查看全文
发表于:2006-01-12 ┆
阅读(8857)
┆
评论(16)
【置顶】OpenVPN使用User/Pass验证登录
查看全文
发表于:2005-03-15 ┆
阅读(10602)
┆
评论(14)
【置顶】用OpenVPN构建安全VPN [OpenVPN + CA]
查看全文
发表于:2005-03-06 ┆
阅读(12630)
┆
评论(60)
PHP对IP地址和子网掩码的处理方法
<code><span class="html">ip2long IP地址转换成整型。<br>long2ip 整型数据转换成IP。<br><br>子网掩码转换成掩码长度方式:<br></span></code><code><span class="html"> $slash_notation = strlen(preg_replace("/0/", "", decbin(ip2long($subnet_mask))));</span></code><br><code><span class="html"></span></code><code><span class="html">$bits=strpos(decbin(ip2long($mask)),"0"); </span></code><br><code><span class="html"><br>子网掩码位长转换成子网掩码形式:<br>$mask = 0xffffffff << (32 - $mask);<br></sp……
查看全文
发表于:2008-06-24 ┆
阅读(1071)
┆
评论(0)
关于备份程序
以前都是自己写脚本用tar来实现备份,当然每个包里面重复的数据太多了,后来不用了。<br><br>之后使用BackupPC,这个东西不错,还有一个很好的web界面,用了好久。<br><br>最近看到BSD HACK书上介绍使用rsnapshot来实现远程备份,大概看了一下,可以备份到本地磁盘,也可以通过ssh复制到远程计算机。<br>具体详见 http://www.rsnapshot.org<br><br>该书介绍另外一个备份程序,叫Bacula,作者以这样的表示来向读者展示的:使用Bacula实现客户-服务器方式的跨平台备份,相比这个程序也不错吧。<br>似乎客户端也需要安装一个他的程序吧。<br>……
查看全文
发表于:2008-04-11 ┆
阅读(887)
┆
评论(1)
多用pax命令,甚至建议取代tar
据说比tar支持更多的压缩档。<br><br>也可以去掉tar包里面的绝对路径<br># pax -A -r -s '-^/--' some_file.tar<br><br>参数-A要求pax不要自动去掉路径名中的/,因为要自己实现这一步。<br>-s 参数指定在确定目的路径名时采用ed风格的替代表达式。<br><br>复制时保留更多的属性<br><br>大家最常用的方法可能是 cp -R 和 pax -rw<br>pax -rw 保留了源文件的更多属性,如硬连接数和文件访问次数等等,具体可以使用<br># pax -rw /usr/bin/egrep /usr/bin/fgrep /usr/bin/grep /tmp/<br># cp -R /usr/bin/egrep /usr/bin/fgrep /usr/bin/grep……
查看全文
发表于:2008-04-09 ┆
阅读(780)
┆
评论(0)
BSD下的超级终端
在linux下都使用minicom,bsd下还有另外一个程序,就是cu<br><br># cu -l /dev/cuaa1 -s 9600<br>-l指定COM端口,-s指定波特率<br><br>如果需要推出cu,可以使用'~'回车后退出。<br>
查看全文
发表于:2008-04-09 ┆
阅读(758)
┆
评论(0)
用密码保护单用户模式
在:<br>Hit [Enter] to boot immediately, or any other key for command prompt.<br>Booting [/boot/kernel/kernel] in 10 seconds...<br>如果按下回车以外的其他键,就会提示<br>Type '?' for a list of commands, 'help' for more deailed help.<br>OK boot -s<br>进入单用户模式:<br><br>Enter full pathname of shell or RETURN for /bin/sh:<br>#<br><br>完成需要的修改后使用exit继续进入多用户模式。<br><br>如何阻止用户进入单用户模式呢?,修改/etc/ttys可以在进入单用户的时候提供密码:<br>console none&……
查看全文
发表于:2008-04-08 ┆
阅读(673)
┆
评论(0)
将/tmp/目录移到内存中
优点:每次重新启动后自动清除tmp目录中的内容,读取输入提高。<br>缺点:耗内存<br><br>首先需要保证内核对md设备的支持:<br>% grep -w md /usr/src/sys/i386/conf/CUSTOM<br>device md # Memory "disks"<br>像下面这样在/etc/fstab中修改/tmp行将在RAM中建立一个64M的/tmp.<br><br>md /tmp mfs rw,-s64m 2 0<br><br>
查看全文
发表于:2008-04-08 ┆
阅读(676)
┆
评论(0)
Sharity-Light轻松共享windows资源
使用SAMBA似乎太庞大了。<br><br>#cd /usr/ports/net-sharity-light<br>#make install clean<br><br>需要共享时:<br><br># shlight //somename/share /path/to/mount -U username -P password<br><br>卸载:<br><br># unshlight /path/to/mount<br><br>
查看全文
发表于:2008-04-08 ┆
阅读(902)
┆
评论(0)
用sed、tr、col对文本进行处理
利用sed向源代码中增加注释,test.sh源代码内容:<br>$ cat test.sh<br><table style="border: 1px solid rgb(153, 153, 153); width: 80%; font-size: 12px;" align="center"><tbody><tr><td>#!/bin/sh<br>#Just for test by ELM<br>#<br><br>elm-start<br>ls<br>elm-end<br><br>echo "all done"<br></td></tr></tbody></table>使用sed命令来注释elm-start和elm-end之间的内容:<br>$ sed -i '/elm-start/,/elm-end/s/^/#/' test.sh; cat test.sh<br><table style="border: 1px solid rgb(153, 153, 153); width: 80%; font-size: 1……
查看全文
发表于:2008-04-08 ┆
阅读(768)
┆
评论(0)
如何在HP DL380 G5上挂载SCSI硬盘安装rhel4 u2(优盘版)
昨天写了一个<a href="http://www.oceanboo.cn/read.php/143.htm" target="_blank">软盘版</a>的安装方法,不过现在带DL380 G5这类服务器早不带软驱了,如果又没有外置软驱的话,是不是就束手就擒了呢?当然不。<br><br>下面来讲讲如何用优盘来挂载驱动的方法,此方法要在Linux下执行操作:<br>1.下载管网上的最新驱动。<a href="http://h50176.www5.hp.com/support/397307-AA1/more_info_local_24405.html" target="_blank">下载地址在这里</a>。<br>2.解压压缩驱动包cpq_cciss-2.6.10-13.rhel4.i686.dd.gz<br><div class="code">gzip –……
查看全文
发表于:2008-04-07 ┆
阅读(831)
┆
评论(0)
利用U盘加载控制器驱动来安装Linux系统
一般我们在安装服务器过程中需要加载一些scsi卡或raid卡驱动,以便操作系统可以检测到硬盘。 <br> <br> 常规的安装方式是要用到软驱,其实我们也是可以通过U盘来进行加载的。 <br> <br> 装Linux控制器驱动往往都是*.dd或者*.img结尾的文件,我们都可以在linux下通过dd命令来写入到U盘中,比如驱动的名字为megaraid_sas.img <br> <br> 假设有一台Linux机器,先把文件拷贝到/tmp,U盘的设备名为sdb。 <br> <br> dd if=/tmp/megaraid_sas.img of=/dev/sdb <br> <br> cat命令也可以实现dd的作用,注意这里是sdb而……
查看全文
发表于:2008-04-07 ┆
阅读(704)
┆
评论(0)
Windows下使用用户名密码验证的bat脚本
以前一直在找寻这样的脚本,但是一直也没有发现,最近发现在博客的留言上有一位兄弟提供了一个脚本,非常感谢这位兄弟,也没有留下任何ID,感谢这位无私的网友。<div class="blockcode"><span class="headactions" onclick="copycode($('code0'));"></span><span style="font-weight: bold;"><br></span><code id="code0">@echo off<br> <br> for /f "tokens=1,2,3 delims= " %%i in (password.txt) do if %%i == %USERNAME% if %%j==%PASSWORD% if %%k == 1 exit /B 0<br> <br> exit /B 1<br>……
查看全文
发表于:2008-03-06 ┆
阅读(1329)
┆
评论(3)
Fedora Core 2 Test 3 - NFS server: server is down
在NFS Server切换到一个新机器后,发现部分机器无法mount。<br>Server系统FC2<br>F7可以正常mount,FC6提示错误,FC1提示服务关闭。<br><br>Google了一下,下面是结果:<br><br>I installed FC2T3 on one of my machines and could not mount any NFS-Dir from my Server (SuSE 8.2). With FC1 on my other machines I have no problem at all mounting any NFS-Dirs from the server.<br> <br> [root@flaneur root]# mount 192.168.1.2:/home<br> mount to NFS server '192.168.1.2' failed: server is down.<br> You have new mai……
查看全文
发表于:2008-01-24 ┆
阅读(1367)
┆
评论(1)
Fedora 8下无线网卡使用WPA验证启动问题
上次在 <a href="http://www.wenzk.net/bbs/thread-976-1-1.html" target="_blank">http://www.wenzk.net/bbs/thread-976-1-1.html</a> 介绍了Fedora 8下如何连接使用WPA验证的无线AP的方法。<br> <br> 但是当我在设置成自动启动wpa_supplicant服务后,每次重新启动的时候总是无法正常启动wpa_supplicant服务,提示是No Such file or directory,登录系统后如何启动都没有问题,真是郁闷,当然,在提示中还夹杂着什么BUS一类的提示信息。<br> <br> 通过查看/var/log/wpa_supplicant.log发现,日志提示:Could not acquire the system……
查看全文
发表于:2007-11-30 ┆
阅读(2666)
┆
评论(1)
Fedora 8下如何配置无线使用WPA验证
首先必须安装wpa_supplicant这个软件包了。<br> 修改配置文件1<br> [root@elm ~]# more /etc/sysconfig/wpa_supplicant <br> INTERFACES="-ieth1"<br> DRIVERS=""<br> [root@elm ~]# <br> 修改配置文件2<br> [root@elm ~]# more /etc/wpa_supplicant/wpa_supplicant.conf <br> ctrl_interface=/var/run/wpa_supplicant<br> ctrl_interface_group=wheel<br> <br> network={<br> ssid="ELM"<br> #psk="12345678"<br>  ……
查看全文
发表于:2007-11-16 ┆
阅读(2248)
┆
评论(0)
比威BitStream6832T交换机配置问答
今天在NOC群里面看到有老师问关于比威交换机配置的问题,突然想到自己学校也发送来了2台比威交换机,一直没有用,通过以前发的2台交换机就发现比威的东西真怪,自己的东西还没有一个通用的配置界面标准,估计O别人的东西,没有太彻底,所以配置方式总是和原来的产品类似。<br><br> 找到那台万兆上联,全千兆的交换机后,发现型号是Bitstream6832T,把机器扔到一台服务器后边,接上通用Console线,打开mincom,居然乱码,来回折腾了几次都这样,简直见鬼了,最后只好找到Bitway自己带的Console……
查看全文
发表于:2007-10-27 ┆
阅读(1821)
┆
评论(0)
把PlanetLab的配置文件放到TFTP服务器上(丢掉陈旧的软盘)
以前写过关于通过PXE启动PlanetLab的文章,可以在: http://blog.chinaunix.net/u/2389/showart_79066.html 找到,这篇文章是在上一篇文章的基础上修改的。<br><br>基本思路为:<br><br>使用闲置的eth1网卡用来网络启动,启动完毕后,通过dhcp client配置eth1的IP地址(dhcp服务器必须分配一个默认网关,通过默认网关的地址来判断tftp server的地址,方法比较土:P),然后从tftp根目录下载一个nodelist文件,主要包含节点配置文件的文件名和eth1网卡的MAC地址,下载完毕后根据本机eth1网卡的MAC来找到对应的配置文件位置所在,下载配置文件,……
查看全文
发表于:2007-07-20 ┆
阅读(2044)
┆
评论(1)
HttpTunnel+OpenVPN穿越HTTP代理
HttpTunnel+OpenVPN穿越HTTP代理<br><br>虽然OpenVPN支持HTTP Proxy,但是OpenVPN使用的代理必须支持CONNECT这个方法,如果不支持,那OpenVPN就无能为力了,似乎还有一个叫Htun的也行,具体还没有细看。<br><br>目前使用HttpTunnel和OpenVPN配合可以穿透HTTP代理。<br><br>HttpTunnel官方网站: http://www.nocrew.org/software/httptunnel.html<br>OpenVPN官方网站: http://openvpn.net/<br><br>存在的问题:<br><br>1、HttpTunnel服务器端目前不支持多客户同时连接,和OpenVPN 1.x差不多,要有多个少个客户就需要启动多少个hts进程。<br>……
查看全文
发表于:2007-07-15 ┆
阅读(3614)
┆
评论(8)
DRBL - Diskless Remote Boot in Linux
Diskless Remote Boot in Linux (DRBL) provides a diskless or systemless environment for client machines. It works on Debian, Ubuntu, Mandriva, Red Hat, Fedora, CentOS and SuSE. DRBL uses distributed hardware resources and makes it possible for clients to fully access local hardware. It also includes Clonezilla, a partitioning and disk cloning utility similar to Symantec Ghost.<br><br>http://drbl.sf.net<br><br>无盘使用这个应该是可行的<br>
查看全文
发表于:2007-06-16 ┆
阅读(2144)
┆
评论(0)
Linux LDAP authentication
<p class="story_author">Wednesday September 21, 2005 <nobr>(12:00 PM GMT)</nobr></p> <p class="story_author">By: <a href="mailto:americandave@soupy.org">"American" Dave Kline</a></p> <p class="story_content"> When you have to administer a network of many machines, you quickly find out how much duplication of effort is involved with normal administrative tasks. Routine operations like changing passwords, canceling accounts, and modifying groups become time-consuming if repeated on many……
查看全文
发表于:2007-06-16 ┆
阅读(2113)
┆
评论(0)
Linux LDAP authentication
<p class="story_author">Wednesday September 21, 2005 <nobr>(12:00 PM GMT)</nobr></p> <p class="story_author">By: <a href="mailto:americandave@soupy.org">"American" Dave Kline</a></p> <p class="story_content"> When you have to administer a network of many machines, you quickly find out how much duplication of effort is involved with normal administrative tasks. Routine operations like changing passwords, canceling accounts, and modifying groups become time-consuming if repeated on many……
查看全文
发表于:2007-06-16 ┆
阅读(2041)
┆
评论(0)
Vyatta - An Other Great Router Project
官方网站: http://www.vyatta.com<br><br>非常不错的路由软件,具体性能如何,参见Linux的性能就OK了,因为是基于Linux开发的,同时支持HTTP和CLI的方式,特别是CLI方式和Juniper非常类似,简直太爽了,呵呵<br><br>官方提供LiveCD和VMware的image下载,具体安装到硬盘的方法:<br><br><h2> Installing to Hard Disk </h2> <p> Once you have determined that you want to install the system more permanently, simply install to a hard disk like any other operating system. If you're going to run the OFR in any sort of lo……
查看全文
发表于:2007-06-16 ┆
阅读(2224)
┆
评论(0)
snort_inline - 有这个就可以联动了
Snort_inline is a modified version of Snort. It accepts packets from iptables, instead of libpcap. It uses new rule types to tell iptables if the packet should be dropped or allowed to pass based on the Snort rules.<br><br>http://sourceforge.net/projects/snort-inline<br><br>有空一定要试试,看似不错的东西,不用自己去和防火墙联动了<br>
查看全文
发表于:2007-06-16 ┆
阅读(2208)
┆
评论(0)
HTTPTunnel - 很有创意的一个东西
Enables tunneling of network connections through restrictive HTTP proxies. Features: Portmapping, SOCKS4, SOCKS5, web-based admin interface, possibility to use standalone server (perl) or hosted server (PHP), optional authorization from LDAP or MySQL<br><br>http://sourceforge.net/projects/http-tunnel<br><br>呵呵,Great Project!<br>
查看全文
发表于:2007-06-16 ┆
阅读(2419)
┆
评论(0)
sshguard - 你的SSH安全吗?
sshguard protects hosts from the plague of brute force attacks against ssh. Unlike many similar tools written in interpreted languages, it's independent, fast, and lightweight because it's completely written in C.<br><br>http://sourceforge.net/projects/sshguard/<br><br>如果你想让任何地址都可以访问你的ssh端口,那么对SSH做一定的防护确实是需要的,以前我使用的是iptables的recent模块,这个东西也不错哦<br>
查看全文
发表于:2007-06-16 ┆
阅读(2213)
┆
评论(0)
Anyterm - A Terminal Anywhere
今天ZZ问我是否还记得有一个软件可以同时登录多台主机,然后之行命令,想了好久,后来想起来我在一台机器上安装过,登录上去看了看,后来才想起来是Omnitty,在同以目录下还发现了rote这个东西,上网查查才发现是omnitty用的可以库文件。<br><br>后来发现这个东西也不错<br><br><div id="bodywrapper"> <div id="bodycontent"> <h2>Introduction</h2> <p>Have you ever wanted SSH or telnet access to your system from an “internet desert” - from behind a strict firewall, from an internet c……
查看全文
发表于:2007-06-12 ┆
阅读(2061)
┆
评论(0)
HOWTO: IPCop-OpenVPN
<p>I’m a huge fan of <a href="http://ipcop.org/">IPCop</a>. It’s a great firewall distro that makes administration a snap using a slick web interface. My goal was to use IPCop and an easy-to-use <a href="http://en.wikipedia.org/wiki/VPN">VPN</a> client to allow access to my LAN while away from home.</p> <p>I ended up going with the <a href="http://www.zerina.de/">ZERINA OpenVPN addon</a> for IPCop and the <a href="http://openvpn.se/">OpenVPN GUI for Windows</a>.</p> <p>If you’ve ever want……
查看全文
发表于:2007-06-11 ┆
阅读(2706)
┆
评论(0)
HOWTO: Secure Firefox and IM with PuTTY
<p>There are times when you want to connect to the Internet through unknown and/or insecure networks such as the local <a href="http://www.panera.com/">Panera</a> or other WiFi hotspot. If you aren’t careful, you might make it all too easy for someone to sniff your connection using <a href="http://ettercap.sourceforge.net/">Ettercap</a>.</p> <p dragover="true">One of the best ways to secure your connection is to <a href="http://thinkhole.org/wp/2006/03/28/ipcop-openvpn-howto/">use a VPN</a>, ……
查看全文
发表于:2007-06-11 ┆
阅读(2442)
┆
评论(1)
Linux内核配置系统浅析
<p>级别: 初级</p><p><a href="http://www.ibm.com/developerworks/cn/linux/kernel/l-kerconf/index.html#author">汤凯</a> (<a href="mailto:tangk73@hotmail.com?subject=Linux%E5%86%85%E6%A0%B8%E9%85%8D%E7%BD%AE%E7%B3%BB%E7%BB%9F%E6%B5%85%E6%9E%90">tangk73@hotmail.com</a>), <br></p><p>2003 年 3 月 01 日</p><blockquote>Your article abstract goes here. It may include trademark symbols for IBM or Java.</blockquote><!--START RESERVED FOR FUTURE USE INCLUDE FILES--><!-- include java script once we verify ……
查看全文
发表于:2007-06-02 ┆
阅读(2159)
┆
评论(0)
Using WPA with OSX, XP and Linux
I recently setup a Netgear WGR614 wireless router for use with my broadband link and discovered that it had support for WiFi Protected Access (WPA). It can use WPA in pre-shared-key mode (WPA-PSK) otherwise known as "WPA Personal". If you don't know what WPA is or why you would want to use it, visit the <a href="http://www.wi-fi.org/OpenSection/protected_access.asp">WiFi Alliance</a>.<br> <h2>WiFi Protected Access (WPA)</h2> In summary, it's the successor to Wired Equivalent Privacy (……
查看全文
发表于:2007-06-02 ┆
阅读(2479)
┆
评论(0)
sybase 临时数据库tempdb
<span class="tpc_content"><b>sybase 临时数据库 </b> <br>缺省情况下,tempdb数据库是放置在 master设备上,容量为2M,而临时数据库是活动最为平凡的数据库常常被用来排序、创建临时表、重格式化等操作,所以tempdb的优化应该受到特别 的关注。本篇文章目的在于使你掌握临时数据库的优化策略以及临时表的优化使用。本文中,你将以调整临时库的位置开始,有步骤的完成临时数据库的优化,并在 此过程中了解到优化临时数据库和临时表的一些方法和规则。 <br>实验环境的要求:你应具有系统管理员的权限,系统中有auths和article表。 <br>……
查看全文
发表于:2007-05-12 ┆
阅读(1993)
┆
评论(0)
从四大方面 Sybase数据库完全接触
<span class="tpc_content"><b>Sybase基础知识</b><br><br>客户/服务器体系结构:Sybase是一种建立在客户/服务器体系结构上的数据库管理系统。<br><br>从硬件角度看,客户/服务器体系结构是指将某项任务在两台或多台机器之间进行分配,其中客户机(Client)用来运行提供用户接口和前端处理的应用程序,服务器机(Server)提供客户机使用的各种资源和服务。<br><br>从 软件角度看,客户/服务器体系结构是把某项应用或软件系统按逻辑功能划分为客户软件部分和服务器软件部分。客户软件部分一般负责数据的表示和应用,处理用 户界面,用以接……
查看全文
发表于:2007-05-12 ┆
阅读(2050)
┆
评论(0)
逐步讲解 Oracle数据库碎片如何整理
<p style="text-indent: 2em;">Oracle 作为一种大型数据库,广泛应用于金融、邮电、电力、民航等数据吞吐量巨大,计算机网络广泛普及的重要部门。对于系统管理员来讲,如何保证网络稳定运行,如 何提高数据库性能,使其更加安全高效,就显得尤为重要。作为影响数据库性能的一大因素 -- 数据库碎片,应当引起 DBA 的足够重视,及时发现并整理碎片乃是 DBA 一项基本维护内容。 </p><p style="text-indent: 2em;"><b>1、碎片是如何产生的 </b> </p><p style="text-indent: 2em;"> </p><p style="text-indent: 2em;">当生成一个数据库时,……
查看全文
发表于:2007-05-12 ┆
阅读(2021)
┆
评论(0)
由浅至深讲述 Sybase 数据库死锁问题
<p style="text-indent: 2em;">死锁的发生对系统的性能和吞吐量都有重要影响,经检测发现,管理信息系统的死锁主要是因为两 个或多个线程(登录)抢占同一表数据资源。引起长时间抢占同一资源不是因为我们需要处理的事务太复杂,时间太长,而往往是因为我们在前端应用程序对数据库 作操作时忘了提交。本文介绍一种处理解决这种死锁的方法。 </p><p style="text-indent: 2em;"><b>Sybase封锁原理</b> </p><p style="text-indent: 2em;">数据共享与数据一致性是一对不可调和的矛盾,为了达到数据共享与数据一致,必须进行并发控制。并发……
查看全文
发表于:2007-05-12 ┆
阅读(2065)
┆
评论(0)
根据MAC地址查询网卡(设备)生产厂商
<a href="http://www.wenzk.net/mac/" target="_blank">http://www.wenzk.net/mac/</a><br><br>支持多种MAC地址格式输入: CISCO、Huawei、Windows、Linux 输出的MAC地址格式<br>0050.56C0.0008<br> 0050-56C0-0008<br>00-50-56-C0-00-08<br>00:50:56:C0:00:08<br><br>
查看全文
发表于:2007-04-27 ┆
阅读(4683)
┆
评论(0)
Htun 原来2002年开始就有样突破代理的软件了
<p> HTun creates an point-to-point virtual IP network over HTTP by encapsulating IP traffic into valid HTTP requests. The HTun server runs on a host with an unrestricted Internet connection. It listens on a common webserver port (80 or 443) and accepts HTun client connections. The HTun client daemon runs from within a restrictive network environment, communicating with the HTun server over an HTTP proxy. </p><p> We were motivated to write HTun to combat the increasingly restrictive netwo……
查看全文
发表于:2007-04-24 ┆
阅读(2426)
┆
评论(2)
Linux下查看和修改网卡参数的工具
以前一直不知道如何使用工具来修改网卡的参数:速率、双工等参数。<br>曾经在modprobe.conf中来改变加载module时候的参数,也可以达到一些效果。<br><br>今天突然发现Linux下有两个工具貌似可以实现,记录一下:<br>mii-tool<br>ethtool<br><br>具体的看看man就知道了,简单的操作:<br>mii-tool -v<br>mii-tool -v eth0<br>ethtool eth0<br>man mii-tool<br>man ethtool<br>...<br>
查看全文
发表于:2007-04-10 ┆
阅读(2525)
┆
评论(1)
清除GRUB在MBR的残留信息
估计大部分Linux初学者会遇到把Grub安装到MBR上去了,现在不想用Linux,直接用分区工具把Linux分区给删除了,结果导致系统无法启动,具体恢复方法有很多,但是有的时候也很顽固:<br><br>1、如果能用光盘启动,那么使用光盘启动到dos,使用fdisk /mbr就搞定了。<br><br>2、如果不能用用光盘启动,那么用U盘启动(注意启动后C是否是U盘,如果是U盘,那就麻烦了),使用fdisk /mbr没有办法修改实际硬盘的MBR信息,导致无法正常覆盖。(这个我没有搞定,决定使用3解决)<br><br>3、通过U盘(网络)启动Linux,下载附件,附件是没有安装过Linu……
查看全文
发表于:2007-04-02 ┆
阅读(3576)
┆
评论(2)
Vyatta - Router / Firewall ---OpenSource
这个开源项目,不知道效果如何,没有用过,记录一下<br><br>Vyatta has created an open-source, enterprise-class router / firewall / VPN that runs on x86 hardware. Vyatta products include support for standard routing (BGP, OSPF, RIP)protocols, interfaces from T1/E1 to GigE, plus config via CLI and web GUI.<br><br><a href="http://sourceforge.net/projects/vyatta/" target="_blank">http://sourceforge.net/projects/vyatta/</a><br>
查看全文
发表于:2007-04-01 ┆
阅读(2265)
┆
评论(0)