七 282010
由于都是双线机房,所以域名解析要检查是否正确解析了电信IP,网通IP
同时还要检查IP是否可以ping通,为方便操作,写了个bat
代码如下:
@echo off
cls
color 1f
Title 检查域名解析
echo.
echo. 域名解析检查工具
echo. johncan
echo. 2010-07-27
echo.
echo.
echo -------------------------------------------------------------------------------
echo.
set /p domain= 请输入要检查的域名:
echo.
for /f "delims=: tokens=1,2" %%i in ('nslookup "%domain%"') do (
if /I "%%i"=="Address" (set "result=%%j")
)
for /f "delims=: tokens=1,2" %%i in ('nslookup "%domain%" 210.51.176.71') do (
if /I "%%i"=="Address" (set "cnc_result=%%j")
)
echo 域名: %domain%
echo 电信IP:%result%
echo 网通IP:%cnc_result%
echo.
echo.
echo ########## Ping %result% Result ##########
ping -n 10 %result%
echo.
echo.
echo ########## Ping %cnc_result% Result ##########
ping -n 10 %cnc_result%
echo.
echo.
echo 按任意键退出
pause >nul
Posted by admin
七 052010
share.bat
net use y: /del
echo net use y: \\192.168.1.80\share_doc /user:share 123456
Posted by admin
三 262010
Firewall Builder helps you write and manage configuration for your firewalls. It writes iptables commands, pf.conf file, Cisco router access lists or PIX configuration for you. You can then copy and paste configuration generated by Firewall Builder, copy the file manually or using your own scripts, or use built-in function to configure the firewall. Firewall Builder provides change control and search functions. It allows you to reuse the same address and service objects in rules of many firewalls. It simplifies coordinated changes of the rules in multi-vendor environments and helps avoid errors in generated configurations.
Firewall Builder comes with all versions of Debian Linux and Ubuntu (in "Universe"). It is also available in "extras" in Fedora Core Linux and in FreeBSD and OpenBSD ports. Packages for these OS are supported by corresponding maintainers. We build test packages for all these OS and distributions as well. Binary packages are available for Windows and Mac OS X
Posted by admin
Tagged with: Linux
十 162009
如果你确定一定要禁止该服务,请打开安全卫士--实时保护--高级设置--保护360安全卫士--关闭自我保护后,还有核心保护也要关闭,然后进入进程服务管理(随便你怎么进!)禁止启用即可。
我觉得要是你真不喜欢多的这些进程,你最起码也要在控制面板里把该进程设置为手动,因为这几个进程真的很重要!
来自:霏凡论坛
Posted by admin