Centos7系統(tǒng)如何使用yum命令安裝samba服務(wù)器
Centos7系統(tǒng)如何使用yum命令安裝samba服務(wù)器?本教程以Centos7系統(tǒng)為例
本配置適用于Centos6,7版本
1.安裝samba服務(wù)器之前需要做以下操作
1.1關(guān)閉防火墻及關(guān)閉防火墻開機自啟(機器沒安裝防火墻可以略過)
[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狀態(tài)
[root@localhost ~]# sestatus
1.3臨時關(guān)閉SeLinux
[root@localhost ~]# setenforce 0
1.4查看SeLinux狀態(tài)
Sestatus
1.5永久關(guān)閉SeLinux,需要重啟機器
修改配置文件/etc/selinux/config,將SELINU置為disabled
注意需要重啟后才會生效
2.安裝Samba服務(wù)2.1
yum install samba
2.2 啟動smb
systemctl start smb systemctl status smb
2.3設(shè)置開機自啟動
版權(quán)保護: 本文「Centos7系統(tǒng)如何使用yum命令安裝samba服務(wù)器」由 云主機配置專家 原創(chuàng),轉(zhuǎn)載請保留鏈接: http://www.iqcg.cn/docs/system/1282.html