Step#1: Change Hostname
|
|
| [root@db11g ~]# vi /etc/sysconfig/network |
| [root@db11g ~]# cat /etc/sysconfig/network |
| NETWORKING=yes |
| NETWORKING_IPV6=yes |
| HOSTNAME=db12cstby.profad.com |
| [root@db11g ~]# |
|
| [root@db11g ~]# vi /etc/hostname |
| [root@db11g ~]# cat /etc/hostname |
| db12cstby.profad.com |
| [root@db11g ~]# |
|
| [root@db11g ~]# cat /etc/hosts |
| [root@db11g ~]# vi /etc/hosts |
| [root@db11g ~]# cat /etc/hosts |
| # Do not remove the following line, or various programs |
| # that require network functionality will fail. |
| 127.0.0.1 db11g.profad.com db11g localhost.localdomain localhost |
| ::1 localhost6.localdomain6 localhost6 |
| 192.168.1.121 db12cstby.profad.com db12cstby |
|
To reflect the changes:
|
| [root@db11g ~]# service network restart |
[root@db11g ~]# /etc/init.d/network restart
Step#2: /etc/sysctl.conf
|
|
| Edit Kernel Parameters /etc/sysctl.conf |
|
| fs.file-max = 6815744 |
| kernel.sem = 250 32000 100 128 |
| kernel.shmmni = 4096 |
| kernel.shmall = 1073741824 |
| kernel.shmmax = 4398046511104 |
| net.core.rmem_default = 262144 |
| net.core.rmem_max = 4194304 |
| net.core.wmem_default = 262144 |
| net.core.wmem_max = 1048576 |
| fs.aio-max-nr = 1048576 |
| net.ipv4.ip_local_port_range = 9000 65500 |
|
| sysctl -p #Apply changes |
|
No comments:
Post a Comment