Java WebÓ¦ÓÃÔÚARM Linuxƽ̨ÉϵÄʵÏÖ
0
Java WebÓ¦ÓÃÔÚARM Linuxƽ̨ÉϵÄʵÏÖ
Posted in ˶²©ÂÛÎÄ at ʮһÔ 12th, 2009 / No Comments »
Íõ࣬ÖÜÀ¼½£¬ÁõÀñ¶«£¬½âÔÆÏö
(À¥Ã÷Àí¹¤´óѧÐÅÏ¢¹¤³ÌÓë×Ô¶¯»¯Ñ§Ôº£¬ÔÆÄÏÀ¥Ã÷650051)
1ÒýÑÔ
Ëæ×ÅÍøÂçÐÅÏ¢¼¼ÊõµÄ·ÉËÙ·¢Õ¹£¬Web¼¼ÊõÔ½À´Ô½¶àµÄÓÃÔÚ¿ØÖÆÁìÓò£¬¿Í»§¶ËÖ»ÐèÁ¬½ÓÒÔÌ«Íø£¬È¡µÃ·ÃÎÊȨÏÞ£¬¾Í¿ÉÒÔ·ÃÎÊ·þÎñ
Æ÷£¬²éÔÄÏÖ³¡ÓйØÐÅÏ¢£¬²¢¿ÉÒÔ¶Ô·þÎñÆ÷µÄ²Ù×÷½øÐпØÖÆ£¬¸øά»¤ºÍ¹ÜÀí¹¤×÷´øÀ´·½±ã¡£¶øJavawebÓ¦ÓÃÊÇ»¥ÁªÍøÖеÄÊ×Ñ¡¼¼Êõ£¬
Ëü¾ßÓÐÃæÏà¶ÔÏó¡¢Æ½Ì¨Î޹ء¢¶àÏ̡߳¢·Ö²¼¡¢°²È«µÈÌص㣬¶øÕâЩÌصãÇ¡Ç¡Âú×ãÁË»¥ÁªÍø·¢Õ¹µÄÐèÇó¡£Í¬Ê±£¬Ç¶ÈëʽϵͳÒÔÆäʵʱÐÔ
Ç¿£¬¿É¿¿ÐԸߣ¬½á¹¹Ð¡ÇɵÈÓŵ㣬ÔÚ¸÷¸öÁìÓò¶¼µÃµ½Á˹㷺ӦÓá£Javaweb¼¼ÊõºÍǶÈëʽϵͳµÄ½áºÏ£¬³ä·Ö·¢»ÓÁËÁ½Õ߸÷×ÔµÄÓÅ
ÊÆ£¬´Ó¶øΪԶ¶ËÊý¾Ý¼à¿ØµÄ·¢Õ¹¿ª±ÙÁËһƬÌì¿Õ¡£¹¹½¨»ùÓÚArm LinuxµÄǶÈëʽiava Web·þÎñÆ÷£¬ÎªÇ¶ÈëʽϵͳµÄInternet½ÓÈË
ÌṩÁËÒ»ÖÖ·½±ã¿ì½ÝµÄʵÏÖ·½·¨¡£
2 Arm Linuxƽ̨ºÍJava WebÓ¦ÓøÅÊö
2£®1 ARM Linuxƽ̨¸ÅÊö
ǶÈëʽƽ̨ûÓÐ×ã¹»µÄÓ²¼þ×ÊÔ´ÔËÐпª·¢¹¤¾ßºÍµ÷ÊÔ¹¤¾ß£¬ËùÒÔǶÈëʽLinuxϵͳµÄÈí¼þ¿ª·¢Í¨³£²ÉÓý»²æ±àÒëµ÷ÊԵķ½Ê½£¬
½»²æ±àÒëµ÷ÊÔ»·¾³½¨Á¢ÔÚËÞÖ÷»ú(¼´Ò»Ì¨PC»ú)ÉÏ£¬¶ÔÓ¦µÄ¿ª·¢°å½Ð×öÄ¿±ê°å£¬ËÞÖ÷»úÓ뿪·¢°åÖ®¼äͨ¹ýÍøÏß¡¢´®¿ÚÏßÁ¬½Ó£¬½øÐÐÓ¦
ÓóÌÐò¿ª·¢ºÍµ÷ÊÔ¡£
ÂÛÎÄÖеÄÓ²¼þƽ̨Ϊ´¦ÀíÆ÷ΪÈýÐÇs3c2440£¬ÄÚºËΪARM920T¿ª·¢°å¡£Ç¶Èëʽ²Ù×÷ϵͳÊÇ»ùÓÚLinux 2£®6Äں˵Äutu Linux²Ù
×÷ϵͳ¡£
2£®2Java WebÓ¦ÓøÅÊö
Java WebÓ¦ÓÃÓÐÒ»×éservlet¡¢htmlÒ³¡¢À࣬ÒÔ¼°ÆäËû¿ÉÒÔ±»°ó¶¨µÄ×ÊÔ´¹¹³É£¬Ëü¿ÉÒÔÔÚ¸÷ÖÖ¹©Ó¦ÉÌÌṩʵÏÖservlet¹æ·¶µÄweb
Ó¦ÓÃÈÝÆ÷ÖÐÔËÐС£Í¨³£µÄjava webÓ¦ÓõÄƽ̨°üÀ¨£ºjavaÐéÄâ»ú£¬java webÈÝÆ÷£¬Êý¾Ý¿âµÈ¡£ÎªÔÚArm Linuxƽ̨ÉÏʵÏÖjava webÓ¦
Óã¬Ñ¡ÔñÒÆÖ²¿ªÔ´µÄjavaÐéÄâ»újamvm£¬java webÈÝÆ÷winstoneºÍǶÈëʽÊý¾Ý¿âsqliteÒÔ¼°sqliteÊý¾Ý¿âµÄjdbcÇý¶¯³ÌÐòsqlit~dbc¡£
Jamvm·ûºÏJVM¹æ·¶µÚ¶þ°æ±¾£¬ËäСµ«Ö§³ÖÍêÕûµÄ¹æ·¶¡£WinstoneÊÇÒ»¸öServletÈÝÆ÷£¬ËüµÄÄ¿µÄÊÇÌṩispºÍServlet×é¼þ¹¦
ÄÜ£¬ËüÖ§³Öservlet2£®4ÓëJSP2£®0¹æ·¶¡£SQLiteÊÇÒ»¸ö×Ô°üº¬¡¢ÎÞ·þÎñÆ÷¡¢ÁãÅäÖá¢ÊÂÎñÖ§³ÖµÄ½ø³ÌÄÚÊý¾Ý¿âÒýÇ棬֧³Ö¾ø´ó¶àÊýµÄ±ê×¼
SQL92Óï¾ä£¬²ÉÓõ¥¸öÎļþ´æ·ÅÊý¾Ý¿âµÄ±í¡¢ÊÓͼ¡¢´¥·¢Æ÷µÈ£¬ËÙ¶ÈÒ²ÓÅÓÚMySQLµÈÆäËüÊý¾Ý¿â£¬×î´ó¿ÉÖ§³Ö2TBµÄÊý¾Ý¿â¡£
3 Java webƽ̨µÄ´î½¨
3£®1 Jamvm ÐéÄâ»úµÄÒÆÖ²
Ïà¹ØÎĵµ£º
1. ѧ»áд¼òµ¥µÄmakefile
2. ±àһЩӦÓÃ
³ÌÐò
£¬¿ÉÒÔÓÃmakefileÅÜÆðÀ´
3. ѧ»áдÇý¶¯
µÄmakefile
4. дһ¼òµ¥charÇý¶¯£¬makefile±àÒëͨ¹ý£¬¿ÉÒÔinsmod£¬ lsmod£¬ rmmod. ÔÚÇý¶¯µÄinitº¯ÊýÀï´òÓ¡hello world£¬insmodºóÓ¦¸ÃÄܹ»Í¨¹ýdmesg¿´µ½Êä³ö
¡£
5. дһÍêÕûÇý¶¯£¬ ¼ÓÉÏread£¬ write£¬ ioctl£¬ pollingµÈ¸ ......
³ö´¦:http://ericxiao.cublog.cn/
Ò»£ºÇ°ÑÔ
ÔÚ¼üÅÌÇý¶¯´úÂë·ÖÎöµÄ±Ê¼ÇÖУ¬½Ó´¥µ½ÁËinput×Óϵͳ.¼üÅÌÇý¶¯£¬¼üÅÌÇý¶¯½«¼ì²âµ½µÄËùÓа´¼ü¶¼Éϱ¨¸øÁËinput×Óϵͳ¡£Input×ÓϵͳÊÇËùÓÐI/OÉ豸Çý¶¯µÄÖмä²ã£¬ÎªÉϲãÌṩÁËÒ»¸öͳһµÄ½çÃæ¡£ÀýÈ磬ÔÚÖÕ¶ËϵͳÖУ¬ÎÒÃDz»ÐèҪȥ¹ÜÓжàÉÙ¸ö¼üÅÌ£¬¶àÉÙ¸öÊó±ê¡£ËüÖ»Òª´Óinput×ÓϵͳÖÐÈ¥È ......
1.
int (*func)();º¯ÊýÖ¸Õ룬ָÏòµÄº¯ÊýΪ¿Õ²ÎÊý£¬·µ»ØÕûÐÍ£»
2.
»Øµ÷º¯ÊýÊÇÒ»¸ö³ÌÐòÔ±²»ÄÜÏÔʽµ÷Óõĺ¯Êý£»Í¨¹ý½«»Øµ÷º¯ÊýµÄµØÖ·´«¸ø±»µ÷ÓÃÕß´Ó¶øʵÏÖµ÷Óá£
»Øµ÷º¯ÊýÊÇÒ»¸öͨ¹ýº¯ÊýÖ¸Õëµ÷Óõĺ¯Êý¡£Èç¹ûÄã°Ñº¯ÊýµÄÖ¸Õ루µØÖ·£©×÷Ϊ²ÎÊý´«µÝ¸øÁíÒ»¸öº¯Êý£¬µ±Õâ¸öÖ¸Õë±»ÓÃΪµ÷ÓÃËüËùÖ¸ÏòµÄº¯Êýʱ£¬ÎÒÃǾÍ˵ÕâÊǻص÷º¯ ......
When Linux Runs Out of Memory
http://linuxdevcenter.com/pub/a/linux/2006/11/30/linux-out-of-memory.html?page=1
Perhaps you rarely face it, but once you do, you surely know what's
wrong: lack of free memory, or Out of Memory (OOM). The results are
typical: you can no longer allocate more memory ......
Å£½ò×ÖµäÖжÔ"kernel"Ò»´ÊµÄ¶¨ÒåÊÇ£º"½ÏÈíµÄ¡¢Í¨³£ÊÇÒ»¸ö¼á¹û¿ÉʳÓõIJ¿·Ö¡£"µ±È»»¹ÓеڶþÖÖ¶¨Ò壺"ij¸ö¶«Î÷ºËÐÄ»òÕß×îÖØÒªµÄ²¿·Ö¡£"¶ÔLinuxÀ´Ëµ£¬ËüµÄKernelÎÞÒÉÊôÓÚµÚ¶þÖÖ½âÊÍ¡£ÈÃÎÒÃÇÀ´¿´¿´Õâ¸öÖØÒªµÄ¶«Î÷ÊÇÈçºÎ¹¤×÷µÄ£¬ÏÈ´ÓÒ»µãÀíÂÛ˵Æð¡£
¹ãÒåµØÀ´Ëµkernel¾ÍÊÇÒ»¸öÈí¼þ£¬ËüÔÚÓ²¼þºÍÔËÐ ......