How to Optimize linux performance ?

1. echo vm.swappiness=10 >> /etc/sysctl.conf This optimise memory 2. replace relatime,errors=remount-ro with noatime,nodiratime,errors=remount-ro,data=writeback in /etc/fstab 3. Optimise Tcp settings net.ipv4.tcp_timestamps = 0 removes timestamps and so relieves all incoming and outgoing packets of a 12k overhead. net.ipv4.tcp_sack = 1 enables

How to install OpenLDAP on CentOS ?

yum -y install openldap-clients nss-pam-ldapd vi /etc/openldap/ldap.conf # LDAP server’s URI URI ldap:// # specify Suffix BASE dc=domain,dc=net TLS_CACERTDIR /etc/openldap/cacerts vi /etc/nslcd.conf # line 131: specify URI, Suffix uri ldap:// base dc=domain,dc=net ssl no tls_cacertdir /etc/openldap/cacerts vi /etc/pam_ldap.conf # line

How to install Apache Tomcat on CentOS/Fedora ?

installing Apache Tomcat on CentOS/Fedora 1. yum update 2. yum install tomcat6 tomcat6-webapps tomcat6-admin-webapps java-1.6.0-openjdk-devel.i686 3. chkconfig tomcat6 on 4. chmod -R g+w /var/log/tomcat6 /etc/tomcat6/Catalina /var/lib/tomcat6/webapps/ /var/log/tomcat6/ /var/cache/tomcat6/temp /var/cache/tomcat6/work 5. /etc/init.d/tomcat6 start 6. /etc/tomcat6/tomcat-users.xml 7. <user name=”user” password=”password” roles=”manager” />

How to install OpenLDAP in Ubuntu ?

Installing OpenLDAP # yum -y install openldap openldap-clients openldap-servers # slappasswd hash : {SSHA}STr62WqLg0MAm1WQB+EgTH8X2yAuYo+P # cd /etc/openldap/slapd.d/cn\=config # vi olcDatabase\=\{2\}bdb.ldif configure : olcRootPW: {SSHA}STr62WqLg0MAm1WQB+EgTH8X2yAuYo+P olcRootDN: cn=Manager,dc=domainname,dc=net olcSuffix: dc=domainname,dc=net # vi olcDatabase\=\{1\}monitor.ldif configure : cn=Manager,dc=domainname,dc=net # vi olcDatabase\=\{2\}bdb.ldif Add these lines

Page 1 of 212