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

SUSE Linux ά»¤±Ê¼ÇÒ»

SUSE Linux ά»¤±Ê¼Ç Ò»
1. Linuxʱ¼ä¸üÐÂÉèÖÃ
ʱÇøÉ趨:
#Ö÷ÒªÎļþ
/etc/sysconfig/clock
#Óñ±¾©Ê±¼äµÄÕýÈ·ÄÚÈÝÓ¦¸ÃÊÇ
TIMEZONE="Asia/Beijing"
DEFAULT_TIMEZONE="Asia/Beijing"
#ͬʱȷ±£ /etc/localtimeÎļþÊÇ/usr/share/zoneinfo/Asia/BeijingµÄ¿½±´
±£³Ö¸üÐÂ:
ÔÚ/etc/crontabÖмÓÈëÒ»ÐÐ
10 5 * * * root /usr/sbin/ntpdate 221.139.48.11 && /sbin/hwclock -w
#±£Ö¤Ã¿ÌìÔçÉÏ5:10·ÖʱÓë ntp·þÎñÆ÷ 221.139.48.11½øÐиüÐÂ,ͬʱдÈëµ½bios
2£ºranlibºÍar
±¾ÎÄת×Ô£ºhttp://blog.ixpub.net/html/53/t-1033153.html
ranlib ¾ÍÊÇΪ .a µµ°¸ÎļþÖеÄÿ¸ö.oÄ¿±êÎļþµÄ·ûºÅ½¨Á¢Ò»¸öË÷Òý,ÒÔ´ËÀ´¼Ó¿ì¿âµÄ²éѯºÍÁ¬½ÓËÙ¶È.
GNU ranlib ÍêÈ«µÈͬÓÚ  ar -s. µäÐÍÔËÓÃÓÚ°ÑһϵÁÐ .o´ò³ÉÒ»¸ö .a ¾²Ì¬¿â.
Äã¿ÉÒÔÓÃ nm -s
 À´¿´ÆäË÷Òý.
ar -rc  libmy.a test.o test1.o
ranlib libmy.a
nm -s libmy.a
ÆäÖÐÔÚGNU ar, ¿ÉÒÔÓÃ ar -rcs  libmy.a test.o test1.oÀ´´úÌæ
ar -rc  libmy.a test.o test1.o
ranlib libmy.a
3:¹²ÏíÉÏÍø
iptables -t nat -A POSTROUTE -s 192.168.0.0/16 -o eth0 -j -SNAT --to-source 10.3.198.108
echo 1 > /proc/sys/net/ipv4/ip_forward
µÚÒ»¾äÖÐ
-t nat Öƶ¨²Ù×÷nat ±í
-A POSTROUTE Ö¸¶¨Ôö¼Ó×îºóµÄ³ö¹æÔò
-s 192.168.0.0/16Ö¸¶¨À´Ô´ÍøÂç
-o eth0 Ö¸¶¨Õë¶ÔÄĸöÍø¿¨
-j  jump
-SNAT --to-source 10.3.198.108 Ö¸¶¨½«Ô´µØÖ·ÐÞ¸ÄΪ10.3.198.108
#ÕâÑù±£Ö¤ËùÓÐÔÚ192.168.0.0/16Öз¢Ïòeth0µÄÊý¾ÝÔ´µØÖ·½«±»ÐÞ¸ÄΪ10.3.198.108
µÚ¶þ¾ä
¿ª·ÅÍøÂçµÄIPÖض¨Ïò
4£ºmartian source ½â¾ö
·þÎñÆ÷´óÁ¿³öÏÖ
Jan 12 14:52:50 node2 kernel: martian source 255.255.255.255 from 10.3.198.111, on dev eth1
Jan 12 14:52:50 node2 kernel: ll header: ff:ff:ff:ff:ff:ff:00:22:68:85:22:2e:08:00
Jan 12 14:52:54 node2 kernel: martian source 255.255.255.255 from 10.3.198.111, on dev eth1
Jan 12 14:52:54 node2 kernel: ll header: ff:ff:ff:ff:ff:ff:00:22:68:85:22:2e:08:00
Jan 12 14:52:58 node2 kernel: martian source 10.3.198.23 from 10.3.198.1, on dev eth1
Jan 12 14:52:58 node2 kernel: ll header: ff:ff:ff:ff:ff:ff:00:d0:f8:86:86:62:08:06
Jan 12 14:53:00 node2 kernel: printk:


Ïà¹ØÎĵµ£º

ʵսLinux Bluetooth±à³Ì(Áù) L2CAP±à³ÌʵÀý

ÀýÒ»£º·¢ËÍSignaling Packet£º
Signaling CommandÊÇ2¸öBluetoothʵÌåÖ®¼äµÄL2CAP²ãÃüÁî´«Êä¡£ËùÒÔµÃSignaling CommandʹÓÃCID 0x0001.
¶à¸öCommand¿ÉÒÔÔÚÒ»¸öC-frame£¨control frame£©Öз¢ËÍ¡£
 Èç¹ûÒªÖ±½Ó·¢ËÍSignaling Command.ÐèÒª½¨Á¢SOCK_RAWÀàÐ͵ÄL2CAPÁ¬½ÓSocket¡£ÕâÑù²ÅÓлú»á×Ô¼ºÌî³äCommand Code£¬Identi ......

linux϶àÏß³Ì Ö® pthread_detach(pthread_self())

ÕýʽʵϰһÖÜ£¬Óеã¸Ð´¥¡£±¾À´¾ÍûָÍûÄܳÉΪʲô¼¼Êõ´óÅ££¬ÓÃ×Ô¼ºµ÷Ù©µÄ»°À´Ëµ¾ÍÊÇ“»ì¿Ú·¹³Ô”¡£²»¹ýÀÏ´ó¶ÔmeµÄÆÚÍûÖµÄÇô¸ß£¬¾­Àí¹ÜµÃÕâôÑÏ£¬Ñ¹Á¦ÆĴ󡣶Ô×Ô¼ºÍ¦Ê§Íû£¬Ã»ÄÜ¿ªºÃÍ·£¬Óеã¶Ô²»ÆðÕâô³É¹¦µÄÀÏ´ó¡£»¹ºÃû׼±¸×öʲô´óÊ£¬Òª²»È»ÕâÐÔ¸ñµÃ·Ñ¶à´óÁ¦Æø²ÅÄÜÖØËÜ¡£¡£¡£
¶¼ÊDZƳöÀ´µÄ£¬±»¾­Àíѵºó£¬Ò»Ìì ......

LinuxʱÖÓ»ù±¾¸ÅÄî

1¡¢ÏµÍ³Ê±ÖÓ(System Clock)ÓëʵʱʱÖÓ(Real Time Clock)
ʵʱʱÖÓÖ¸µÄÊÇÓ²¼þʱÖÓ£¬¶øϵͳʱÖÓÖ¸µÄÊÇÈí¼þʱÖÓ£¬´æÔÚÓÚLinuxϵͳ֮ÖС£µ±ÏµÍ³Æô¶¯Ê±£¬Linux»á´ÓÓ²¼þ¶Áȡʱ¼ä×öΪϵͳʱ¼ä£¬Ö®ºó±ãÒ»Ö±²ÉÓÃϵͳʱ¼ä¡£LinuxÃüÁîdate¿ÉÒÔÓÃÀ´ÉèÖÃϵͳʱÖÓ£¬¶øhwclock»òÕßclockÔòÓÃÀ´ÉèÖÃʵʱʱÖÓ£¬¼´Ó²¼þʱÖÓ¡£
2¡¢Ê±ÖÓƵÂÊ
µ¥ ......

linux·ÖÇøÏê½â


±¾ÎľÍÓû§ÔÚ×°linuxµÄ¹ý³ÌÖУ¬ËùÓöµ½µÄlinux·ÖÇøÎÊÌâÀ´ÏêϸµØ½éÉÜһϣ¬ÕâÀïÒÔred hat linux7.1ΪÀý¡£
Ê×ÏÈÎÒÃÇÒª¶ÔÓ²ÅÌ·ÖÇøµÄ»ù±¾¸ÅÄî½øÐÐһЩ³õ²½µÄÁ˽⣬ӲÅ̵ķÖÇøÖ÷Òª·ÖΪ»ù±¾·ÖÇø£¨primary partion£©ºÍÀ©³ä·ÖÇø(extension partion)Á½ÖÖ£¬»ù±¾·ÖÇøºÍÀ©³ä·ÖÇøµÄÊýÄ¿Ö®ºÍ²»ÄÜ´óÓÚËĸö¡£ÇÒ»ù±¾·ÖÇø¿ÉÒÔÂíÉϱ»Ê¹Óõ«² ......

¸ü¸ÄlinuxĿ¼µÄĬÈÏÑÕÉ«£¨ÎÒÑ¡ÔñÁËYellow£©

ÔÚ¿ØÖÆ̨Ï£¬ÓÃls£¬¾Í»á·¢ÏÖ£¬shell½«²»Í¬ÀàÐ͵ÄÎļþÏîÄ¿ÏÔʾΪ²»Í¬µÄÑÕÉ«¡£Õß¿ÉÒÔÌá¸ßЧÂÊ£¬²»ÓÃls -l±ãÄÜ´ó¸ÅµÄ°Ñ¸÷¸öÎļþµÄÀàÐÍÇé¿öÁ˽âһϡ£
ÄãÓÐûÓÐÏë¹ý¸ü¸ÄÕâ¸ö×ÅÉ«ÅäÖÃÄØ£¿
Æä
ʵ£¬ÔÚ/etcÏÂÓÐÒ»¸öDIR_COLORSµÄÎļþ£¬ÕâÊÇÒ»¸ö×ÅÉ«¿ØÖƵÄÄ£°æ¡£ÏÖ½«Õâ¸öÄ£°æ¿½³öÀ´¡£Èç¹ûÏëÈÃÕâ¸öÅäÖÃÔÚrootÓû§ÏÂÉúЧ£¬±ß¿½µ½
......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ