尊龙凯时人生就是搏

ÔõÑùÉèÖúÍÖÎÀíLinuxÉϵÄÎļþ¹²ÏíЧÀÍ

Linux×÷Ϊһ¿îÓÅÒìµÄЧÀÍÆ÷²Ù×÷ϵͳ £¬¾ßÓкÜÊÇÇ¿Ê¢µÄÎļþ¹²ÏíÄÜÁ¦¡£Í¨¹ýÉèÖúÍÖÎÀíLinuxÉϵÄÎļþ¹²ÏíЧÀÍ £¬¿ÉÒÔÀû±ãµØʵÏÖÎļþ¹²ÏíºÍЭ×÷¡£±¾ÎĽ«ÏÈÈÝÔõÑùÔÚLinuxϵͳÉϴºÍÖÎÀíÎļþ¹²ÏíЧÀÍ £¬²¢ÌṩÏêϸµÄ´úÂëʾÀý¡£

Ò»¡¢ÉèÖÃÎļþ¹²ÏíЧÀÍ

ÉèÖÃÎļþ¹²ÏíЧÀÍ¿ÉÒÔʹÓÃSambaÈí¼þ°ü £¬SambaÊÇÒ»¸ö¿ªÔ´Ãâ·ÑµÄÈí¼þÌ×¼þ £¬ËüÔÊÐíLinuxϵͳÓëWindows²Ù×÷ϵ×ܹ²ÏíÎļþ¼ÐºÍ´òÓ¡»úµÈ×ÊÔ´¡£ÏÂÃæÎÒÃÇÀ´ÏÈÈÝÏêϸµÄÉèÖð취¡£

1.×°ÖÃSambaÈí¼þ°ü

ʹÓÃÒÔÏÂÏÂÁî×°ÖÃSambaÈí¼þ°ü£º

sudo apt-get update
sudo apt-get install samba

µÇ¼ºó¸´ÖÆ

2.½¨Éè¹²ÏíĿ¼

ÔÚÉèÖù²ÏíЧÀÍ֮ǰ £¬ÐèÒªÏȽ¨ÉèÒ»¸ö¹²ÏíĿ¼¡£ÔÚ±¾´ÎÉèÖÃÖÐ £¬ÎÒÃǽ«½¨ÉèÒ»¸öÃûΪ¡°share¡±µÄ¹²ÏíĿ¼ £¬ÏêϸÏÂÁîÈçÏ£º

sudo mkdir /home/share

µÇ¼ºó¸´ÖÆ

3.ÊÚȨ¹²ÏíĿ¼

ÔÚLinuxϵͳÖÐ £¬¹²ÏíĿ¼µÄÊÚȨÊǺÜÊÇÖ÷ÒªµÄ¡£ÎªÁËʵÏÖ¹²Ïí £¬±ØÐ轫¹²ÏíĿ¼ÊÚȨ¸øÌض¨Óû§»ò×é¡£½«¡°share¡±Ä¿Â¼ÊÚȨ¸øÓû§¡°linuxuser¡± £¬ÏêϸÏÂÁîÈçÏ£º

sudo chown linuxuser /home/share

µÇ¼ºó¸´ÖÆ

4.ÉèÖÃSambaЧÀÍ

ÀÖ³É×°ÖÃSambaºó £¬ÐèÒª±à¼­SambaÉèÖÃÎļþ¾ÙÐÐÉèÖ᣿ÉÒÔʹÓÃÒÔÏÂÏÂÁî·­¿ªSambaÉèÖÃÎļþ£º

sudo vi /etc/samba/smb.conf

µÇ¼ºó¸´ÖÆ

ÔÚÎļþĩβÌí¼ÓÈçÏÂÉèÖãº

[share]
path = /home/share
browseable = yes
read only = no
guest ok = no

µÇ¼ºó¸´ÖÆ

ÆäÖÐ £¬shareΪ¹²ÏíĿ¼µÄÃû³Æ £¬pathΪ¹²ÏíĿ¼µÄ·¾¶ £¬browseable²ÎÊýÉèÖù²ÏíĿ¼ÊÇ·ñ¿É±»ä¯ÀÀ £¬read only²ÎÊýÉèÖÃÊÇ·ñÖ»¶Á £¬guest ok²ÎÊýÉèÖÃÊÇ·ñÔÊÐíÄäÃû»á¼û¡£

5.Æô¶¯SambaЧÀÍ

ÔÚÍê³ÉÒÔÉÏÉèÖúó £¬»¹ÐèÒªÆô¶¯SambaЧÀÍ £¬ÏêϸÏÂÁîÈçÏ£º

sudo systemctl restart smbd.service

µÇ¼ºó¸´ÖÆ

ÖÁ´Ë £¬Îļþ¹²ÏíЧÀ͵ÄÉèÖÃÊÂÇéÒÑÍê³É¡£

¶þ¡¢ÖÎÀíÎļþ¹²ÏíЧÀÍ

ÉèÖÃÍê³Éºó £¬ÔõÑùÖÎÀíÎļþ¹²ÏíЧÀÍÄØ£¿ÏÂÃ潫ÏÈÈÝÔõÑùÖÎÀí¹²ÏíЧÀÍ¡£

1.Ìí¼ÓSambaÓû§

ΪÁ˾ÙÐÐÎļþ¹²Ïí £¬ÐèÒªÌí¼ÓSambaÓû§ £¬¿ÉÒÔʹÓÃÒÔÏÂÏÂÁîÌí¼ÓÓû§£º

sudo smbpasswd -a linuxuser

µÇ¼ºó¸´ÖÆ

ÆäÖÐ £¬¡°linuxuser¡±ÎªÒªÌí¼ÓµÄÓû§Ãû¡£

2.»á¼û¹²ÏíĿ¼

»á¼û¹²ÏíĿ¼ÐèÒªÔÚWindows²Ù×÷ϵͳÖоÙÐС£ÔÚWindowsÎļþä¯ÀÀÆ÷ÖÐ £¬ÊäÈëLinuxϵͳIPµØµã¼°¹²ÏíĿ¼Ãû³Æ £¬¼´¿É½øÈë¹²ÏíĿ¼¡£ÈôÊÇ·ºÆð»á¼ûÌáÐÑ¿ò £¬ÐèÒªÊäÈëÌí¼ÓµÄSambaÓû§µÄÓû§ÃûºÍÃÜÂë £¬ÊäÈë׼ȷºó¼´¿É»á¼û¹²ÏíĿ¼¡£

3.ÊÚȨ¹²ÏíĿ¼

ÔÚ¹²ÏíĿ¼ÖÐ £¬ÐèҪΪ²î±ðµÄÓû§ÉèÖÃÏìÓ¦µÄÊÚȨ¡£¿ÉÒÔʹÓÃÒÔÏÂÏÂÁî¾ÙÐÐÊÚȨ£º

sudo chmod -R 775 /home/share

µÇ¼ºó¸´ÖÆ

ÆäÖÐ £¬775ÊÇÖ¸¿É¶Á¡¢¿Éд¡¢¿ÉÖ´ÐеÄÊÚȨ·½·¨ £¬/home/shareÊǹ²ÏíĿ¼µÄ·¾¶¡£

4.ɾ³ýSambaÓû§

ÈôÊÇÐèҪɾ³ýSambaÓû§ £¬¿ÉÒÔʹÓÃÒÔÏÂÏÂÁîɾ³ý£º

sudo smbpasswd -x linuxuser

µÇ¼ºó¸´ÖÆ

ÆäÖÐ £¬¡°linuxuser¡±ÎªÒªÉ¾³ýµÄÓû§Ãû¡£

±¾ÎÄÏÈÈÝÁËÔõÑùÉèÖúÍÖÎÀíLinuxÉϵÄÎļþ¹²ÏíЧÀÍ £¬²¢ÌṩÁËÏêϸµÄ´úÂëʾÀý¡£Îļþ¹²ÏíЧÀÍ¿ÉÒÔÀû±ãµØʵÏÖÎļþ¹²ÏíºÍЭ×÷ £¬Ìá¸ßÁËÊÂÇéЧÂÊ £¬Ò²Ìá¸ßÁËÍŶÓЭ×÷µÄЧÂÊ¡£ÔÚÏÖʵӦÓÃÖÐ £¬¿ÉÒÔƾ֤ÏÖʵÐèÇó¾ÙÐÐÉèÖúÍÖÎÀí¡£

ÒÔÉϾÍÊÇÔõÑùÉèÖúÍÖÎÀíLinuxÉϵÄÎļþ¹²ÏíЧÀ͵ÄÏêϸÄÚÈÝ £¬¸ü¶àÇë¹Ø×¢±¾ÍøÄÚÆäËüÏà¹ØÎÄÕ£¡

ÃâÔð˵Ã÷£ºÒÔÉÏչʾÄÚÈÝȪԴÓÚÏàÖúýÌå¡¢ÆóÒµ»ú¹¹¡¢ÍøÓÑÌṩ»òÍøÂçÍøÂçÕûÀí £¬°æȨÕùÒéÓë±¾Õ¾ÎÞ¹Ø £¬ÎÄÕÂÉæ¼°¿´·¨Óë¿´·¨²»´ú±í尊龙凯时人生就是搏ÂËÓÍ»úÍø¹Ù·½Ì¬¶È £¬Çë¶ÁÕß½ö×ö²Î¿¼¡£±¾ÎĽӴýתÔØ £¬×ªÔØÇë˵Ã÷À´ÓÉ¡£ÈôÄúÒÔΪ±¾ÎÄÇÖÕ¼ÁËÄúµÄ°æȨÐÅÏ¢ £¬»òÄú·¢Ã÷¸ÃÄÚÈÝÓÐÈκÎÉæ¼°ÓÐÎ¥¹«µÂ¡¢Ã°·¸Ö´·¨µÈÎ¥·¨ÐÅÏ¢ £¬ÇëÄúÁ¬Ã¦ÁªÏµ尊龙凯时人生就是搏ʵʱÐÞÕý»òɾ³ý¡£

Ïà¹ØÐÂÎÅ

ÁªÏµ尊龙凯时人生就是搏

18523999891

¿É΢ÐÅÔÚÏß×Éѯ

ÊÂÇéʱ¼ä£ºÖÜÒ»ÖÁÖÜÎå £¬9:30-18:30 £¬½ÚãåÈÕÐÝÏ¢

QR code
sitemap¡¢ÍøÕ¾µØͼ