Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

LinuxÖеÄÄÚ´æ·ÖÅäºÍÊÍ·ÅÖ®mem_init()º¯Êý·ÖÎö

void __init mem_init(void)
{
   unsigned int codepages, datapages, initpages;
   int i, node;
  codepages = &_etext - &_text;//Äں˴úÂë¶ÎµÄ´óС¡£
  datapages = &_end - &__data_start;//ÄÚºËÊý¾Ý¶ÎµÄ´óС¡£
  initpages = &__init_end - &__init_begin;//Äں˳õʼ»¯Ïà¹Øº¯ÊýÖ¸Õë¿Õ¼ä¶ÎµÄ´óС¡£
 #ifndef CONFIG_DISCONTIGMEM//Èç¹ûϵͳÄÚ´æ¿Õ¼äÁ¬ÐøµÄ»°¡£
        max_mapnr   = virt_to_page(high_memory) - mem_map;//max_mapnr±£´æ×Å×î´óµÍ¶ËÄÚ´æÒ³Êý¡£
 #endif
 if (meminfo.nr_banks != 1)//Èç¹ûbank²»Ö¹Ò»¸ö£¬ËµÃ÷¿ÉÄÜ´æÔÚÄÚ´æ¿×¶´¡£
       create_memmap_holes(&meminfo);//¶Ôÿ¸önodeµÄbank½øÐмì²é£¬Ö»Òª·¢ÏÖÇ°ºóÊôÓÚÕâ¸önodeµÄÏàÁÚbankµÄÊÕβҳºÅ²»Ò»
                                                               //ÑùµÄʱºò£¬ÎÒÃǾ͵÷ÓÃfree_memmap(),Õâ¸öº¯ÊýÊ×ÏÈͨ¹ýÒ³ºÅת»»³ÉÕâÁ½¸öÒ³¶ÔÓ¦µÄ
                                                               //struct pageËùÔÚµÄÐéÄâµØÖ·£¬È»ºóʹÕâÁ½¸öÐéÄâת»»³ÉÎïÀíµØÖ·£¬²¢ÇÒ½øÐа´Ò³¶ÔÆ룬
                                                 &nbs


Ïà¹ØÎĵµ£º

grepÃüÁî LinuxʵÓÃÃüÁî


ÍøÉϹØÓÚgrepµÄÒ»ËÑÒ»´ó¶Ñ£¬¶¼ÊÇgrepÏê½âʲôµÄ£¬²¢ÇÒ¶¼ÊÇͬһƪÎÄÕ£¬Ð´µÄ¼¸¸öÀý×ÓÒ²²»ÊµÓã¬
¶ÔÓÚ³õѧÕߣ¬ÏëÒªµÄÊÇÔõôºÃÓ㬶ø²»ÊǸ´ÔÓµÄÑÛ»¨çÔÂҵēÏê½â”¡£
ÎÒÔÚÍøÉÏÕÒÁ˺ðëÌì¾ÍÊÇÕÒ²»µ½Ò»¸öʵÓõÄÀý×Ó¡£ºÜÊÇÓôÃÆ~~
×îºó¿´×Å°ïÖúÎĵµ£¬²Î¿¼ÍøÉÏ×ÊÁÏ£¬Ò»¸ö²ÎÊýÒ»¸ö²ÎÊýµÄÊÔ£¬×îÖÕ¾õµÃÕ⼸¸ö±È½ÏºÃÓᣠ......

GNU/Linuxƽ̨µÄC³ÌÐò¿ª·¢¼°³ÌÐòÔËÐл·¾³

±¾ÎĽéÉÜÔÚGNU/Linux»·¾³ÏÂÒ»¸öC³ÌÐòÓÉÔ´´úÂëµ½³ÌÐò£¬µ½¼ÓÔØÔËÐУ¬×îºóÖÕÖ¹µÄ¹ý³Ì¡£Í¬Ê±ÒԴ˹ý³ÌΪÔØÌ壬½éÉÜGNU/Linuxƽ̨ÏÂÈí¼þ¿ª·¢¹¤¾ßµÄʹÓá£
 
±¾ÎÄÒÔÎÒÃÇ×î³£¼ûµÄhello, world!ΪÀý£º
 
#include <stdio.h>
main ()
{
      printf(“hello, world!\n” ......

LINUX ϵͳµ÷ÓÃ

ʲôÊÇϵͳµ÷ÓÃ
   ¹ËÃû˼Ò⣬ϵͳµ÷ÓÃ˵µÄÊDzÙ×÷ϵͳÌṩ¸øÓû§³ÌÐòµ÷ÓõÄÒ»×é“ÌØÊ┽ӿڡ£Óû§³ÌÐò¿ÉÒÔͨ¹ýÕâ×é“ÌØÊ┽ӿÚÀ´»ñµÃ²Ù×÷ϵͳÄÚºËÌṩµÄ·þÎñ£¬±ÈÈçÓû§¿ÉÒÔͨ¹ýÎļþϵͳÏà¹ØµÄµ÷ÓÃÇëÇóϵͳ´ò¿ªÎļþ¡¢¹Ø±ÕÎļþ»ò¶ÁдÎļþ£¬¿ÉÒÔͨ¹ýʱÖÓÏà¹ØµÄϵͳµ÷ÓûñµÃϵͳʱ¼ä»òÉèÖÃÏµÍ ......

Linux Ï°²×°jdk£¬ MyEclipseºÍWebLogic±Ê¼Ç

1£¬ Ê×ÏÈ×¼±¸Linux»·¾³£¬ RedHat5.3µÄϵͳ£¬ jdkÊÇ1.6°æ±¾µÄ£¬MyEclipseÊÇ7.0µÄ£¬ Á¬½Óʱ¿ÉÒÔʹÓÃssh»òÊÇcrt½øÐÐwindowsÓëLinuxµÄ½»Á÷¡£
 
2£¬ÎªÁËÉÏ´«·½±ã£¬ ÔÚʱʹÓÃcrt£¬Ëû¿ÉÒÔʹÉÏ´«£¬ÏÂÔصÄËٶȸü¿ì¡£
 
3£¬ ÔÚLinuxÏ´´½¨±ÈÈç˵ÊÇjdkĿ¼£¬ ʹÓÃrzÉÏ´«¹¤¾ß½øÐÐÉÏ´«£¬ ÉÏ´«ÒԺ󣬸³ÓèÎļþ¼ÐµÃȨÏÞ£¬²¢ÇÒ ......

ÔÚLinux²Ù×÷ϵͳÏÂÐÞ¸ÄIP¡¢DNSºÍ·ÓÉÅäÖÃ

ifconfig eth0 ÐÂIP
È»ºó±à¼­/etc/sysconfig/network-scrIPts/ifcfg- eth0£¬ÐÞ¸ÄIP
Ò»¡¢ÐÞ¸ÄIPµØÖ·
[aeolus@db1 network-scrIPts]$ vi ifcfg-eth0
DEVICE=eth0
ONBOOT=yes
BOOTPROTO=static
IPADDR=219.136.241.211
NETMASK=255.255.255.128
GATEWAY=219.136.241.254
¶þ¡¢ÐÞ¸ÄÍø¹Ø
vi /etc/sysconfig/network
N ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ