linux¿ªÆôtelnet·þÎñ
1¡£»ù´¡ÖªÊ¶
linuxÌṩ·þÎñÊÇÓÉÔËÐÐÔÚºǫ́µÄÊØ»¤³ÌÐò£¨daemon£©À´Ö´Ðеġ£
ÊØ»¤½ø³ÌµÄ¹¤×÷¾ÍÊÇ´ò¿ª1¸ö¶Ë¿Ú£¨port£©£¬µÈ´ý£¨listen£©½øÈëµÄÁ¬½Ó¡£
ÔÚC/SģʽÖУ¬Èç¹û¿Í»§ÌáÇëÁË1¸öÁ¬½Ó£¬ÊØ»¤½ø³Ì¾Í´´½¨£¨fork£©×Ó½ø³ÌÀ´ÏìÓ¦Õâ¸öÁ¬½Ó£¬¶ø¸¸½ø³Ì¼ÌÐø¼àÌýÆäËû·þÎñµÄÇëÇó¡£
µ«ÊÇ£¬¶ÔÓÚϵͳËùÌṩµÄÿ1¸ö·þÎñ£¬Èç¹û¶¼±ØÐëÔËÐÐ1¸ö¼àÌýij¸ö¶Ë¿ÚÁ¬½Ó·¢ÉúµÄÊØ»¤³ÌÐò£¬ÄÇôͨ³£Òâζ×Åϵͳ×ÊÔ´µÄÀË·Ñ¡£
Ϊ´Ë£¬ÒýÈë“À©Õ¹µÄÍøÂçÊØ»¤½ø³Ì·þÎñ³ÌÐò”xinetd£¨xinetd internet daemon£©¡£telnet·þÎñÒ²ÊÇÓÉxinetdÊØ»¤µÄ¡£
2¡£¼ì²âtelnet¡¢telnet-serverµÄrpm°üÊÇ·ñ°²×°
[root@localhost ~]# rpm -qa telnet
telnet-0.17-39.el5
//telnet*.rpmÊÇĬÈÏ°²×°µÄ//
[root@localhost root]#rpm -qa telnet-server
¿Õ
//telnet*.rpmÊÇĬÈÏûÓа²×°µÄ//
3¡£°²×°telnet-server
[root@localhost ~]# rpm -qa telnet-server
[root@localhost ~]# rpm -ivh /mnt/Server/telnet-server-0.17-39.el5.i386.rpm
warning: /mnt/Server/telnet-server-0.17-39.el5.i386.rpm: Header V3 DSA signature: NOKEY, key ID 1e5e0159
Preparing... ########################################### [100%]
1:telnet-server ########################################### [100%]
[root@localhost ~]#
4¡£ÐÞ¸Ätelnet·þÎñÅäÖÃÎļþ
vi /etc/xinetd.d/telnet
service telnet
{
disable = yes
flags = REUSE
socket_type = stream
wait = no
user = root
server = /usr/sbin/in.telnetd
log_on_failure += USERID
}
½«disable=yesÐÐÇ°¼Ó#£¬»òÕ߸ÄΪdisable=no
5¡£ÖØÐÂÆô¶¯xinetdÊØ»¤½ø³Ì
ÓÉÓÚtelnet·þÎñÒ²ÊÇÓÉxinetdÊØ»¤µÄ£¬ËùÒÔ°²×°Íêtelnet-server£¬ÒªÆô¶¯telnet·þÎñ¾Í±ØÐëÖØÐÂÆô¶¯xinetd
[root@localhost root]#service xinetd restart
»ò
[root@localhost root]#/etc/init.d/xinetd restart
Stopping xinetd:  
Ïà¹ØÎĵµ£º
1.“/bin”¡¢“/sbin”¡¢“/usr/bin”¡¢“/usr/sbin”¡¢“/usr/local/bin”µÈ·¾¶ÒѾÔÚϵͳ»·¾³±äÁ¿ÖÐÁË£¬Èç¹û¿ÉÖ´ÐÐÎļþ ÔÚÕ⼸¸ö±ê׼λÖã¬ÔÚÖÕ¶ËÃüÁîÐÐÊäÈë¸ÃÈí¼þ¿ÉÖ´ÐÐÎļþµÄÎļþÃûºÍ²ÎÊý£¬»Ø³µ¼´¿É¡£
2.Èç¹û²»ÔÚ±ê׼λÖã¬ÎļþÃûÇ°ÃæÐèÒª¼ÓÉÏÍêÕûµÄ ......
1.“/bin”¡¢“/sbin”¡¢“/usr/bin”¡¢“/usr/sbin”¡¢“/usr/local/bin”µÈ·¾¶ÒѾÔÚϵͳ»·¾³±äÁ¿ÖÐÁË£¬Èç¹û¿ÉÖ´ÐÐÎļþ ÔÚÕ⼸¸ö±ê׼λÖã¬ÔÚÖÕ¶ËÃüÁîÐÐÊäÈë¸ÃÈí¼þ¿ÉÖ´ÐÐÎļþµÄÎļþÃûºÍ²ÎÊý£¬»Ø³µ¼´¿É¡£
2.Èç¹û²»ÔÚ±ê׼λÖã¬ÎļþÃûÇ°ÃæÐèÒª¼ÓÉÏÍêÕûµÄ ......
ת×Ô£º
http://blog.chinaunix.net/u2/63316/showart_547992.html
LinuxϵÄĿ¼ÊÇÒÀÕÕ±ê×¼À´Êµ×÷µÄ£¬Òò´Ë£¬Äú¿ÉÒÔºÁÎÞÎÊÌâµØÒÆÖ³µ½ÈκÎÆäËüUNIXƽ̨¡£
--------------------------------------------------------------------------------
getcwd/getwd : È¡µÃÄ¿Ç°ËùÔÚĿ¼
--------------- ......
arch\arm\kernel\head.S
¸ÃÎļþĩβ°üº¬ÁËÓï¾ä£º#include "head-common.S"£¬__lookup_processor_typeº¯ÊýÔÚarch\arm\kernel\head-common.SÖж¨Òå¡£
¹Ø¼üÊý¾Ý½á¹¹£ºstruct proc_info_list£¬ÔÚarch\arm\include\asm\procinfo.hÎļþÖж¨Ò壬Cortex¶Ô´ËÊý¾Ý½á¹¹µÄÌî³äÔÚarch\arm\mm\proc-v7.sÎļþÖж¨Òå¡£
head.sÖУ¬kernelµ ......
linux—selectÏê½â
selectϵͳµ÷ÓÃʱÓÃÀ´ÈÃÎÒÃǵijÌÐò¼àÊÓ¶à¸öÎļþ¾ä±úµÄ״̬±ä»¯µÄ¡£³ÌÐò»áÍ£ÔÚselectÕâÀïµÈ´ý£¬Ö±µ½±»¼àÊÓµÄÎļþ¾ä±úÓÐÒ»¸ö»ò¶à¸ö·¢ÉúÁË״̬¸Ä±ä¡£
¹ØÓÚÎļþ¾ä±ú£¬Æäʵ¾ÍÊÇÒ»¸öÕûÊý£¬Í¨¹ýsocketº¯ÊýµÄÉùÃ÷¾ÍÃ÷°×ÁË£º
int socket(int domain, int type, int protocol);
ÎÒÃÇ×îÊìϤµÄ¾ä±úÊÇ0¡¢1¡¢2 ......