Posts

Showing posts from June, 2015

HAproxy Document

                                         HAproxy Document.     I have use 2 machine and running OS is RHEL6.4 or CentOS 6.4.64Bit Machine Details IP 192.168.0.100 Hostname node1.example.com IP 192.168.0.101 Hostname node2.example.com Virtual IP 192.168.0.200 # yun install haproxy httpd* -y (in both Machine node1 and node2) Configure httpd NODE1 # vim /etc/httpd/conf/httpd.conf Listen 192.168.0.100:8080 ServerName example.com # vim /var/www/html/index.html haproxy node1 # /etc/init.d/httpd  restart # chkconfig httpd on NODE2 # vim /etc/httpd/conf/httpd.conf Listen 192.168.0.101:8080 ServerName example.com # vim /var/www/html/index.html haproxy node2 # /etc/init.d/httpd  restart # chkconfig httpd on # cp  /etc/haproxy/haproxy.cfg  /etc/haproxy/haproxy.cfg-ORG ( copy haproxy.conf file backup in both machine node1 and node2 ) configure haproxy node1 Server # vim /etc/haproxy/haproxy.cfg global  log         192.168.0.200 local2 debug     chroot    

OpenLDAP With Sudo

                              OpenLDAP With Sudo User Document.                          I have Useing RHEL6.4 or Centos 6.4 64Bit OpenLDAP Server Installation Stap 1. install Below Packages in you Local Yum. # yum install openldap* migrationtools nss-pam-ldapd pam_ldap.x86_64 2. Copy DB_CONFIG file in ldap DB Folder. # cp /usr/share/openldap-servers/DB_CONFIG.example  /var/lib/ldap/DB_CONFIG 3. Copy slapd.conf configuretion file openldap folder. # cp /usr/share/openldap-servers/slapd.conf.obsolete /etc/openldap/slapd.conf # cp /usr/share/doc/sudo-1.8.6p3/schema.OpenLDAP  /etc/openldap/schema/sudo.schema 4. Create Ldap root User Password in incrypt form. # slappasswd passowd XXXX retry password XXXX {SSHA}ys0KIpUDTxDV8kys2q98/iLb/44YZDpd 5. configure slapd.conf # vim /etc/openldap/slapd.conf change below Lines. # See slapd.conf(5) for details on configuration options. # This file should NOT be world readable. # include         /etc/openldap/schema/corba.schema database config access