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

LinuxÉ豸Ãûtty¡¢pty¡¢ptsµÄ¸ÅÄî

»ù±¾¸ÅÄ
1> tty(ÖÕ¶ËÉ豸µÄͳ³Æ):
ttyÒ»´ÊÔ´ÓÚTeletypes£¬»òteletypewriters£¬Ô­À´Ö¸µÄÊǵ紫´ò×Ö»ú£¬ÊÇͨ¹ý´®ÐÐÏßÓôòÓ¡»ú¼üÅÌͨ¹ýÔĶÁºÍ·¢ËÍÐÅÏ¢µÄ¶«Î÷£¬ºóÀ´ÕⶫÎ÷±»¼üÅ̺ÍÏÔʾÆ÷È¡´ú£¬ËùÒÔÏÖÔÚ½ÐÖն˱ȽϺÏÊÊ¡£
ÖÕ¶ËÊÇÒ»ÖÖ×Ö·ûÐÍÉ豸£¬ËûÓжàÖÖÀàÐÍ£¬Í¨³£Ê¹ÓÃttyÀ´¼ò³Æ¸÷ÖÖÀàÐ͵ÄÖÕ¶ËÉ豸¡£
2> pty£¨ÐéÄâÖÕ¶Ë):
µ«ÊǼÙÈçÎÒÃÇÔ¶³Ìtelnetµ½Ö÷»ú»òʹÓÃxtermʱ²»Ò²ÐèÒªÒ»¸öÖն˽»»¥Ã´£¿Êǵģ¬Õâ¾ÍÊÇÐéÄâÖÕ¶Ëpty(pseudo-tty)
3> pts/ptmx(pts/ptmx½áºÏʹÓ㬽ø¶øʵÏÖpty):
pts(pseudo-terminal slave)ÊÇptyµÄʵÏÖ·½·¨£¬ºÍptmx(pseudo-terminal master)ÅäºÏʹÓÃʵÏÖpty¡£
LinuxÖնˣº
ÔÚLinuxϵͳµÄÉ豸ÌرðÎĵµÄ¿Â¼/dev/Ï£¬ÖÕ¶ËÌرðÉ豸ÎĵµÒ»°ãÓÐÒÔϼ¸ÖÖ£º
1¡¢´®Ðж˿ÚÖÕ¶Ë(/dev/ttySn)
´®
Ðж˿ÚÖÕ¶Ë(Serial Port
Terminal)ÊÇʹÓõçÄÔ´®Ðж˿ÚÁ¬½ÓµÄÖÕ¶ËÉ豸¡£µçÄÔ°Ñÿ¸ö´®Ðж˿ڶ¼¿´×÷ÊǸö×Ö·ûÉ豸¡£ÓжÎʱ¼äÕâЩ´®Ðж˿ÚÉ豸ͨ³£±»³ÆΪÖÕ¶ËÉ豸£¬ÒòΪ
ÄÇʱËûµÄ×î´óÓÃ;¾ÍÊÇÓÃÀ´Á¬½ÓÖնˡ£ÕâЩ´®Ðж˿ÚËù¶ÔÓ¦µÄÉ豸Ãû³ÆÊÇ/dev/tts/0(»ò/dev/ttyS0),
/dev/tts/1(»ò/dev/ttyS1)µÈ£¬É豸ºÅ·Ö±ðÊÇ(4,0),
(4,1)µÈ£¬·Ö±ð¶ÔÓ¦ÓÚDOSϵͳϵÄCOM1¡¢COM2µÈ¡£ÈôÒªÏòÒ»¸ö¶Ë¿Ú·¢ËÍÊý¾Ý£¬Äܹ»ÔÚÃüÁîÐÐÉϰѱê×¼Êä³öÖض¨Ïòµ½ÕâЩÌرðÎĵµÃûÉϼ´¿É¡£ÀýÈ磬
ÔÚÃüÁîÐÐÌáʾ·ûϼüÈ룺echo test >
/dev/ttyS1»á°Ñµ¥´Ê”test”·¢Ë͵½Á¬½ÓÔÚttyS1(COM2)¶Ë¿ÚµÄÉ豸ÉÏ¡£¿É½Ó´®¿ÚÀ´ÊµÑé¡£
2¡¢Î±ÖÕ¶Ë(/dev/pty/)
αÖÕ¶Ë(Pseudo Terminal)ÊdzɶԵÄÂß¼­ÖÕ¶ËÉ豸(¼´masterºÍslaveÉ豸, ¶ÔmasterµÄ²Ù×÷»á·´Ó³µ½slaveÉÏ)¡£
Àý
Èç/dev/ptyp3ºÍ/dev/ttyp3(»òÔÚÉ豸ÎĵµÏµÍ³ÖзֱðÊÇ/dev/pty/m3ºÍ
/dev/pty/s3)¡£ËûÃǺÍʵ¼ÊÎïÀíÉ豸²¢²»Ö±½ÓÏà¹Ø¡£¼ÙÈçÒ»¸ö³Ìʽ°Ñptyp3(masterÉ豸)¿´×÷ÊǸö´®Ðж˿ÚÉ豸£¬ÔòËû¶Ô¸Ã¶Ë¿ÚµÄ¶Á/
д²Ù×÷»á·´Ó³ÔÚ¸ÃÂß¼­ÖÕ¶ËÉ豸¶ÔÓ¦µÄÁíÒ»¸öttyp3(slaveÉ豸)ÉÏÃæ¡£¶øttyp3ÔòÊÇÁíÒ»¸ö³ÌʽÓÃÓÚ¶Áд²Ù×÷µÄÂß¼­É豸¡£
ÕâÑù£¬
Á½¸ö³Ìʽ¾ÍÄܹ»Í¨¹ýÕâÖÖÂß¼­É豸½øÐл¥ÏཻÁ÷£¬¶øÆäÖÐÒ»¸öʹÓÃttyp3µÄ³ÌʽÔòÈÏΪ×Ô¼ºÕýÔÚºÍÒ»¸ö´®Ðж˿ڽøÐÐͨÐÅ¡£ÕâºÜÏóÊÇÂß¼­É豸¶ÔÖ®¼äµÄ¹ÜµÀ²Ù
×÷¡£¶ÔÓÚttyp3(s3)£¬ÈκÎÉè¼Æ³ÉʹÓÃÒ»¸ö´®Ðж˿ÚÉ豸µÄ³Ìʽ¶¼Äܹ»Ê¹ÓøÃÂß¼­É豸¡£µ«¶ÔÓÚʹÓÃptyp3µÄ³Ìʽ£¬ÔòÐèҪרÃÅÉè¼ÆÀ´Ê¹ÓÃ
ptyp3(m3)Âß¼­É豸¡£
ÀýÈ磬¼ÙÈçijÈËÔÚÍøÉÏʹÓÃtelnet³ÌʽÁ¬½Óµ½ÄúµÄµçÄÔÉÏ£¬Ôòtelnet³Ìʽ¾Í¿ÉÄܻῪ


Ïà¹ØÎĵµ£º

Linux iptableÎĵµ

×ÜÀÀ
ÓÃiptables -ADC À´Ö¸¶¨Á´µÄ¹æ
Ôò
£¬-AÌí¼Ó -Dɾ³ý -C ÐÞ¸Ä
iptables - [RI] chain rule num rule-specification[option]
ÓÃiptables - RI ͨ¹ý¹æÔòµÄ˳ÐòÖ¸¶¨
iptables -D chain rule num[option]
ɾ³ýÖ¸¶¨¹æÔò
iptables -[LFZ] [chain][option]
ÓÃiptables -LFZ Á´Ãû [Ñ¡Ïî]
iptables -[NX] chain
ÓÃ -NX ......

linuxµÄ¼òµ¥ÍøÂçÅäÖÃ

1¡¢RootµÇ¼
2¡¢²éip:ifcongfig
3¡¢ÐÞ¸ÄÍøÂçÉèÖÃ
vi /etc/sysconfig/network
NETWORKING=yes
NETWORKING_IPV6=no
HOSTNAME=VirtualBox
vi /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
ONBOOT=yes
BOOTPROTO=static
IPADDR=192.168.0.2
NETMASK=255.255.255.0
GATEWAY=192.168.0.1
4¡¢Ìí¼ÓÐÂÓû§º ......

linux×Ô¶¯Æô¶¯ÊسÌÉèÖÃ

aep1000
Ö§³Ö¿ìËÙ¼ÓÃÜ´¦Àí¿¨ÒÔ¼ÓËÙ°²È«Ì×½Ó×ֲ㣨SSL£©¼ÓÃÜ£¬ÔÚ±¾ÊéÖв»ÓÃÓÚ½¨Á¢¼¯Èº¡£
anacron
ÓëcronºÍatÀàËÆ£¬¶¼ÊÇÔÚÌض¨Ê±¼ä¡¢ÉõÖÁÔÚϵͳûÓÐÁ¬ÐøÔËÐÐʱÆô¶¯ÃüÁîµÄ£¬ÔÚRed HatÉÏ£¬/etc/anacrontabÎļþÁгöÁËÿÌìÖ´ÐеÄcron×÷ÒµµÄÑ­»·³£¹æÈÕÖ¾£¬Èç¹ûÄã½ûÓÃÁËËü£¬Ä㽫²»ÄÜÔÙÖ´ÐÐÈÕ־ѭ»·£¬ÄãµÄϵͳ´ÅÅÌ×îºó½«±»ÌîÂú£¬Ô ......

LinuxϵĻ·¾³±äÁ¿

 
ÎÒÃÇÔÚLinuxÏ°²×°ÏµÍ³Èí¼þµÄʱºò,¾­³£Óöµ½Ò»Ð©ÏµÍ³»·¾³±äÁ¿ÅäÖõÄÎÊÌ⡣ʲôÊÇ»·¾³±äÁ¿£¿ÈçºÎ¶¨ÖÆ»·¾³±äÁ¿£¿ÎÒ½«ÔÚÏÂÃæ×öһЩ½éÉÜ¡£
Ò»¡¢ ʲôÊÇ»·¾³±äÁ¿£¿
LinuxÊÇÒ»¸ö¶àÓû§µÄ²Ù×÷ϵͳ¡£¶àÓû§Òâζ×Åÿ¸öÓû§µÇ¼ϵͳºó£¬¶¼ÓÐ×Ô¼º×¨ÓõÄÔËÐл·¾³¡£¶øÕâ¸ö»·¾³ÊÇÓÉÒ»×é±äÁ¿Ëù¶¨Òå, Õâ×é±äÁ¿±»³ÆΪ»·¾³±äÁ¿¡£Óû§ ......

linuxÓÃrdateÃüÁîʵÏÖͬ²½Ê±¼ä

author:skate
time:2010-05-07
ÓÃrdateÃüÁîʵÏÖͬ²½Ê±¼ä
Ç°Á½Ìì˵µ½ÓÃntpʱ¼ä·þÎñÆ÷ºÍntpdateÃüÁîͬ²½Ê±¼ä£¬½ñÌì¼òµ¥¼Ç¼ÏÂÓÃrdateͬ²½Ê±¼ä
http://blog.csdn.net/wyzxg/archive/2010/05/06/5561548.aspx
ÔÚ¸÷ÖÖlinuxÖж¼ÓÐrdateÃüÁî
1. Ñ¡ÔÚһ̨linux×÷Ϊmaster£¬È»ºóÆô¶¯ÉÏÃæµÄʱÖÓ·þÎñ
#chkconfig time on
Èç¹û² ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ