1. 程式人生 > >LDAP實戰應用指南

LDAP實戰應用指南

ase uname 安裝源 roo set .com x86_64 nal mirror

第1章 ladp master服務安裝

1.1 安裝前系統環境準備

1.1.1 查看系統版本信息

[[email protected] ~]# cat /etc/redhat-release 
CentOS release 6.7 (Final)
[[email protected] ~]# uname -r
2.6.32-573.el6.x86_64
[[email protected] ~]# uname -m
x86_64

1.1.2 配置yum安裝源

mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup &&wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-6.repo
mv /etc/yum.repos.d/epel.repo /etc/yum.repos.d/epel.repo.backup
mv /etc/yum.repos.d/epel-testing.repo /etc/yum.repos.d/epel-testing.repo.backup
wget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-6.repo

1.1.3 保存yum安裝的rpm包

[[email protected] ~]# sed -i.bak ‘s#keepcache=0#keepcache=1#g‘ /etc/yum.conf
[[email protected] ~]# grep keepcache /etc/yum.conf 
keepcache=1

  

1.1.4 關閉selinux和防火墻

[[email protected] ~]# sed -i.bak ‘s#SELINUX=enforcing#SELINUX=disabled#g‘ /etc/selinux/config 
[[email protected]
/* */ ~]# grep SELINUX=disabled /etc/selinux/config SELINUX=disabled [[email protected] ~]# setenforce 0 [[email protected] ~]# getenforce 0 Disabled

 關閉防火墻

[[email protected] ~]#  /etc/init.d/iptables stop

1.1.5 時間同步

[[email protected] ~]# crontab -l
#time sync by junxun at 2017-07-23
*/5 * * * * /usr/sbin/ntpdate pool.ntp.org >/dev/null 2>&1

  

  

 

  

LDAP實戰應用指南