1,查看ip 地址 ifconifg;linux
2,查看是否安裝samba服務器,rpm -qa | grep samba;apache
3,若是有該服務器,啓動 service smb start,不然進行安裝 yum install samba;vim
4,安裝完成後進行配置 vim /etc/samba/smb.conf //打開smb的配置文件 我作的簡單配置 服務器
[jmeter]
comment = jmeter
path = /data/jmeter/apache-jmeter-4.0/script
writable = yes
valid users = jmeter
public = no
guest ok = yesrest
5,給目錄賦權限:chmod 777 /data/jmeter/apache-jmeter-4.0/script(具體權限本身控制)ip
5,添加用戶it
smbpasswd -a username
smbpasswd -e usernametable
6,配置完成後重啓 service smb restart 便可!配置
7,由於IP受dhcp影響,每次重啓linux會發生改變,可進行配置 vim /etc/sysconfig/network-scripts/ifcfg-eth0 設置成固定IP地址network