[Linux服务器] Linux系统samba安装

84 0
Honkers 昨天 19:25 | 显示全部楼层 |阅读模式

在嵌入式中开发,由于交叉编译,很多人都系统叫代码在windows上面写,在上传到linux服务器编译。这种大多数都是用FTP服务来完成的。
这里给大家介绍一种samba工具,可以叫linux上面的文件夹共享到windows通过IP地址访问即可。


1.第一步在linux上面安装samba
安装命令:sudo apt install 

  1. sudo apt install samba samba-common
复制代码

2.修改你需要共享文件的权限

  1. /**./works this is share file path**/
  2. sudo chmod 777 ./works/
复制代码

3.修改samba配置文件

  1. /***open config file****/
  2. sudo vim /etc/samba/smb.conf
复制代码
  1. /**for config file,add the following code at the end of the file***/
  2. [works]
  3. comment = works
  4. path = /home/gzxs/works
  5. browseable = yes
  6. writeable = yes
  7. available = yes
  8. public = yes
复制代码

4.重启samba服务

  1. sudo service smbd restart
复制代码

5.windows打开共享文件夹


PS:ip地址为你当前linux的ip地址。

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

×
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Honkers

特级红客

关注
  • 3366
    主题
  • 36
    粉丝
  • 0
    关注
这家伙很懒,什么都没留下!

中国红客联盟公众号

联系站长QQ:5520533

admin@chnhonker.com
Copyright © 2001-2025 Discuz Team. Powered by Discuz! X3.5 ( 粤ICP备13060014号 )|天天打卡 本站已运行