linuxÐÞ¸Ässh¶Ë¿ÚºÍ½ûÖ¹rootÔ¶³ÌµÇ½ÉèÖÃ
linuxÐÞ¸Ässh¶Ë¿Ú22
vi /etc/ssh/ssh_config
vi /etc/ssh/sshd_config
È»ºóÐÞ¸ÄΪport 8888
ÒÔrootÉí·Ýservice sshd restart (redhat as3)
ʹÓÃputty,¶Ë¿Ú8888
LinuxÏÂSSHĬÈϵĶ˿ÚÊÇ22,ΪÁË°²È«¿¼ÂÇ£¬ÏÖÐÞ¸ÄSSHµÄ¶Ë¿ÚΪ1433,Ð޸ķ½·¨ÈçÏ £º
/usr/sbin/sshd -p 1433
ΪÔöÇ¿°²È«
ÏÈÔö¼ÓÒ»¸öÆÕͨȨÏÞµÄÓû§£º
#useradd uploader
#passwd uploader
//ÉèÖÃÃÜÂë
Éú²ú»úÆ÷½ûÖ¹ROOTÔ¶³ÌSSHµÇ¼£º
#vi /etc/ssh/sshd_config
°Ñ
PermitRootLogin yes
¸ÄΪ
PermitRootLogin no
ÖØÆôsshd·þÎñ
#service sshd restart
Ô¶³Ì¹ÜÀíÓÃÆÕͨÓû§uploaderµÇ¼£¬È»ºóÓà su root Çл»µ½rootÓû§Äõ½×î¸ßȨÏÞ¡£
Ïà¹ØÎĵµ£º
±¾²»ÏëдÕâЩÍæÒâ¶ù£¬ÆäʵÎÒ²¢²»Ï²»¶ËüÃÇ£¬Ö»²»¹ýû°ì·¨£¬Ë½ÐÎÒÊÇ¿¿ÕâЩ¼Ò»ïºý¿ÚµÄÄØ£¡
Èô¸ÉÄêÇ°£¬ÎÒ×ÔÈÏΪºÜϲ»¶Linux£»Èô¸ÉÄêºó£¬ÎÒ·¢ÏÖÎÒµ±³õÊǺεȵÄÌìÕæ¡£
¶÷£¬Ò»·ÖÇ®£¬Ò»·Ö»õ£¡ÎÒ¼áÐÅÕâÒ»µã£¡ËùÒÔÎÒÏÖÔÚ¼á³ÖÓÃMSµÄVista£¬Õý°æµÄŶ£¡
ÑÔ¹éÕý´«£¬Ç°¶Îʱ¼äÒòΪ¹¤×÷£¬ÐèÒªÔÚLinuxϲÙ×÷Êó±ê£¬µ±È»À²£¬¿Ï¶¨²»»áÊÇÔÚX-w ......
Linux GrepÃüÁîʹÓõÄÏêϸ½éÉÜ
1. grep¼ò½é
¡¡¡¡grep (global search regular expression(RE) and print out the line,È«ÃæËÑË÷ÕýÔò±í´ïʽ²¢°ÑÐÐ
´òÓ¡³öÀ´)ÊÇÒ»ÖÖÇ¿´óµÄÎı¾ËÑË÷¹¤¾ß£¬ËüÄÜʹÓÃÕýÔò±í´ïʽËÑË÷Îı¾£¬²¢°ÑÆ¥ÅäµÄÐдòÓ¡³öÀ´¡£UnixµÄ
grep¼Ò×å°üÀ¨grep¡¢ egrepºÍfgrep¡£egrepºÍfgrepµÄÃüÁîÖ»¸úgrepÓкÜС²» ......
Óû§ÏµÍ³Ïà¹ØÃüÁî
Óû§Çл»
Óû§Çл»£º su [Ñ¡Ïî] [ʹÓÃÕß]
Óû§¹ÜÀí
Ôö¼ÓÓû§Õ˺Å: useradd [Ñ¡Ïî] Óû§Ãû
ÉèÖÃÓû§Õ˺ÅÊôÐÔ£º usermod [Ñ¡Ïî] ÊôÐÔÖµ
ɾ³ý¶ÔÓ¦Óû§Õ˺ţº userdel [Ñ¡Ïî] Óû§Ãû
Ôö¼Ó×éÕ˺ţº ......
¡¡ ת×Ô http://tech.sina.com.cn/s/2004-10-19/1115443045.shtml
×÷ΪLinuxϵijÌÐò¿ª·¢ÈËÔ±£¬´ó¼ÒÒ»¶¨¶¼Óöµ½¹ýMakefile£¬ÓÃmakeÃüÁîÀ´±àÒë×Ô¼ºÐ´µÄ³ÌÐòȷʵÊǺܷ½±ã¡£Ò»°ãÇé¿öÏ£¬´ó¼Ò¶¼ÊÇÊÖ¹¤Ð´Ò»¸ö¼òµ¥Makefile£¬Èç¹ûÒªÏëд³öÒ»¸ö·ûºÏ×ÔÓÉÈ ......