帮助与文档

当前位置: 主页 > 系统相关 > 正文

Centos7系统如何使用yum命令安装samba服务器

时间:2024/4/25 8:53:52   来源:米安网络   作者:云主机配置专家   点击:6次

Centos7系统如何使用yum命令安装samba服务器?本教程以Centos7系统为例

page-break-inside: auto; page-break-before: auto; page-break-after: auto;" align="left">本配置适用于Centos6,7版本

page-break-inside: auto; page-break-before: auto; page-break-after: auto;" align="left">1.安装samba服务器之前需要做以下操作

1.1关闭防火墙及关闭防火墙开机自启(机器没安装防火墙可以略过)

[root@localhost ~]# systemctl stop firewalld.service

[root@localhost ~]# systemctl disable firewalld.service

Removed symlink /etc/systemd/system/dbus-org.fedoraproject.FirewallD1.service.

Removed symlink /etc/systemd/system/basic.target.wants/firewalld.service.

1.2查看SeLinux状态

[root@localhost ~]# sestatus

1.3临时关闭SeLinux

[root@localhost ~]# setenforce 0

1.4查看SeLinux状态

Sestatus

1.5永久关闭SeLinux,需要重启机器

修改配置文件/etc/selinux/config,将SELINU置为disabled

注意需要重启后才会生效

2.安装Samba服务

2.1?

yum install samba

2.2 启动smb

systemctl start smb

systemctl status smb

2.3设置开机自启动

版权保护: 本文「Centos7系统如何使用yum命令安装samba服务器」由 云主机配置专家 原创,转载请保留链接: https://www.miandns.com/docs/system/1282.html

联系客服

0312-5535754

微信公众号