??xml version="1.0" encoding="utf-8" standalone="yes"?>
CZQ?/p>
Git是一个开源的分布式版本控制系l,用以有效、高速的处理从很到非常大的目版本理?/p>
操作pȝQcentos 5.5
yum install zlib-devel
yum install openssl-devel
yum install perl
yum install cpio
yum install expat-devel
yum install gettext-devel
yum install autoconf
安装cURL
# wget http://curl.haxx.se/download/curl-7.17.1.tar.gz
# tar zxvf curl-7.17.1.tar.gz //解压
#cd curl-7.17.1
# ./configure --prefix=/usr/local/curl
# make
# make install
vi /etc/ld.so.conf d/usr/local/lib
/sbin/ldconfig
wget http://www.codemonkey.org.uk/projects/git-snapshots/git/git-latest.tar.gz
tar xzvf git-latest.tar.gz
cd git-2011-10-08
autoconf
./configure --with-curl=/usr/local/curl
make
make install
*************************************安装ok
Q?/code>
l端输入#git
相关参数和说明还是很全的
使用和搭建版本控Ӟ
可以参考:
http://blog.haohtml.com/wp-content/uploads/2011/04/git-tut.pdf
http://www.linuxsir.org/main/doc/git/gittutorcn.htm
?span class="Apple-style-span" style="color: #333333; font-family: Georgia, 'Times New Roman', Times, san-serif; line-height: 25px; background-color: #ffffff; ">或者下载?a target="_blank" style="outline-style: none; outline-width: initial; outline-color: initial; text-decoration: none; color: #3d81ee; border-bottom-width: 1px; border-bottom-style: dashed; ">git搭徏》文?/code>
W一Q?/p>
JS代码
<script language=”javascript”>
function ShopXG(infor)
{
alert(‘我要开|店、携购独立网店系l,模板最全,最专业的系l!’);
return;
}
</script>
using System.Security.Permissions;
注意Q?cd义前需要加上下面两行,否则调用p|Q?/p>
[PermissionSet(SecurityAction.Demand, Name = "FullTrust")]
[System.Runtime.InteropServices.ComVisibleAttribute(true)]
调用的函敎ͼ
webBrowser1.Document.InvokeScript("ShopXG ", new string[] {‘ssss’});
W二Q?/p>
JS中调用c#函数CZ
C#函数如下Q?public void ShowMessage(string message)
{
MessageBox.Show(“免费开|店Q携购独立网店系l诚邀您的加盟Q?#8221;);
}
<script language=”javascript”>
function InvokeFunc()
{
window.external.ShowMessage(‘呵呵’);
}
</script>
<script type="text/javascript" language="javascript"> function test() { alert("oec2003"); return false; } </script>
protected void Button1_Click(object sender, EventArgs e) { ClientScript.RegisterStartupScript(this.GetType(), "clear", "<script>test()</script>"); }
public string GetAuthStatus() { ViewState["Auth"] = "Red"; return ViewState["Auth"].ToString(); }
<script type="text/javascript" language="javascript"> function getAuth() { var authStatus = "<%=GetAuthStatus()%>"; return authStatus; } </script>
document.all("button1").click();
本文假设读者已l对NAT的原理和基本用法有所了解。如不确定,可参考以下文章:
本文案例中,我们假设有一家ISP提供园区Internet接入服务Qؓ了方便管理,该ISP分配l园区用LIP地址都是U网IPQ通过该私|IP用户无法向外发布信息。但是,部分用户要求建立自己的WWW服务器对外发布信息?/p>
我们可以在防火墙的外部网卡上l定多个合法IP地址Q然后通过ip映射使发l其中某一个IP地址的包转发臛_部某一用户的WWW服务器上Q然后再该内部WWW服务器响应包伪装成该合法IP发出的包?/p>
具体的IP分配如下Q?nbsp;
Q?Q该ISP分配lA单位www服务器的IP?
U网ip:172.168.92.100
公网ip:210.95.33.100
Q?Q该ISP分配lB单位www服务器的IP?
U网ip:172.168.92.200
公网ip:210.95.33.200
Q?QLinux防火墙的IP地址分别?
内网接口eth1:172.168.92.10
外网接口eth0:210.95.33.1
然后Q我们需要进行如下步骤地操作Q?/p>
Q?Q将分配lA、B单位的真实ipl定到防火墙的外|接口,以root权限执行以下命oQ?/p>
#ifconfig eth0 add 210.95.33.100 netmask 255.255.255.0 #ifconfig eth0 add 210.95.33.200 netmask 255.255.255.0
Q?Q成功升U内核后安装iptablesQ然后执行以下脚本蝲入相x块:
modprobe ip_tables modprobe ip_nat_ftp
Q?Q对防火墙接收到的目的ip?10.95.33.100?10.95.33.200的所有数据包q行目的NAT(DNAT)Q?/p>
#iptables -A PREROUTING -i eth0 -d 210.95.33.100 -j DNAT --to 172.168.92.100 #iptables -A PREROUTING -i eth0 -d 210.95.33.200 -j DNAT --to 172.168.92.200
Q?Q对防火墙接收到的源ip地址?72.168.92.100?72.168.92.200的数据包q行源NAT(SNAT):
#iptables -A POSTROUTING -o eth0 -s 172.168.92.100 -j SNAT --to 210.95.33.100 #iptables -A POSTROUTING -o eth0 -s 172.168.92.200 -j SNAT --to 210.95.33.200
q样Q所有目的ip?10.95.33.100?10.95.33.200的数据包都将分别被{发给172.168.92.100?72.168.92.200Q而所有来?72.168.92.100?72.168.92.200的数据包都将分别被伪装成?10.95.33.100?10.95.33.200Q从而也实Cip映射?/p>