Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

linux ubuntuÏÂftp·þÎñÆ÷°²×°¡¢ÅäÖÃÓëʹÓÃ

http://hi.baidu.com/vsgp/blog/item/0daae64589a3852fcffca3e7.html
1¡¢°²×°vsftpd
ÖÕ¶ËÊäÈ룺sudo apt-get install vsftpd
°²×°ÁËÖ®ºó»áÔÚ/home/Ͻ¨Á¢Ò»¸öftpĿ¼¡£ÕâʱºòÄã¿ÉÒÔÊÔ×Å·ÃÎÊÏÂftp://IPµØÖ·¡£Ó¦¸Ã¿ÉÒÔ¿´µ½Ò»¸ö¿Õ°×ÄÚÈݵÄftp¿Õ¼ä¡£
ÆôÓãºsudo /etc/init.d/vsftpd start
Í£Óãºsudo /etc/init.d/vsftpd stop
ÖØÆô£ºsudo /etc/init.d/vsftpd restart
ĬÈÏÉèÖÃÏÂÄäÃûÓû§¿ÉÒÔÏÂÔØ£¬µ«²»ÄÜдÈë»òÊÇÉÏ´«
2¡¢ÅäÖÃvsftpd.confÎļþ
ÏÖÔÚÎÒÃÇÒªÈÃÄäÃûÓû§ÎÞ·¨·ÃÎÊ£¬²¢ÇÒµÃÊäÈëlinuxÉϵÄÓû§ÃÜÂëºó²ÅÄÜ·ÃÎʵ½ËûÃÇ×Ô¼ºÄ¿Â¼ÀïµÄÄÚÈÝ¡£
Ê×ÏÈÕÒµ½ÉèÖÃvsftpdµÄÎļþ£¬Î»ÖÃÔÚ/etc/vsftpd.conf
ÐÞ¸Ä֮ǰ×îºÃÏȱ¸·ÝÏÂÕâ¸öÎļþ£ºsudo cp /etc/vsftpd.conf /etc/vsftpd.conf.old
ÕâÊÇÎÒ°Ñ×¢ÊÍÈ¥µôÒÔºóµÄÎļþÄÚÈÝ
£££¨¶ÀÁ¢µÄVSFTPD·þÎñÆ÷£©
listen=YES
££(ÔÊÐíÄäÃûµÇ½)
anonymous_enable=YES
£££¨±¾µØÕÊ»§Äܹ»µÇ½£©
local_enable=YES
££(¿ª·Å±¾µØÓû§Ð´µÄȨÏÞ)
write_enable=YES
££(FTPÉϱ¾µØµÄÎļþȨÏÞ£©
local_umask=022
££(¿ª·ÅÉÏ´«È¨ÏÞ)
anon_upload_enable=YES
£££¨¿É´´½¨Ä¿Â¼µÄͬʱ¿ÉÒÔÔÚ´ËĿ¼ÖÐÉÏ´«Îļþ£©
anon_mkdir_write_enable=YES
£££¨Çл»Ä¿Â¼Ê±£¬ÏÔʾĿ¼ÏÂ.messageµÄÄÚÈÝ£©
dirmessage_enable=YES
£££¨¼¤»îÉÏ´«ºÍÏ´«µÄÈÕÖ¾£©
xferlog_enable=YES
££ÆôÓÃFTPÊý¾Ý¶Ë¿ÚµÄÊý¾ÝÁ¬½Ó£©
connect_from_port_20=YES
£££¨ÑéÖ¤·½Ê½£©
pam_service_name=vsftpd
secure_chroot_dir=/var/run/vsftpd
rsa_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem
rsa_private_key_file=/etc/ssl/private/ssl-cert-snakeoil.key
3¡¢É趨Îļþ¼ÐȨÏÞ
É趨sudo chmod 555 /home/ftp
ÔÚ/home/ftpÎļþ¼ÐϽ¨Á¢ÐÂÎļþ¼Ðupload£¬¼ÙÉèÉÏ´«Îļþµ½´ËÎļþ¼Ð£ºsudo mkdir /home/ftp/upload
ÉèÖÃuploadȨÏÞÊôÐÔ£ºsudo chmod 777 -R /home/ftp/upload
4¡¢´Óftp·þÎñÆ÷ÏÂÔØÎļþ(¼ÙÉè·þÎñÆ÷ipΪ123.123.123.123)
·½·¨Ò»£º    Ö±½ÓÔÚä¯ÀÀÆ÷µØÖ·À¸ÖÐÊäÈ룺ftp://123.123.123.123
    ÊäÈëÓû§ÃûºÍÃÜÂë
    ÒÔË÷ÒýµÄ·½Ê½£¬¿ÉÒÔÖ±½ÓÓÒ»÷ijÎļþµã»÷‘Á¬½ÓÁí´æΪ’ÏÂÔØ
·½·¨¶þ£º    ÖÕ¶ËÃüÁîģʽ
    £¨1£©cd µ½Òª´æ·ÅËùÏÂÔØÎļþµÄĿ¼ÏÂ
    £¨2£©ftp 123.123.123.123
    £¨3£©ÊäÈëÓû§ÃûºÍÃÜÂë
 


Ïà¹ØÎĵµ£º

LinuxÐźÅ

from: http://cc.byexamples.com/20070520/tap-the-interrupt-signal/
When you hit control+c, you are actually send a SIGINT ( Interrupt signal ) to your program. By default, your program will be terminated after receiving SIGINT. But you can change the way of handling Interrupt signal.
Some of the a ......

ÔÚLinuxÖд´½¨¾²Ì¬¿âºÍ¶¯Ì¬¿â


ÎÒÃÇͨ³£°ÑһЩ¹«Óú¯ÊýÖÆ×÷³Éº¯Êý¿â£¬¹©ÆäËü³ÌÐòʹÓá£
º¯Êý¿â·ÖΪ¾²Ì¬¿âºÍ¶¯Ì¬¿âÁ½ÖÖ¡£
¾²Ì¬¿âÔÚ³ÌÐò±àÒëʱ»á±»Á¬½Óµ½Ä¿±ê´úÂëÖУ¬³ÌÐòÔËÐÐʱ½«²»ÔÙÐèÒª¸Ã¾²Ì¬¿â¡£
¶¯Ì¬¿âÔÚ³ÌÐò±àÒëʱ²¢²»»á±»Á¬½Óµ½Ä¿±ê´úÂëÖУ¬¶øÊÇÔÚ³ÌÐòÔËÐÐÊDzű»ÔØÈ룬Òò´ËÔÚ³ÌÐòÔËÐÐʱ»¹ÐèÒª¶¯Ì¬¿â´æÔÚ¡£
±¾ÎÄÖ÷Ҫͨ¹ý¾ÙÀýÀ´ËµÃ÷ÔÚLinuxÖÐÈçº ......

linuxÏµĹ²Ïí¿â£¨¶¯Ì¬¿â£©ºÍ¾²Ì¬¿â


1.ʲôÊÇ¿â
ÔÚwindowsƽ̨ºÍlinuxƽ̨϶¼´óÁ¿´æÔÚ×Å¿â¡£
±¾ÖÊÉÏÀ´Ëµ¿âÊÇÒ»ÖÖ¿ÉÖ´ÐдúÂëµÄ¶þ½øÖÆÐÎʽ£¬¿ÉÒÔ±»²Ù×÷ϵͳÔØÈëÄÚ´æÖ´ÐС£
ÓÉÓÚwindowsºÍlinuxµÄ±¾Öʲ»Í¬£¬Òò´Ë¶þÕß¿âµÄ¶þ½øÖÆÊDz»¼æÈݵġ£
±¾ÎĽöÏÞÓÚ½éÉÜlinuxϵĿ⡣
2.¿âµÄÖÖÀà
linuxϵĿâÓÐÁ½ÖÖ£º¾²Ì¬¿âºÍ¹²Ïí¿â£¨¶¯Ì¬¿â£©¡£
¶þÕߵIJ»Í¬µãÔÚÓÚ´úÂë ......

½â»ó—LinuxÖеĵØÖ·¿Õ¼ä£¨Ò»£©×ªÔØ

ÓÐÕâôһϵÁеÄÎÊÌ⣬ÊÇ·ñÔÚÀ§ÈÅ×ÅÄ㣺Óû§³ÌÐò±àÒëÁ¬½ÓÐγɵĵØÖ·¿Õ¼äÔÚʲô·¶Î§ÄÚ£¿Äں˱àÒëºóµØÖ·¿Õ¼äÔÚʲô·¶Î§ÄÚ£¿Òª¶ÔÍâÉè½øÐзÃÎÊ£¬I/OµÄµØÖ·¿Õ¼äÓÖÊÇʲôÑùµÄ£¿
ÏȻشðµÚÒ»¸öÎÊÌâ¡£Linux×î³£¼ûµÄ¿ÉÖ´ÐÐÎļþ¸ñʽΪelf(Executable and Linkable Format)¡£ÔÚelf¸ñʽµÄ¿ÉÖ´ÐдúÂëÖУ¬ld×ÜÊÇ´Ó0x8000000¿ªÊ¼°²ÅųÌÐòµÄ& ......

LinuxÆô¶¯Ê±¼äµÄ¼«ÏÞÓÅ»¯

£¨1£©Ê×ÏÈÊǶÔLinuxÆô¶¯¹ý³ÌµÄ¸ú×ٺͷÖÎö£¬Éú³ÉÏêϸµÄÆô¶¯Ê±¼ä±¨¸æ¡£
¡¡¡¡½ÏΪ¼òµ¥¿ÉÐеķ½Ê½ÊÇͨ¹ýPrintkTime¹¦ÄÜΪÆô¶¯¹ý³ÌµÄËùÓÐÄÚºËÐÅÏ¢Ôö¼Óʱ¼ä´Á£¬±ãÓÚ»ã×Ü·ÖÎö¡£PrintkTime×îÔçΪCELFËùÌṩµÄÒ»¸öÄں˲¹¶¡£¬ÔÚºóÀ´µÄKernel 2.6.11°æ±¾ÖÐÕýʽÄÉÈë±ê×¼Äںˡ£ËùÒÔ´ó¼Ò¿ÉÄÜÔÚа汾µÄÄÚºËÖÐÖ±½ÓÆôÓøù¦ÄÜ¡£Èç¹ûÄãµÄLin ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ