ÔÚ Linux ÏÂÔËÐÐ ASP.NET 2.0
µ¥Î»ÓÐһ̨ÏÐÖÃµÄ¾É IBM Netfinity 7000 µÄ·þÎñÆ÷£¬Ë« Pentium Pro 200 MHz CPU£¬512 MB Äڴ棬һ¸ö 9.1 GB ºÍÎå¸ö 4.5 GB µÄ SCSI Ó²ÅÌ¡£ÎÒÏ뽫Æä·ÏÎïÀûÓÃһϣ¬ÓÚÊÇ£º
1. µ½ http://tw.releases.ubuntu.com/edgy/ ÏÂÔØ PC (Intel x86) server install CD £¬½«ÏÂÔصõ½µÄ ubuntu-6.10-server-i386.iso Îļþ¿Ì¼һÕŹâÅÌ¡£
2. ÓÃÕâÕŹâÅÌÔÚ IBM Netfinity 7000 ·þÎñÆ÷ÉÏ°²×° Ubuntu 6.10 (Edgy) ¡£
3. °²×° Apache2:
sudo apt-get install apache2
4. °²×°»ù±¾µÄ±àÒë»·¾³:
sudo apt-get install build-essential checkinstall
5. °²×° libapache2-mod-mono:
×î¼òµ¥µÄ·½·¨¾ÍÊÇʹÓÃÒÔÏÂÃüÁî:
sudo apt-get install libapache2-mod-mono
µ«ÊÇÄ¿Ç°ÔÚ Ubuntu 6.10 ÖÐÕâÌõÃüÁî»á±¨´í¡£Ö»ºÃ×Ô¼º±àÒëÒ»¸öÁË£º
md src
cd src
sudo apt-get install apache2-threaded-dev mono-xsp2 mono-apache-server mono-apache-server2
wget http://go-mono.com/sources/mod_mono/mod_mono-1.2.1.tar.gz
tar xzf mod_mono-*.tar.gz
cd mod_mono-*/
./configure --prefix=/usr --sysconfdir=/etc
make
sudo checkinstall
6. ÅäÖà Apache2 ÒÔ±ãÔËÐÐ ASP.NET 2.0
cd /etc/apache2/mods-available
sudo ln -s ../mod_mono.conf mod_mono.conf
sudo echo "LoadModule mono_module /usr/lib/apache2/modules/mod_mono.so" > mod_mono.load
sudo a2enmod mod_mono
cd ../sites-available
sudo vim ben.skyiv.com Çë²Î¿¼ default ÎļþµÄÄÚÈÝ£¬¹Ø¼üÊǼÓÈëÒÔÏÂÓï¾ä:
# -------------------------------------------------
Alias /ben /home/ben/www/ben
AddMonoApplications ben "/ben:/home/ben/www/ben"
MonoServerPath ben /usr/bin/mod-mono-server2
<Location /ben
Ïà¹ØÎĵµ£º
Èç¹û¶Ô΢ÐͼÆËã»úÓ²¼þϵͳÓÐ×ã¹»µÄÁ˽⣬ÄÇôÎÒÃǶÔÓÚCacheÕâ¸öÃû´ÊÒ»¶¨ÊǶúÊìÄÜÏêµÄ¡£ÔÚCPUÒÔ¼°Ö÷°åµÄоƬÖУ¬¶¼ÒýÈëÁËÕâÖÖÃûΪ¸ßËÙ»º³å´æ´¢Æ÷£¨Cache£©µÄ¼¼Êõ¡£ÒòΪCacheµÄ´æÈ¡ËٶȱÈÄÚ´æ¿ì£¬Òò¶øÒýÈëCacheÄܹ»ÓÐЧµÄ½â¾öCPUÓëÄÚ´æÖ®¼äµÄËٶȲ»Æ¥ÅäÎÊÌâ¡£Ó²¼þϵͳ¿ÉÒÔÀûÓÃCache´æ´¢CPU·ÃÎʸÅÂʸߵÄÄÇЩÊý¾Ý£¬µ±CPUÐèÒª·ÃÎ ......
Ò»¡¢ÑéÖ¤Àà
1¡¢Êý×ÖÑéÖ¤ÄÚ
1.1 ÕûÊý
/^(-|\+)?\d+$/.test(str)
1.2 ´óÓÚ0µÄÕûÊý £¨ÓÃÓÚ´«À´µÄIDµÄÑéÖ¤)
/^\d+$/.test(str) &nb ......
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Text;
using ......
Ö§¸¶±¦µÄ½Ó¿Úµ÷Óúܲ»·½±ã£¬¸Õ×öºÃÒ»¸ö·â×°£¬ÊµÏÖÁËÐéÄâ½»Ò׺ÍʵÎï½»Òס£
½â¾ö·½°¸ÖÐÓÐÈý¸öÏîÄ¿ÒÔ¼°NDocÉú³ÉµÄÎĵµ£¬¼òµ¥µÄÐòÁÐͼ£ºCommonAliPay£¬·â×°µÄÖ§¸¶±¦½Ó¿Ú¡£
TestAli,asp.netµÄ²âÊÔÏîÄ¿
TestCommonAliPay£¬NunitµÄ²âÊÔÏîÄ¿¡£
µ÷Ó÷½·¨£º
1¡¢ÒýÈëCommonAliPay.dll
2¡¢ÊµÏÖÖ§¸¶±¦·þÎñ½Ó¿ÚµÄ·½·¨µ÷Ó÷½Ê½£º
......