2020-11-8

smaba--smb server:

yum install samba

vim /etc/samba/smb.conf

id linuxprobe

pdbedit -a -u linxprobe

systemctl restart smb
systemctl enable smb

setenforce 0

setenforce 1

getsebool -a |grep smba

setsebool -P

yum install cifs-utils

NFS文件系统:

vim /etc/exports

/nfs *(rw.sync,root_squash)

exportfs -a

或者用以下操作:
(
systemctl restart rpcbind
systemctl enable rpcbind
systemctl restart nfs-server
systemctl enable nfs-server
)
showmount -e 192.168.10.12

客户端放行服务:nfs ,nfs3 ,ipcbind,mountd
vim /etc/fstab:
192.168.10.12:/nfs /nfs_12 nfs defaults 0 0

Autofs自动挂载文件系统:
vim /etc/auto.master
/media /etc/iso.misc

vim /etc/iso.misc
/media/iso -fstype=iso9660,rw :/dev/cdrom
sysemctl restart autofs
systemctl enable autofs

域名解析:

yum install bind-chroot

vim /etc/named.conf

正反向解析

上一篇:Docker(13)- docker start/stop/restart 命令详解


下一篇:fopen vs fsocketopen vs curl