linuxʵÓÃÃüÁîÊÕ¼¯
½ø³Ìƪ
²é¿´Ä³½ø³Ì¶Ë¿ÚºÅ
netstat -anp | grep 80
lsof -i :port
Àý£º ×¢Òâ":"ºó£¬½ô¸ú¶Ë¿ÚºÅ£¬Ã»Óпոñ
#lsof -i :443
COMMAND PID USER FD TYPE DEVICE SIZE NODE NAME
java 2731 root 35u IPv6 7778 TCP *:https (LISTEN)
·þÎñÅäÖÃ
SSHÐÞ¸ÄĬÈ϶˿Ú
¾ßÌå·½·¨ÈçÏ£º
¡¡¡¡Ê¹ÓÃVI±à¼Æ÷´ò¿ª /etc/ssh/sshd_config
¡¡¡¡ÕÒµ½´óÔ¼µÚ13ÐÐ×óÓÒ£¬Óиö #Port 22
¡¡¡¡½«Ç°ÃæµÄ# È¥µô È»ºó Port ºóÃæµÄ22¸ÄΪÄãÏëÒªµÄ¶Ë¿Ú
¡¡¡¡È»ºó±£´æÍ˳ö£¬Ö´ÐÐ service sshd restart ¼´¿É
·À»ðǽiptablesÅäÖÃ
iptables¹æÔò±í
Filter ¸úLinuxÖ÷»úÓйأ¬ÊÇĬÈϵÄtable
¡ð INPUT Óë·â°ü ½øÈëÎÒÃǵÄlinux±¾»úÏà¹Ø
¡ð OUTPUT Óëlinux±¾»úÏëÒª·¢³öµÄ·â°üÏà¹Ø
¡ð FORWARD Óëlinux±¾»úûÓйØϵ£¬¿ÉÒÔ½«·â°üתµÝµ½ºó¶ËµÄµçÄÔ
iptablesÃüÁî
• ²é¿´·À»ðǽ¹æÔò
iptables [-t tables] [-L] [-nv]
²ÎÊý¡Ã
-t ¡ÃºóÃæ½Ó table £¬ÀýÈç nat »ò filter £¬ÈôÊ¡ÂÔ´ËÏîÄ¿£¬ÔòʹÓÃĬÈ쵀 filter
-L ¡ÃÁгöÄ¿Ç°µÄ table µÄ¹æÔò
-n ¡Ã²»½øÐÐ IP Óë HOSTNAME µÄ·´²é£¬ÏÔʾÐÅÏ¢µÄËٶȻá¿ìºÜ¶à¡£
-v ¡ÃÁгö¸ü¶àµÄÐÅÏ¢£¬°üÀ¨Í¨¹ý¸Ã¹æÔòµÄ·â°ü×ÜλԪÊý¡¢Ïà¹ØµÄÍøÂç½Ó¿ÚµÈ
• Çå³ý·À»ðǽ¹æÔò
Iptables [-FXZ]
¶¨ÒåĬÈϲßÂÔ
iptables [-t nat] -P [INPUT,OUTPUT,FORWARD] [ACCEPT,DROP]
²ÎÊý¡Ã
-P ¡Ã¶¨ÒåÕþ²ß( Policy )¡£×¢Ò⣬Õâ¸ö P Ϊ´óд¡£
ACCEPT ¡Ã¸Ã·â°ü¿É½ÓÊÜ
DROP ¡Ã¸Ã·â°üÖ±½Ó¶ªÆú£¬²»»áÈà client ¶ËÖªµÀΪºÎ±»¶ªÆú¡£
Ìí¼Ó¹ýÂ˹æÔò
iptables [-AI Á´] [-io ÍøÂç½Ó¿Ú] [-p tcp,udp] [-s À´Ô´IP/ÍøÓò] [--sport ¶Ë¿Ú·¶Î§] [-d Ä¿±êIP/ÍøÓò] [--dport ¶Ë¿Ú·¶Î§] -j [ACCEPT|DROP]
²ÎÊý¡Ã
--sport ¶Ë¿Ú·¶Î§¡ÃÏÞÖÆÀ´Ô´µÄ¶Ë¿ÚºÅÂ룬¶Ë¿ÚºÅÂë¿ÉÒÔÊÇÁ¬ÐøµÄ£¬ÀýÈç 1024:65535
--dport ¶Ë¿Ú·¶Î§¡ÃÏÞÖÆÄ¿±êµÄ¶Ë¿ÚºÅÂë¡£
ÀýÈ翪ÆôSSH¶Ë¿Ú
iptables -A INPUT -p tcp --dport 22 -j ACCEPT
±£´æÅäÖÃ
service iptables save
The service iptables save command permanently saves the iptables
configuration in the /etc/sysconfig/iptables file. When the system
reboots, the iptables-restore program reads the configuration and makes
it the acti
Ïà¹ØÎĵµ£º
£¨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£¬¿ÉÒÔ×ÐϸµÄÑо¿Ò»Ï£¡£©
¼üÅÌÇý¶¯½«¼ì ......
×î½üÔÚÓÃC++±àдһ¸öRTSPµÄ¿Í»§¶Ë£¬ÓÉÓÚÒªÓõ½Ị̈߳¬¸ù¾ÝC±à³ÌµÄ¾Ñ飬дÁËÈçÏ´úÂ룺
class LiRtspSession
{
public:
void* MainThreadFunc(void* pvData);
void* AudioProcThreadFunc(void* pvData);
& ......
Linux ϵͳÏÂÈçºÎ·ÖÇø²Å×îºÏÀí
ÒÔÏÂÕª×Ô¡¶Gentoo Linux x86Êֲᡷ
http://www.gentoo.org/doc/zh_cn/handbook/handbook-x86.xml
·ÖÇøµÄÊýÄ¿Ö÷Òª¸ù¾ÝÄãµÄϵͳ»·¾³À´¾ö¶¨¡£
ÀýÈ磬Èç¹ûÄãÓкܶàÓû§£¬Äã¿ÉÄܸüÏ£Íû°ÑÄãµÄ/homeĿ¼¶ÀÁ¢³öÀ´£¬ÒòΪÕâÑù×ö¿ÉÒÔÔö¼Ó°²È«ÐÔ£¬±¸·ÝÆðÀ´Ò²¸üÈÝÒס£Èç¹ûÄã°²×°GentooÓÃÀ´×öÓʼþ·þÎñÆ÷ ......
LinuxÏÂCVS·þÎñÆ÷µÄ°²×°ÓëÅäÖÃ
1¡¢CVS·þÎñÆ÷µÄ°²×°
¡¡¡¡CVS·þÎñÆ÷°æ¿ÉÒÔ´ÓÍøÉϵĺܶàµØ·½ÏÂÔص½£¬Ò²¿ÉÒÔµ½CVSµÄ¹Ù·½ÍøÕ¾½øÐÐÏÂÔØ¡£¸ù¾ÝÄãËùʹÓõÄϵͳ£¬ÏÂÔØÏàÓ¦µÄ°æ±¾£¬È»ºó½øÐа²×°¡£ÒòΪµ±Ç°´ó²¿·ÖÈËÊÇÔÚLinuxÏÂʹÓÃCVS·þÎñÆ÷½øÐа汾¹ÜÀí£¬²¢ÇÒRedhat LinuxÊÇÄ¿Ç°×îÁ÷ÐеÄÒ»¸öLinux·¢ÐаæÖ®Ò»£¬ËùÒÔ±¾ÎĽ«Ö÷Òª»ùÓÚRe ......