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

Linux»·¾³½ø³Ì¼äͨÐÅ£¨¶þ£©£¨Ï£©


Linux»·¾³½ø³Ì¼äͨÐÅ£¨¶þ£©:
Ðźţ¨Ï£©
ÎĵµÑ¡Ïî
<tr
valign="top"><td width="8"><img alt="" height="1" width="8"
src="//www.ibm.com/i/c.gif"/></td><td width="16"><img alt="" width="16"
height="16" src="//www.ibm.com/i/c.gif"/></td><td class="small"
width="122"><p><span class="ast">δÏÔʾÐèÒª JavaScript
µÄÎĵµÑ¡Ïî</span></p></td></tr>
´òÓ¡±¾Ò³
½«´ËÒ³×÷Ϊµç×ÓÓʼþ·¢ËÍ
¼¶±ð£º ³õ¼¶
Ö£ÑåÐË
(mlinux@163.com
)¹ú·À¿Æ´ó
2003 Äê 1 ÔÂ 01 ÈÕ
ÔÚ
Ðźţ¨ÉÏ£©ÖУ¬ÌÖÂÛÁËlinuxÐźÅÖÖÀà¡¢À´Ô´¡¢ÈçºÎ°²×°Ò»¸öÐźÅÒÔ¼°¶ÔÐźż¯µÄ²Ù×÷¡£±¾²¿·ÖÔòÊ×ÏÈÌÖÂÛ´ÓÐźŵÄÉúÃüÖÜÆÚÉÏÈÏʶÐźţ¬»òÕߺê¹ÛÉÏ¿´ËƼòµ¥
µÄÐźŻúÖÆ£¨½ø³ÌÊÕµ½Ðźźó£¬×÷ÏàÓ¦µÄ´¦Àí£¬¿´ÉÏÈ¥ÔÙ¼òµ¥²»¹ýÁË£©£¬ÔÚ΢¹ÛÉϾ¿¾¹ÊÇÈçºÎʵÏֵģ¬Ò²ÊÇÔÚ¸üÉî²ã´ÎÉÏÀí½âÐźš£½ÓÏÂÀ´»¹ÌÖÂÛÁËÐźűà³ÌµÄһЩ
×¢ÒâÊÂÏ×îºó¸ø³öÁËÐźűà³ÌµÄһЩʵÀý¡£
Ò»¡¢ÐźÅÉúÃüÖÜÆÚ
´ÓÐźŷ¢Ë͵½ÐźŴ¦Àíº¯ÊýµÄÖ´ÐÐÍê±Ï
¶ÔÓÚÒ»¸öÍêÕûµÄÐźÅÉúÃüÖÜÆÚ(´ÓÐźŷ¢Ë͵½ÏàÓ¦µÄ´¦Àíº¯ÊýÖ´ÐÐÍê±Ï)À´Ëµ£¬¿ÉÒÔ·ÖΪÈý¸öÖØÒªµÄ½×¶Î£¬ÕâÈý¸ö½×¶ÎÓÉËĸöÖØÒªÊ¼þÀ´¿Ì»­£ºÐźŵ®Éú£»ÐźÅÔÚ½ø³ÌÖÐ×¢²áÍê±Ï£»ÐźÅÔÚ½ø³ÌÖеÄ×¢ÏúÍê±Ï£»ÐźŴ¦Àíº¯ÊýÖ´ÐÐÍê±Ï¡£ÏàÁÚÁ½¸öʼþµÄʱ¼ä¼ä¸ô¹¹³ÉÐźÅÉúÃüÖÜÆÚµÄÒ»¸ö½×¶Î¡£




ÏÂÃæ²ûÊöËĸöʼþµÄʵ¼ÊÒâÒ壺
ÐźÅ"µ®Éú"¡£Ðźŵĵ®ÉúÖ¸µÄÊÇ´¥·¢ÐźŵÄʼþ·¢Éú£¨Èç¼ì²âµ½Ó²¼þÒì³£¡¢¶¨Ê±Æ÷³¬Ê±ÒÔ¼°µ÷ÓÃÐźŷ¢Ëͺ¯Êýkill()»òsigqueue()µÈ£©¡£
ÐźÅÔÚÄ¿±ê½ø³ÌÖÐ"×¢²á"£»½ø³ÌµÄtask_struct½á¹¹ÖÐÓйØÓÚ±¾½ø³ÌÖÐδ¾öÐźŵÄÊý¾Ý³ÉÔ±£º

struct sigpending pending£º
struct sigpending{
struct sigqueue *head, **tail;
sigset_t signal;
};

µÚÈý¸ö³ÉÔ±Êǽø³ÌÖÐËùÓÐδ¾öÐźż¯£¬µÚÒ»¡¢µÚ¶þ¸ö³ÉÔ±·Ö±ðÖ¸ÏòÒ»¸ösigqueueÀàÐ͵ĽṹÁ´£¨³ÆÖ®Îª"δ¾öÐźÅÐÅÏ¢Á´"£©µÄÊ×⣬ÐÅÏ¢Á´ÖеÄÿ¸ösigqueue½á¹¹¿Ì»­Ò»¸öÌØ¶¨ÐźÅËùЯ´øµÄÐÅÏ¢£¬²¢Ö¸ÏòÏÂÒ»¸ösigqueue½á¹¹:

struct sigqueue{
struct sigqueue *next;
siginfo_t in


Ïà¹ØÎĵµ£º

ʵսLinux Bluetooth±à³Ì£¨Èý£© HCI²ã±à³Ì

1. HCI²ãЭÒé¸ÅÊö£º
HCIÌṩһÌ×ͳһµÄ·½·¨À´·ÃÎÊBluetoothµ×²ã¡£ÈçͼËùʾ£º
´ÓͼÉÏ¿ÉÒÔ¿´³ö£¬Host Controller Interface(HCI)  ¾ÍÊÇÓÃÀ´¹µÍ¨HostºÍModule¡£Hostͨ³£¾ÍÊÇPC£¬ ModuleÔòÊÇÒÔ¸÷ÖÖÎïÀíÁ¬½ÓÐÎʽ£¨USB,serial,pc-cardµÈ£©Á¬½Óµ½PCÉϵÄbluetooth Dongle¡£
ÔÚHostÕâÒ»¶Ë£ºapplication,SDP,L2capµÈЭÒé ......

LinuxÏÂÓÃPYTHON²éÕÒͬÃû½ø³Ì

1.¿ÉÖ´ÐгÌÐò
os.system('pgrep %s > %s' % (process, output))
   pidfile = open("output", 'r')
   totalpid = len(pidfile.readlines())
   pidfile.close()
   if totalpid == 0 :
         &nbs ......

linux½âѹ .gz Îļþ

xxxx.tar.gzÎļþʹÓÃtar´øzxvf²ÎÊý£¬¿ÉÒÔÒ»´Î½âѹ¿ª¡£XXXXΪÎļþÃû¡£ ÀýÈ磺
$tar zxvf xxxx.tar.gz
gzip -d
Óï ·¨£ºgzip [-acdfhlLnNqrtvV][-S <ѹËõ×Öβ×Ö·û´®>][-<ѹËõЧÂÊ>][--best/fast][Îļþ...] »ò gzip [-acdfhlLnNqrtvV][-S <ѹËõ×Öβ×Ö·û´®>][-<ѹËõЧÂÊ>][--best/fast][Ŀ¼]
²¹³äË ......

¡¾×ª¡¿ÔÚWindowsÖÐÏÔʾLinuxµÄͼÐνçÃæ

xmanager secureCRT½áºÏʹÓÃ
»·¾³£ºÔÚxpÖа²×°ÐéÄâ»úvmware £¬host-only·½Ê½ÐéÄâLinuxϵͳ¡£xpµÄipΪ192.168.0.1£¬ÐéÄâ»úLinuxΪ192.168.0.88
ÔÚxpÖа²×°xmanagerºÍsecureCRT £¬Ä¬ÈÏÇé¿öÏÂCRT²»ÄÜÏÔʾͼÐνçÃæ£¬Í¨¹ýÒÔÏÂÅäÖÿÉÒÔʵÏÖÔÚWindowsϵÄCRTÀïÏÔʾLinuxÖеÄoracleͼÐνçÃæ£º
ÒÔoracleÓû§µÇ½Linux£¬ÐÞ¸Ä.ba ......

linuxÏÂÐ޸ı¾»úIpµØÖ·µÄ·½·¨

#vi /etc/sysconfig/network-scripts/ifcfg-eth0
ÄÚÈÝÈçÏ¡£
DEVICE=eth0
BOOTPROTO=none
IPADDR=192.168.1.115
NETMASK=255.255.255.0
GATEWAY=192.168.1.1
HWADDR=00:25:11:E2:2E:53
ONBOOT=yes
TYPE=Ethernet
......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ