Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö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°²×°glassfish

1¡¢°²×°°ü£º
ÏÂÔØÍøÖ·£ºhttp://dev.sun.com.cn/glassfish/index_zh.html
glassfish-installer-v2.1-b60e-linux-ml.jar£¨°æ±¾£º2.1£©
2¡¢½âѹGlassFishÈí¼þ°ü²¢×Ô¶¯´´½¨Ò»¸öеÄÎļþ¼Ð½Ð“glassfish”
java -Xmx256m -jar glassfish-installer-v2.1-b60e-linux-ml.jar
»Ø¸´A
mv glassfish /usr/local/
3¡¢É ......

LINUXÐÞ¸ÄROOTÃÜÂë·½·¨ »ÆÃöÓñ

>1£®      »úÆ÷Æô¶¯ºó£¬ÔÚµ½À¶É«ÆÁÄ»µÄ½çÃæµÄʱºò£¬°´ÉÏϼüÑ¡Ôñ¡£
>2£®      ÔÚÑ¡ÔñµÄʱºòÑ¡ÔñºóÃæ´øÓÐELSMPµÄÕâÒ»ÐУ¬°´E¼ü£¬Ç§Íò²»Òª°´»Ø³µ
>3£®      È»ºóÔÚÑ¡Ôñ´øÓÐkernel¿ªÍ·µÄÕâÒ»ÐУ¬°´E¼ü£¬²»Òª°´»Ø³µ¡£
>4£® &n ......

LinuxÄ£¿é±à³Ì


ÕªÒª
LinuxÄÚºËÄ£¿é±à³ÌµÄ×ÊÁÏÓÐЩ·×·±¸´ÔÓ£¬ÓеĹýÓÚ¼òµ¥£¬ÓеĹýÓÚÅÓÔÓ£¬ÎÒÊÔͼÓñʼǵÄÐÎʽÏë¶ÁÕßչʾÔõÑùÀ´½ø³ÌLinuxÄ£¿é±à³Ì£¬Á¦Í¼×öµ½¼òÃ÷¶óÒª£¬ÕâƪÎÄÕÂÒ²ÊÇ×÷Ϊ±¾È˱¸ÍüµÄ×ÊÁÏ£¬ËùÒÔÓÐЩµØ·½¹ýÓÚ¼òÂÔÊÇÄÑÃâµÄ¡£±¾À´ÕâƪÎÄÕµÄÄ¿µÄ¾ÍÊÇÈÃÓû§ÖªÆäÈ»£¬ÖÁÓÚËùÒÔÈ»»¹ÊÇÇë²Î¿¼ÏàÓ¦µÄ×ÊÁÏ£¬Æäʵ×îºÃµÄ×ÊÁÏĪ¹ýÓÚLinux ......

linux°²×°mysql

1¡¢°²×°°ü
ÏÂÔØÍøÖ·£ºhttp://dev.mysql.com/downloads/mysql/
mysql-5.1.38.tar.gz£¨°æ±¾£º5.1.38£©
2¡¢Ìí¼ÓmysqlÓû§ÓëȺ
groupadd mysql
useradd -g mysql -s /sbin/nologin mysql
3¡¢½âѹÓë±àÒë
tar zxvf mysql-5.1.38.tar.gz
cd mysql-5.1.38/
./configure --prefix=/usr/local/mysql/ --enable-assembler --w ......

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ºÅ