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

linux½ø³ÌÖ®¼äµÄͨÐÅ

¸¸×Ó½ø³ÌÈçºÎͨÐÅ£¿
Ò»¶Ô¸¸×Ó½ø³Ì¿ÉÒÔͨ¹ýÕý³£µÄ½ø³Ì¼äͨÐŵİ취(¹ÜµÀ£¬Ì×½Ó×Ö£¬ÏûÏ¢¶ÓÁУ¬¹²ÏíÄÚ´æ)½øÐÐͨÐÅ£¬µ«Ò²¿ÉÒÔͨ¹ýÀûÓÃËüÃÇ×÷Ϊ¸¸×Ó½ø³ÌµÄÏ໥¹Øϵ¶ø¾ßÓеÄһЩÌØÊâ·½·¨¡£
Ò»¸ö×îÏÔÈ»µÄ·½·¨ÊǸ¸½ø³Ì¿ÉÒԵõ½×Ó½ø³ÌµÄÍ˳ö״̬¡£
ÒòΪ×Ó½ø³Ì´ÓËüµÄ¸¸½ø³Ì¼Ì³ÐÎļþÃèÊö·û£¬ËùÒÔ¸¸½ø³Ì¿ÉÒÔ´ò¿ªÒ»¸ö¹ÜµÀµÄÁ½¶Ë£¬È»ºófork£¬È»ºó¸¸½ø³Ì¹Ø±Õ¹ÜµÀÕâÒ»¶Ë£¬×Ó½ø³Ì¹Ø±Õ¹ÜµÀÁíÒ»¶Ë¡£ÕâÕýÊÇÄã´ÓÄãµÄ½ø³Ìµ÷ÓÑpopen()’º¯ÊýÔËÐÐÁíÒ»¸ö³ÌÐòËù·¢ÉúµÄÇé¿ö£¬Ò²¾ÍÊÇ˵Äã¿ÉÒÔÏò ‘popen()’·µ»ØµÄÎļþÃèÊö·û½øÐÐд²Ù×÷¶ø×Ó½ø³Ì½«Æäµ±×÷×Ô¼ºµÄ±ê×¼ÊäÈ룬»òÕßÄã¿ÉÒÔ¶ÁÈ¡Õâ¸öÎļþÃèÊö·ûÀ´¿´×Ó½ø³ÌÏò±ê×¼Êä³öдÁËʲô¡£(‘popen()’º¯ÊýµÄmode²ÎÊý¶¨ÒåÄãµÄÒâͼ(ÒëÕß×¢£ºmode=“r”Ϊ¶Á£¬mode=“w”Ϊд)£»Èç¹ûÄãÏë¶Áд¶¼×ö£¬ÄÇôÄã¿ÉÒÔ²¢²»À§ÄѵØÓùܵÀ×Ô¼º×öµ½)
¶øÇÒ£¬×Ó½ø³Ì¼Ì³ÐÓɸ¸½ø³ÌÓÃmmapº¯ÊýÓ³ÉäµÄÄäÃû¹²ÏíÄÚ´æ¶Î(»òÕßͨ¹ýÓ³ÉäÌØÊâÎļþ‘/dev/zero’)£»ÕâЩ¹²ÏíÄÚ´æ¶Î²»ÄÜ´ÓÎ޹صĽø³Ì·ÃÎÊ¡£
Linux½ø³Ì¼äͨÐŵķ½·¨
1¡¢¹ÜµÀ(pipe)
ÓÃÓï¾ßÓÐÇ×Ôµ¹Øϵ½ø³Ì¼äµÄͨÐÅ
ÄäÃûÒ»´ÎÐÔʹÓõģ¬°ëË«¹¤¡£Ò»¸ö½ø³ÌÍùÊä³ö¶Ëд¹ÜµÀ£¬ÁíÒ»¸ö½ø³Ì´ÓÊäÈë¶Ë¶Á¹ÜµÀ¡£
  #include
  int pipe(int fd[2]);
  fd[0]:±íʾ¶Á¶Ë
  fd[1]:±íʾд¶Ë
2¡¢ÓÐÃû¹ÜµÀ(named pipe)
ÔÊÐíÎÞÇ×Ôµ¹Øϵ½ø³Ì¼äµÄͨÐÅ
ÓÐÃû¹ÜµÀ£¬×÷ΪÌرðÎļþ´æ´¢ÓÚÎļþϵͳÖС£ÓÐÃû¹ÜµÀÒ»µ©½¨Á¢¾Í´æÔÚÓÚÎļþϵͳÖУ¬³ý·ÇÏÔʾµÄunlink
  #include
  #include
  int mknod(const char *path,mode_t mod,dev_t dev);
  int mkfifo(const char *path,mode_t mode);
  path:´´½¨ÓÐÃû¹ÜµÀµÄȫ·¾¶Ãû
  mod:´´½¨ÓÐÃû¹ÜµÀµÄģʽ£¬Ö¸´æȡȨÏÞ
  dev:É豸ֵ£¬¸Ãֵȡ¾öÓÚÎļþ´´½¨µÄÖÖÀ࣬ËüÖ»ÔÚ´´½¨É豸Îļþʱ²Å»áÓõ½
  ×¢Òâ:ÓÐÃû¹ÜµÀ´´½¨ºó¾Í¿ÉÒÔʹÓÃÁË£¬ÓÐÃû¹ÜµÀºÍ¹ÜµÀµÄʹÓ÷½·¨»ù±¾ÊÇÏàͬµÄ¡£Ö»ÊÇʹÓÃÓÐÃû¹ÜµÀµÄʱºò±ØÐëÏȵ÷ÓÃopen()½«Æä´ò¿ª
  ÒòΪÓÐÃû¹ÜµÀÊÇÒ»¸ö´æÔÚÓÚÓ²ÅÌÉϵÄÎļþ£¬¶ø¹ÜµÀÊÇ´æÔÚÓÚÄÚ´æÖеÄÌØÊâÎļþ
  ÏÂÃæµÄ³ÌÐòÒ»¸ö¶Á¹ÜµÀ£¬ÁíÒ»¸öд¹ÜµÀ£¬ÕâÁ½¸öº¯ÊýÓõÄÊÇ·Ç×èÈû¶Áд¹ÜµÀ
#include
#include
#include
#include
#include
#include
#include
#de


Ïà¹ØÎĵµ£º

LinuxÄÚºËÅäÖÃÎĵµ(make menuconfig)

Ò»¡¢ÒýÑÔ£º
    ±¾ÎĵµµÄÄÚÈݴ󲿷ÝÄÚÈݶ¼ÊÇ´ÓÍøÉÏÊÕ¼¯¶øÀ´£¬È»ºóÅäºÏһЩеĽØͼ£¨Äں˰汾£ºV2.4.19£©¡£ÔÚÿһÅäÖÃÏîºó»áÓÐÒ»¸öÑ¡ÔñÖ¸ÄϵIJ¿·Ý£¬ÓÃÀ´Ö¸µ¼´ó¼ÒÔõôÑù¸ù¾Ý×Ô¼ºµÄÇé¿öÀ´×öÏàÓ¦µÄÑ¡Ôñ£»»¹ÓÐÔÚÿһ¸ö´óÏîºÍÎĵµµÄ×îºó»áÓÐÒ»¸ö¾­Ñé̸£¬ËüÊÇһЩ¸ßÊÖÃÇÔÚÓ¦¶ÔÎÊÌâºÍ´¦ÀíÌØÓÐÓ²¼þʱµÄһЩ¾­Ñ飨Õâ¸ö»¹µ ......

linux³¹µ×ɾ³ýoracle

http://www.oklinux.cn/html/sql/other/20080317/49465.html
1.ÓÃoracleÓû§µÇ¼
Èç¹ûÒªÔٴΰ²×°£¬ ×îºÃÏÈ×öһЩ±¸·Ý¹¤×÷¡£°üÀ¨Óû§µÄµÇ¼½Å±¾£¬Êý¾Ý¿â×Ô¶¯Æô¶¯¹Ø±ÕµÄ½Å±¾£¬ºÍListener×Ô¶¯Æô¶¯µÄ½Å±¾¡£ÒªÊÇÓпÉÄÜÁ¬´´½¨Êý¾Ý¿âµÄ½Å±¾Ò²±£´æÏÂÀ´
2.ʹÓÃSQL*PLUSÍ£Ö¹Êý¾Ý¿â
[oracle@ora920 oracle]$ sqlplus /nolog
SQL&g ......

linux rootÃÜÂ붪ʧºóµÄ½â¾ö°ì·¨


½øÈëGRUB:ÔÚÒýµ¼×°ÔسÌÐò²Ëµ¥ÉÏ£¬¼üÈë [e] À´½øÈë±à¼­Ä£Ê½¡£Äã»áÃæ¶ÔÒ»¸öÒýµ¼ÏîÄ¿ÁÐ±í¡£²éÕÒÆäÖÐÀàËÆÒÔÏÂÊä³ö µÄ¾äÐУº ¡¡
kernel /vmlinuz-2.4.18-0.4 ro root=/dev/hda2
°´¼ýÍ·¼üÖ±µ½ÕâÒ»Ðб»Í»³öÏÔʾ£¬È»ºó°´ [e]¡£ÄãÏÖÔÚ¿ÉÔÚÎı¾½áβ´¦¿ÕÒ»¸ñÔÙÌí¼Ó single À´¸æËß GRUB Òýµ¼µ¥Óû§ Linux ģʽ¡£°´ [Enter] ¼üÀ´Ê¹± ......

ʹÓÃGDBµ÷ÊÔǶÈëʽLinuxÉ豸

²½Ö裺
Ò»¡£ÊìϤÔÚÆÕͨµçÄÔÉÏÓÃ
GDBµ÷ÊԵĻù±¾·½Ê½¡£²Î¼û£º
http://www.ibm.com/developerworks/linux/library/l-gdb/
¶þ¡£ÏÂÔØ¡¶
gdb
quick reference¡·£¬
2ÕÅÖ½£¬´òÓ¡³öÀ´·ÅÔÚÊֱ߱¸Óá£
Èý¡£ÈÃǶÈëʽϵͳ֧³Ö
gdbserver.
£¨ÔÚ
openwrtÉÏ£¬¼´ÔÚ
make
menuconfigʱѡÔñ±àÒë
gdbserver£©
ËÄ¡£½øÐе÷ÊÔ
&nbs ......

linuxÏÂÌí¼Ó·Óɱí

# redhat-config-network
/* ʹÓÃifconfigÃüÁîÅäÖò¢²é¿´ÍøÂç½Ó¿ÚÇé¿ö */
//ÅäÖÃeth0µÄIP£¬Í¬Ê±¼¤»îÉ豸
# ifconfig eth0 192.168.168.119 netmask 255.255.255.0 up
//ÅäÖÃeth0±ðÃûÉ豸 eth0:1 µÄIP£¬²¢Ìí¼Ó·ÓÉ
# ifconfig eth0:1 192.168.168.110
# route add –host 192.168.168.110 dev eth0:1
//¼¤»î£¨½û ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ