linuxÏÂtomcatµÄ¶àÓòÃûÅäÖÃ
ÎÒµÄÎļþÊÇ·ÅÔÚwebappsÏÂÃæ
ÔÚ /etc/hosts ¼ÓÈëÁË 127.0.0.1 www.abc.com
conf/server.xml ¼ÓÁË
<Host name="www.abc.com" appBase="webapps" unpackWARs="true" autoDeploy="true" xmlValidation="false" xmlNamespaceAware="false">
<Alias>www.abc.com</Alias>
<Context docBase="/project" path="" privileged="true" >
</Host>
projectÊÇÎÒÍøÕ¾µÄÎļþ¼Ð
È»ºó·ÃÎʵĻ°Ò»Ö±ÊÇtomcatµÄĬÈÏÒ³Ãæ tomcatÎÒÓõÄÊÇ80¶Ë¿Ú
ÍøÉÏ»¹ÓеÄ˵·ÅROOTÏÂÃæ ÊÇÔõôһ»ØÊÂ
ÔÚÏßµÈ ¿ìÀ´°ïÎÒ½â¾ö
·¹ý
幫¶¨
Ïà¹ØÎÊ´ð£º
linux ÏÂC±à³Ì ¼¯³É¿ª·¢»·¾³ ÓÃʲô±È½ÏºÃ
ÎÒ³õ²½Ñ¡¶¨ codeblock
ºÇºÇ »¹ÓÐ ÔÚlinux дÁËÒ»¸ö´òÓ¡ÖÐÎĵĴúÂ룬¶ø½ñÌìÔÚwindows ϲ鿴ÄǸö´úÂë £¬ ÊÇÂÒÂë ¶øºóÏëµ½ÏÈÓà EditPlusÏȽøÐб༠Ȼºó¸´ÖÆ ......
´úÂëÌ«¶à£¬²»ºÃÌù£¬
´óÖÂÉæ¼°µ½ÕâЩ£º
char *arg[MAXSIZE];
char *buffer[MAXSIZE];
.........
arg[k]=(char*)malloc(sizeof(char)*j);
strcpy(arg[k],buffer);
.................[color=#993300][/color]
µ ......
´ó¼ÒºÃ£¡
ÎÒʹÓõÄϵͳÊÇopen suse 11.2, ÔÚ×ö³ÌÐòµÄ±àÒëºÍÁ´½Óʱ£¬·¢ÏÖµ±¿ªÊ¼Á´½Óʱ£¬ÏµÍ³·´Ó¦±äµÃºÜÂý£¬ÆäËü½ø³Ì¾ÍÏñ±»¿¨×¡ÁËËƵġ£Ê¹ÓÃtop²é¿´£¬·¢ÏÖ2GÄڴ漸ºõ±»ÓùâÁË£¬Ö»Ê£ÏÂ45M£¬ÐéÄâÄÚ´æÒ²±»ÓõÄ2G£¬ÎÒÒѾ ......
ÈçÌ⣬ÔÚWINDOWSµ×ϵÄCODE»á£¬µ«ÔÚLINUXϲ»ÖªµÀÈçºÎʵÏÖ£¬JSµÄ´úÂëÓ¦¸ÃÊDz»Ò»ÑùµÄ¡£ Çó½Ì¡£
·Ö²»¹»ÔÙ¼Ó¡£
http://topic.csdn.net/u/20100113/08/17ba1e71-4c33-43f6-91a5-0e031c86e5ed.html
linux ......