使用说明.md
2024/8/8 15:05
1 / 1
1. 解压
tar -xvf samba_7.9.2009.tar.gz
得到解压后的samba目录
2. 进入samba目录
3. 安装所有rpm包
sudo rpm -Uvh *.rpm
4. 检查安装结果
[root@localhost zhanghw]# rpm -qa | grep samba
samba-client-libs-4.10.16-25.el7_9.x86_64
samba-common-tools-4.10.16-25.el7_9.x86_64
samba-common-4.10.16-25.el7_9.noarch
samba-common-libs-4.10.16-25.el7_9.x86_64
samba-libs-4.10.16-25.el7_9.x86_64
samba-4.10.16-25.el7_9.x86_64
[root@localhost zhanghw]#
如果没看到这么多软件包,就要手动安装缺少的,比如缺少了 samba-4.10.16-25.el7_9.x86_64,
就手动执行
sudo rpm -Uvh samba-4.10.16-25.el7_9.x86_64.rpm
5. 启动samba
sudo systemctl start smb
6. 设置开机启动
sudo systemctl enable smb
7. 关闭防火墙
iptables -F
setenfore 0