linux ÍøÂçµØÖ·ÅäÖÃ
1.¹Ø±ÕÓ뿪ÆôÍø·¶Ë¿Ú£º
¿ªÆô81¶Ë¿Ú£º
iptables -I INPUT -i eth0 -p tcp --dport 81 -j ACCEPT
iptables -I OUTPUT -o eth0 -p tcp --sport 81 -j ACCEPT
¹Ø±Õ81¶Ë¿Ú£º
iptables -I INPUT -i eth0 -p tcp --dport 81 -j DROP
iptables -I OUTPUT -o eth0 -p tcp --sport 81 -j DROP
2.¹Ø±ÕºÍ¿ªÆôÎïÀí¶Ë¿Ú
UP£º ifconfig eth0 up
DOWN: ifconfig eth0 down
»ò
/sbin/ifup eth0
/sbin/ifdown eth0
/sbin/ifup | ifdown ÊǶÔ/etc/sysconfig/network-scripts/ifup | down µÄ·ûºÅÁ´½Ó
3.Íø·µØÖ·µÄÅäÖÃ
a.ifconfig eth0 x.x.x.x netmask x.x.x.x broadcast x.x.x.
b.ͨ¹ýÅäÖÃÎļþÅäÖÃ
/etc/sysconfig/network-scripts/ÏÂÅäÖÃifcfg-xxµÄÎļþ
È磺ifcfg-eth0
Èç¹ûÏëÒªÔÚÒ»¿éÍø¿¨ÉÏÅäÖöà¸öµØÖ·£¬ÔòÅäÖÃÎļþΪifcfg-eth0:1£¬ifcfg-eth0:2µÈ
c.ÖØÆônetwork·þÎñ,/etc/init.d/network restart»òservice network restart
Ïà¹ØÎĵµ£º
£¨L2CAPÐÒé¼ò½é£¬L2CAPÔÚBlueZÖеÄʵÏÖÒÔ¼°L2CAP±à³Ì½Ó¿Ú£©
Ò»£ºL2CAPÐÒé¼ò½é£º
Logical Link Control and Adaptation Protocol(L2CAP)
Âß¼Á¬½Ó¿ØÖƺÍÊÊÅäÐÒé (L2CAP) ΪÉϲãÐÒéÌṩÃæÏòÁ¬½ÓºÍÎÞÁ¬½ÓµÄÊý¾Ý·þÎñ£¬²¢Ìṩ¶àÐÒ鹦ÄܺͷָîÖØ×é²Ù×÷¡£L2CAP ³äÐíÉϲãÐÒéºÍÓ¦ÓÃÈí¼þ´«ÊäºÍ½ÓÊÕ×î´ó³¤¶ÈΪ 64K µÄ L2CAP Ê ......
Ò»£ºÇ°ÑÔ
×î½üÔÚÑо¿androidµÄsensor driver£¬Ö÷ÒªÊÇE-compass£¬ÆäÖÐÓõ½ÁËLinux input×Óϵͳ.ÔÚÍøÉÏÒ²¿´Á˺ܶàÕâ·½ÃæµÄ×ÊÁÏ£¬¸Ð¾õ»¹ÊÇÕâƪ·ÖÎöµÄ±È½ÏϸÖÂ͸³¹£¬Òò´ËתÔØÒ»ÏÂÒÔ±ã×Ô¼ºÑ§Ï°£¬Í¬Ê±ºÍ´ó¼Ò·ÖÏí£¡
£¨Õâƪ²©¿ÍÖ÷ÒªÊÇÒÔ¼üÅÌÇý¶¯ÎªÀýµÄ£¬²»¹ý½²½âµÄÊÇLinux Input Subsystem£¬¿ÉÒÔ×ÐϸµÄÑо¿Ò»Ï£¡£©
¼üÅÌÇý¶¯½«¼ì ......
ÏÂÃæÓÃ×ÔÆô¶¯apacheΪÀý;
×ÔÆô¶¯½Å±¾:
/usr/local/apache2/bin£»
./apachectl start
ÎļþλÓÚ/etc/rc.d/init.dÏÂ,ÃûΪapached, ×¢ÒâÒª¿ÉÖ´ÐÐ.
#chmod +x /etc/rc.d/init.d/apached //ÉèÖÃÎļþµÄÊôÐÔΪ¿ÉÖ´ÐÐ
#ln -s /etc/rc.d/init.d/apached /etc/rc3.d/S90apache //½¨Á¢ÈíÁ¬½Ó,¿ì½Ý·½Ê½
#ln -s /etc/rc.d/init.d/a ......
ʹÓÃselectº¯Êý¿ÉÒÔÒÔ·Ç×èÈûµÄ·½Ê½ºÍ¶à¸ösocketͨÐÅ¡£³ÌÐòÖ»ÊÇÑÝʾselectº¯ÊýµÄʹÓ㬹¦Äܷdz£¼òµ¥£¬¼´Ê¹Ä³¸öÁ¬½Ó¹Ø±ÕÒÔºóÒ²²»»áÐ޸ĵ±Ç°Á¬½ÓÊý£¬Á¬½ÓÊý´ïµ½×î´óÖµºó»áÖÕÖ¹³ÌÐò¡£
1. ³ÌÐòʹÓÃÁËÒ»¸öÊý×éfd_A£¬Í¨ÐÅ¿ªÊ¼ºó°ÑÐèҪͨÐŵĶà¸ösocketÃèÊö·û¶¼·ÅÈë´ËÊý×é¡£
2. Ê×ÏÈÉú³ÉÒ»¸ö½Ðsock_fdµÄsocketÃèÊö·û£¬ÓÃÓÚ¼àÌý¶Ë¿ ......