VMware虚拟机断电重启后出现Generating /run/initramfs/rdsosreport.txt问题
执行xfs_repair /dev/mapper/centos-root 或者xfs_repair /dev/mapper/centos-root -L
# xfs_repair /dev/mapper/centos-root -L
# reboot
执行xfs_repair /dev/mapper/centos-root 或者xfs_repair /dev/mapper/centos-root -L
# xfs_repair /dev/mapper/centos-root -L
# reboot
1、安装SAMBA
yum -y install samba samba-client samba-common
2、配置SAMBA
cp /etc/samba/smb.conf /etc/samba/smb.conf.bak #备份
vi/etc/samba/smb.conf
3、smb.conf中添加目录范例
[wwwroot]
comment = Share files
path = /wwwroot/
writable = yes
public = yes
guest ok = no
browseable = yes
4、关闭防火墙 (理论上来讲有不用关闭防火墙和selinux的方法,但是我尝试失败,只好用直接关闭这种方法,不建议生产环境中这样使用,我只是在本地测试环境需要。)
setenforce 0
systemctl stop firewalld
systemctl disable firewalld
5、关闭SELinux
vi /etc/selinux/config
将SELINUX=enforcing 改为SELINUX=disabled
service smb restart
6、启动SAMBA
systemctl restart smb #重启
systemctl enable smb #修改为开机启动
systemctl status smb #查看状态
7、给smb添加用户,按照命令提示输入两次密码 (我直接使用的是root,生产环境不建议直接用root,我只是图方便。)
smbpasswd -a root