锘??xml version="1.0" encoding="utf-8" standalone="yes"?>
紺轟緥錛?/p>
Git鏄竴涓紑婧愮殑鍒嗗竷寮忕増鏈帶鍒剁郴緇燂紝鐢ㄤ互鏈夋晥銆侀珮閫熺殑澶勭悊浠庡緢灝忓埌闈炲父澶х殑欏圭洰鐗堟湰綆$悊銆?/p>
鎿嶄綔緋葷粺錛歝entos 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 //瑙e帇
#cd curl-7.17.1
# ./configure --prefix=/usr/local/curl
# make
# make install
vi /etc/ld.so.conf 娣誨姞/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
錛?/code>
緇堢杈撳叆#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>
絎竴錛?/p>
JS浠g爜
<script language=”javascript”>
function ShopXG(infor)
{
alert(‘鎴戣寮緗戝簵銆佹惡璐嫭绔嬬綉搴楃郴緇燂紝妯℃澘鏈鍏紝鏈涓撲笟鐨勭郴緇燂紒’);
return;
}
</script>
銆銆using System.Security.Permissions;
銆銆娉ㄦ剰錛?綾誨畾涔夊墠闇瑕佸姞涓婁笅闈袱琛岋紝鍚﹀垯璋冪敤澶辮觸錛?/p>
銆銆[PermissionSet(SecurityAction.Demand, Name = "FullTrust")]
銆銆[System.Runtime.InteropServices.ComVisibleAttribute(true)]
銆銆璋冪敤鐨勫嚱鏁幫細
銆銆webBrowser1.Document.InvokeScript("ShopXG ", new string[] {‘ssss’});
絎簩錛?/p>
JS涓皟鐢╟#鍑芥暟紺轟緥
C#鍑芥暟濡備笅錛?public void ShowMessage(string message)
{
MessageBox.Show(“鍏嶈垂寮緗戝簵錛屾惡璐嫭绔嬬綉搴楃郴緇熻瘹閭鎮ㄧ殑鍔犵洘錛?#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();
鏈枃鍋囪璇昏呭凡緇忓NAT鐨勫師鐞嗗拰鍩烘湰鐢ㄦ硶鏈夋墍浜嗚В銆傚涓嶇‘瀹氾紝鍙弬鑰冧互涓嬫枃绔狅細
鏈枃妗堜緥涓紝鎴戜滑鍋囪鏈変竴瀹禝SP鎻愪緵鍥尯Internet鎺ュ叆鏈嶅姟錛屼負浜嗘柟渚跨鐞嗭紝璇SP鍒嗛厤緇欏洯鍖虹敤鎴風殑IP鍦板潃閮芥槸縐佺綉IP錛岄氳繃璇ョ緗慖P鐢ㄦ埛鏃犳硶鍚戝鍙戝竷淇℃伅銆備絾鏄紝閮ㄥ垎鐢ㄦ埛瑕佹眰寤虹珛鑷繁鐨刉WW鏈嶅姟鍣ㄥ澶栧彂甯冧俊鎭?/p>
鎴戜滑鍙互鍦ㄩ槻鐏鐨勫閮ㄧ綉鍗′笂緇戝畾澶氫釜鍚堟硶IP鍦板潃錛岀劧鍚庨氳繃ip鏄犲皠浣垮彂緇欏叾涓煇涓涓狪P鍦板潃鐨勫寘杞彂鑷沖唴閮ㄦ煇涓鐢ㄦ埛鐨刉WW鏈嶅姟鍣ㄤ笂錛岀劧鍚庡啀灝嗚鍐呴儴WWW鏈嶅姟鍣ㄥ搷搴斿寘浼鎴愯鍚堟硶IP鍙戝嚭鐨勫寘銆?/p>
鍏蜂綋鐨処P鍒嗛厤濡備笅錛?nbsp;
錛?錛夎ISP鍒嗛厤緇橝鍗曚綅www鏈嶅姟鍣ㄧ殑IP涓?
縐佺綉ip:172.168.92.100
鍏綉ip:210.95.33.100
錛?錛夎ISP鍒嗛厤緇橞鍗曚綅www鏈嶅姟鍣ㄧ殑IP涓?
縐佺綉ip:172.168.92.200
鍏綉ip:210.95.33.200
錛?錛塋inux闃茬伀澧欑殑IP鍦板潃鍒嗗埆涓?
鍐呯綉鎺ュ彛eth1:172.168.92.10
澶栫綉鎺ュ彛eth0:210.95.33.1
鐒跺悗錛屾垜浠渶瑕佽繘琛屽涓嬫楠ゅ湴鎿嶄綔錛?/p>
錛?錛夊皢鍒嗛厤緇橝銆丅鍗曚綅鐨勭湡瀹瀒p緇戝畾鍒伴槻鐏鐨勫緗戞帴鍙o紝浠oot鏉冮檺鎵ц浠ヤ笅鍛戒護錛?/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
錛?錛夋垚鍔熷崌綰у唴鏍稿悗瀹夎iptables錛岀劧鍚庢墽琛屼互涓嬭剼鏈澆鍏ョ浉鍏蟲ā鍧楋細
modprobe ip_tables modprobe ip_nat_ftp
錛?錛夊闃茬伀澧欐帴鏀跺埌鐨勭洰鐨刬p涓?10.95.33.100鍜?10.95.33.200鐨勬墍鏈夋暟鎹寘榪涜鐩殑NAT(DNAT)錛?/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
錛?錛夊闃茬伀澧欐帴鏀跺埌鐨勬簮ip鍦板潃涓?72.168.92.100鍜?72.168.92.200鐨勬暟鎹寘榪涜婧怤AT(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
榪欐牱錛屾墍鏈夌洰鐨刬p涓?10.95.33.100鍜?10.95.33.200鐨勬暟鎹寘閮藉皢鍒嗗埆琚漿鍙戠粰172.168.92.100鍜?72.168.92.200錛涜屾墍鏈夋潵鑷?72.168.92.100鍜?72.168.92.200鐨勬暟鎹寘閮藉皢鍒嗗埆琚吉瑁呮垚鐢?10.95.33.100鍜?10.95.33.200錛屼粠鑰屼篃灝卞疄鐜頒簡ip鏄犲皠銆?/p>