ÔõÑùÔÚ÷è÷ë²Ù×÷ϵͳÉϾÙÐÐÍøÂç¹²ÏíºÍÎļþ´«Ê䣿
ÔõÑùÔÚ÷è÷ë²Ù×÷ϵͳÉϾÙÐÐÍøÂç¹²ÏíºÍÎļþ´«Ê䣿
÷è÷ë²Ù×÷ϵͳÊÇÒ»¸ö»ùÓÚLinuxÄں˿ª·¢µÄ²Ù×÷ϵͳ£¬ÆäÎȹÌÐÔºÍÇå¾²ÐÔ±¸ÊÜÍÆÐí¡£ÔÚ÷è÷ë²Ù×÷ϵͳÉϾÙÐÐÍøÂç¹²ÏíºÍÎļþ´«ÊäºÜÊÇÀû±ã£¬±¾ÎĽ«ÎªÄúÏÈÈÝһЩ¼òÆÓµÄÒªÁìºÍ´úÂëʾÀý¡£
Ò»¡¢Ê¹ÓÃSamba¾ÙÐÐÍøÂç¹²Ïí
SambaÊÇÒ»ÖÖÓÃÓÚÔÚLinuxºÍWindowsϵͳ֮¼ä¹²ÏíÎļþºÍ´òÓ¡»úµÄÈí¼þÌ×¼þ¡£ÒÔÏÂÊÇÔÚ÷è÷ë²Ù×÷ϵͳÉÏÉèÖÃSamba¹²ÏíµÄ°ì·¨£º
Ê×ÏÈ£¬ÄúÐèҪװÖÃSambaÈí¼þ°ü¡£·¿ªÖն˲¢ÊäÈëÒÔÏÂÏÂÁîÀ´×°Öãº
sudo apt-get install samba
µÇ¼ºó¸´ÖÆ
×°ÖÃÍê³Éºó£¬ÄúÐèÒª±à¼SambaµÄÉèÖÃÎļþ¡£ÊäÈëÒÔÏÂÏÂÁîÀ´·¿ªÉèÖÃÎļþ£º
sudo vi /etc/samba/smb.conf
µÇ¼ºó¸´ÖÆ
ÔÚÉèÖÃÎļþÖУ¬ÄúÐèÒª½ç˵¹²ÏíµÄÎļþ¼Ð¡£ÕÒµ½²¢±à¼ÒÔÏÂÄÚÈÝ£¨Ê¾ÀýÖеÄÎļþ¼Ð·¾¶Îª/home/share£©£º
[shared] comment = Shared Folder path = /home/share browseable = yes writeable = yes public = yes
µÇ¼ºó¸´ÖÆ
ÉúÑÄÎļþ²¢¹Ø±Õ±à¼Æ÷¡£
½ÓÏÂÀ´£¬ÄúÐèÒª½¨Éè¹²ÏíµÄÎļþ¼Ð²¢ÉèÖÃȨÏÞ¡£ÊäÈëÒÔÏÂÏÂÁîÀ´½¨ÉèÎļþ¼Ð£º
sudo mkdir /home/share sudo chmod -R 0777 /home/share
µÇ¼ºó¸´ÖÆ
×îºó£¬ÄúÐèҪΪSamba½¨ÉèÒ»¸öÓû§ºÍÃÜÂë¡£ÊäÈëÒÔÏÂÏÂÁîÀ´½¨ÉèÓû§£¨Ê¾ÀýÖеÄÓû§ÃûΪsambauser£©£º
sudo smbpasswd -a sambauser
µÇ¼ºó¸´ÖÆ
ÊäÈ벢ȷÈÏÃÜÂëºó£¬ÖØÆôSambaЧÀÍÒÔʹ¸ü¸ÄÉúЧ£º
sudo service smbd restart
µÇ¼ºó¸´ÖÆ
ÏÖÔÚ£¬Äú¿ÉÒÔÔÚWindowsϵͳÖлá¼û¹²ÏíÎļþ¼ÐÁË¡£·¿ªWindows×ÊÔ´ÖÎÀíÆ÷£¬²¢¼üÈë÷è÷ë²Ù×÷ϵͳµÄIPµØµã£¨ÀýÈ磺\192.168.0.100£©¡£Äú½«¿´µ½¹²ÏíÎļþ¼Ð²¢¿ÉÒÔ¾ÙÐÐÎļþ´«Êä¡£
¶þ¡¢Ê¹ÓÃSCP¾ÙÐÐÎļþ´«Êä
SCPÊÇÒ»¸öÓÃÓÚÔÚµ±ÌïÖ÷»úºÍÔ¶³ÌÖ÷»úÖ®¼ä´«ÊäÎļþµÄÏÂÁîÐй¤¾ß¡£ÒÔÏÂÊÇÔÚ÷è÷ë²Ù×÷ϵͳÉÏʹÓÃSCPµÄ°ì·¨£º
·¿ªÖնˣ¬²¢ÊäÈëÒÔÏÂÏÂÁîÀ´´ÓÔ¶³ÌÖ÷»ú¸´ÖÆÎļþµ½µ±ÌïÖ÷»ú£º
scp username@remote:/path/to/file local_destination
µÇ¼ºó¸´ÖÆ
ÆäÖУ¬usernameÊÇÔ¶³ÌÖ÷»úµÄÓû§Ãû£¬remoteÊÇÔ¶³ÌÖ÷»úµÄIPµØµã»òÖ÷»úÃû£¬/path/to/fileÊÇÒª¸´ÖƵÄÎļþ·¾¶£¬local_destinationÊǵ±ÌïÖ÷»úÉϵÄÄ¿µÄ·¾¶¡£
ÊäÈëÔ¶³ÌÖ÷»úµÄÃÜÂ룬Îļþ½«±»¸´ÖƵ½µ±ÌïÖ÷»úÉÏ¡£
Äú»¹¿ÉÒÔÔÚµ±ÌïÖ÷»úÉÏʹÓÃSCP½«Îļþ¸´ÖƵ½Ô¶³ÌÖ÷»ú¡£ÊäÈëÒÔÏÂÏÂÁ
scp local_file username@remote:/path/to/destination
µÇ¼ºó¸´ÖÆ
ÆäÖУ¬local_fileÊǵ±ÌïÖ÷»úÉÏÒª¸´ÖƵÄÎļþ·¾¶£¬usernameÊÇÔ¶³ÌÖ÷»úµÄÓû§Ãû£¬remoteÊÇÔ¶³ÌÖ÷»úµÄIPµØµã»òÖ÷»úÃû£¬/path/to/destinationÊÇÔ¶³ÌÖ÷»úÉϵÄÄ¿µÄ·¾¶¡£
Èý¡¢Ê¹ÓÃFTP¾ÙÐÐÎļþ´«Êä
FTPÊÇÒ»ÖÖÓÃÓÚÔÚ¿Í»§¶ËºÍЧÀÍÆ÷Ö®¼ä´«ÊäÎļþµÄ³£¼ûÐÒé¡£ÒÔÏÂÊÇÔÚ÷è÷ë²Ù×÷ϵͳÉÏʹÓÃFTPµÄ°ì·¨£º
·¿ªÖնˣ¬²¢ÊäÈëÒÔÏÂÏÂÁîÀ´×°ÖÃFTPÈí¼þ°ü£º
sudo apt-get install ftp
µÇ¼ºó¸´ÖÆ
×°ÖÃÍê³Éºó£¬ÊäÈëÒÔÏÂÏÂÁîÅþÁ¬µ½FTPЧÀÍÆ÷£º
ftp ftp_server_address
µÇ¼ºó¸´ÖÆ
ÆäÖУ¬ftp_server_addressÊÇFTPЧÀÍÆ÷µÄIPµØµã»òÖ÷»úÃû¡£
ÊäÈëÓû§ÃûºÍÃÜÂëÒԵǼµ½FTPЧÀÍÆ÷¡£
ÏÖÔÚ£¬Äú¿ÉÒÔʹÓÃFTPÏÂÁîÀ´ÉÏ´«ºÍÏÂÔØÎļþ¡£ÒÔÏÂÊÇһЩ³£ÓõÄFTPÏÂÁ
get£º´ÓЧÀÍÆ÷ÏÂÔØÎļþµ½µ±ÌïÖ÷»ú¡£
put£º½«µ±ÌïÖ÷»úÉϵÄÎļþÉÏ´«µ½Ð§ÀÍÆ÷¡£
ls£ºÁгöЧÀÍÆ÷ÉϵÄÎļþºÍĿ¼¡£
cd£º¸ü¸ÄЧÀÍÆ÷ÉϵÄÄ¿½ñĿ¼¡£
ͨ¹ýÉÏÊö¼òÆӵİ취ºÍ´úÂëʾÀý£¬Äú¿ÉÒÔÔÚ÷è÷ë²Ù×÷ϵͳÉÏÇáËɾÙÐÐÍøÂç¹²ÏíºÍÎļþ´«Êä¡£ÎÞÂÛÊÇʹÓÃSamba¹²ÏíÎļþ¼Ð£¬ÕÕ¾ÉʹÓÃSCP»òFTP¾ÙÐÐÎļþ´«Ê䣬Äú¿ÉÒÔ¸üÀû±ãµØÔÚ÷è÷ë²Ù×÷ϵͳÉϹ²ÏíºÍ´«ÊäÎļþ¡£×£Äú˳ËìÍê³É£¡
ÒÔÉϾÍÊÇÔõÑùÔÚ÷è÷ë²Ù×÷ϵͳÉϾÙÐÐÍøÂç¹²ÏíºÍÎļþ´«Ê䣿µÄÏêϸÄÚÈÝ£¬¸ü¶àÇë¹Ø×¢±¾ÍøÄÚÆäËüÏà¹ØÎÄÕ£¡