本地yum源配置:
1、以挂载光盘的形式配置yum源
mkdir /mnt/cdrom mount /dev/cdrom /mnt/cdrom
配置yum配置文件
vim /etc/yum.repos.d/rhel-debuginfo.repo [rhel-debuginfo] name=Red Hat Enterprise Linux $releasever - $basearch - Debug baseurl=file:///mnt/cdrom/Server enabled=1 gpgcheck=0 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
2、以挂载ISO文件的形式配置本地yum源
mount ./rhel-server-5.8-x86_64-dvd.iso /mnt/cdrom -t iso9660 -o loop vim /etc/yum.repos.d/rhel-debuginfo.repo [rhel-debuginfo] name=Red Hat Enterprise Linux $releasever - $basearch - Debug baseurl=file:///mnt/cdrom/Server enabled=1 gpgcheck=0 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
清除yum缓存
yum clear all yum update
samba配置:
yum install samba –y vim /etc/samba/smb.conf security = user guest account = smbdts encrypt passwords = yes smb passwd file =/etc/samba/smbpasswd #添加一个smb账户为smbdts,并设置密码,默认的samba共享目录为smbdts的家目录,账号为smbdts useradd smbdts passwd smbdts cat /etc/passwd | mksmbpasswd.sh >/etc/samba/smbpasswd smbpasswd –a smbdts service smb restart
原文地址:http://80cto.blog.51cto.com/7503144/1730395