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 Ê ......
linuxĿ¼¼Ü¹¹
/ ¸ùĿ¼
/bin ³£ÓõÄÃüÁî binary file µÄÄ¿錄
/boot ´æ·ÅϵͳÆô¶¯Ê±±ØÐë¶ÁÈ¡µÄµµ°¸£¬°üÀ¨ºËÐÄ (kernel) ÔÚÄÚ
/boot/gru ......
VSFTPDµÄÉèÖÃÑ¡Ïî
¡¡¡¡VSFTPDµÄÅäÖÃÎļþ/etc/vsftpd/vsftpd.confÊǸöÎı¾Îļþ¡£ÒÔ“#”×Ö·û¿ªÊ¼µÄÐÐÊÇ×¢ÊÍÐС£Ã¿¸öÑ¡ÏîÉèÖÃΪһÐУ¬¸ñʽΪ“option=value”£¬×¢Òâ“=”ºÅÁ½±ß²»ÄÜÁô¿Õ°×·û¡£³ýÁËÕâ¸öÖ÷ÅäÖÃÎļþÍ⣬»¹¿ÉÒÔ¸øÌض¨Óû§É趨¸öÈËÅäÖÃÎļþ£¬¾ßÌå½éÉܼûºó¡£
¡¡¡¡VSFTPD°üÖÐËù´øµ ......
Linux ϵͳÏÂÈçºÎ·ÖÇø²Å×îºÏÀí
ÒÔÏÂÕª×Ô¡¶Gentoo Linux x86Êֲᡷ
http://www.gentoo.org/doc/zh_cn/handbook/handbook-x86.xml
·ÖÇøµÄÊýÄ¿Ö÷Òª¸ù¾ÝÄãµÄϵͳ»·¾³À´¾ö¶¨¡£
ÀýÈ磬Èç¹ûÄãÓкܶàÓû§£¬Äã¿ÉÄܸüÏ£Íû°ÑÄãµÄ/homeĿ¼¶ÀÁ¢³öÀ´£¬ÒòΪÕâÑù×ö¿ÉÒÔÔö¼Ó°²È«ÐÔ£¬±¸·ÝÆðÀ´Ò²¸üÈÝÒס£Èç¹ûÄã°²×°GentooÓÃÀ´×öÓʼþ·þÎñÆ÷ ......
¡¡¡¡½ÓÏÂÀ´ÈýÐÐÉèÖÃÈýÖÖ¹¦ÄÜ£¬treeview.set_search_column(0)£¬µ±ÔÚ½çÃæÖа´“Control+F”ʱ¿ÉÒÔËÑË÷µÚ0ÁÐÖеÄÄÚÈÝ£¬tvcolumn.set_sort_column_id(0)£¬µ±µã»÷´ËÁбêÌâµÄʱºòËùÓеÄÐа´´óС˳ÐòÖØÐÂÅÅÁС£²ÎÊý0ÊÇ
ÁÐÔÚModelÀïµÄÐòºÅ¡£½ÓÏÂÀ´treeview.set_reorderable·½·¨Ê¹µÃ¿ÉÒÔÓÃÊó±êÍ϶¯ÐнøÐÐÖØÐÂÅÅÁУ¬±ÈÈç£ ......