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³ÌÐò¾Í¿ÉÄÜ»á¿
Ïà¹ØÎĵµ£º
aMuleÊÇÒ»¸ö¿ªÔ´Ãâ·ÑµÄP2PÎļþ¹²ÏíÈí¼þ£¬×ñÑGNUͨÓù«¹²Ðí¿ÉÖ¤ÐÒé·¢²¼¡£ÀàËÆÓÚeMule¡£»ùÓÚxMuleºÍlMule¡£¿ÉÓ¦ÓÃ
eDonkey(µç¿)ÍøÂ磬Ҳ֧³ÖKADÍøÂç¡£¿ÉÔÚ°üÀ¨Windows¡¢Linux¡¢MacOSX¡¢*BSDÒÔ¼°SolarisµÄ¶àÖÖ²Ù×÷ϵͳÏÂÔËÐС£
aMuleÒâ¼´£º"the all-platform eMule-like P2P client" ......
£¨1£©¡¢yum°²×°mysql
//yum°²×°
yum -y install mysql mysql_server
//ÔÚ·þÎñÇåµ¥ÖÐÌí¼Ómysql·þÎñ
chkconfig --add mysqld
//·þÎñÆô¶¯
service mysqld start
//³õʼ»¯mysqlÊý¾Ý¿â
/usr/bin/mysql_secure_installation
£¨2£©¡¢°²×°apache
yum -y install httpd
service httpd start
Ìí¼ÓiptablesÔÊÐí·Ã ......
¸Õ²ÅÔĶÁ´úÂëµÄʱºò¿´µ½ÁËÒ»¸ö×Ö½ÚÅÅÐòº¯Êý£¬Ò»Ê±Ïë²»Æð¾ßÌåÓ÷¨ÁË¡£ÏëÏëѧϰlinuxϵÄÍøÂç±à³ÌÒ²²»ÉÙʱ¼äÁË£¬ÕâЩ×Ö½ÚÅÅÐòºÍת»»µÄº¯Êý»¹ÊDz»Ì«Çå³þ£¬ÈÝÒ×»ìÏý¡£½ñÌìË÷ÐÔ°ÑÕâ·½ÃæµÄ֪ʶ»ã×Üһϣ¬ÕùÈ¡ÒÔºóÄܹ»ÊìÁ·µÄÈÏʶºÍÔËÓá£
×Ö½Ú˳Ðòº¯Êý£º
С¶Ë×Ö½ÚÐò£º½«µÍÐò×Ö½Ú´æ´¢ÔÚÆðʼµØÖ·¡£(linux)
´ó¶Ë×Ö½ÚÐò£º½«¸ßÐò×Ö½Ú ......
¡¡¡¡×¢ÏúϵͳµÄlogoutÃüÁî
¡¡¡¡1£¬Logout ×¢ÏúÊǵǽµÄÏà¶Ô²Ù×÷£¬µÇ½ϵͳºó£¬ÈôÒªÀ뿪ϵͳ£¬Óû§Ö»ÒªÖ±½ÓÏ´ïlogoutÃüÁî¼´¿É:
¡¡¡¡[root@localhost root]#logout
¡¡¡¡Red Hat Linuxrelease 9(Shike)
¡¡¡¡Kernel 2.4.20.8 on an i686
¡¡¡¡Login: ← »Øµ½µÇ½µÄ»Ãæ
¡¡¡¡2£¬¹Ø»ú»òÖØÐÂÆô¶¯µÄshutdownÃüÁî
¡¡¡¡Shu ......
Ëæ×ÅlinuxµÄÖð²½ÆÕ¼°£¬ÏÖÔÚÓв»ÉÙÈ˶ÔÓÚLinuxµÄ°²×°¼°ÉèÖÃÒѾ±È½ÏÊìϤÁË¡£ÓëLinux µÄÅ·¢Õ¹ÏàÊÊÓ¦£¬ÏëÉîÈëÁ˽âLinuxµÄÒ²Ô½À´Ô½¶à¡£¶øÒªÏëÉîÈëÁ˽âLinux£¬¾ÍÐèÒªÔĶÁºÍ·ÖÎölinuxÄں˵ÄÔ´´úÂë¡£
¡¡¡¡LinuxµÄÄÚºËÔ´´úÂë¿ÉÒԴӺܶà;¾¶µÃµ½¡£Ò»°ãÀ´½²£¬ÔÚ°²×°µÄlinuxϵͳÏ£¬/usr/src/linux ......