Linux

#2_CentOS6.7_iptable,tmpfs용량 재설정

봉구 IT세상 2015. 12. 9. 15:21

iptables

[root@sevas ~]# chkconfig --list iptables  방화벽 열려 있는지 확인

iptables        0:off   1:off   2:on    3:on    4:on    5:on    6:off


[root@sevas ~]# chkconfig --level 2345 iptables off 방화벽 2345 방화벽을 off 시킨다


[root@sevas ~]# chkconfig --list iptables 확인 하면 전부 꺼져 있다

iptables        0:off   1:off   2:off   3:off   4:off   5:off   6:off



tmpfs 사이즈 변경 설정

[root@sevas ~]# df -Th 마운트 되어 있는 디스크 확인

Filesystem     Type   Size  Used Avail Use% Mounted on

/dev/sda3      ext4    18G  1.9G   15G  12% /

tmpfs          tmpfs  491M     0  491M   0% /dev/shm <- tmpfs 용량을 1G로 변경 할것 이다

/dev/sda1      ext4   477M   36M  416M   8% /boot


[root@sevas ~]# vi /etc/fstab

# /etc/fstab

# Created by anaconda on Wed Dec  9 14:08:31 2015

#

# Accessible filesystems, by reference, are maintained under '/dev/disk'

# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info

#

UUID=abae00a0-711a-4d83-a226-fc5609013560 /                       ext4    defaults        1 1

UUID=391e77ff-e19a-483e-9ec0-00a6ada9000a /boot                   ext4    defaults        1 2

UUID=d8ea7b4f-3db8-4e1f-8e9c-6282f6d6d960 swap                    swap    defaults        0 0

tmpfs                   /dev/shm                tmpfs   defaults,size=1024M        0 0

devpts                  /dev/pts                devpts  gid=5,mode=620  0 0

sysfs                   /sys                    sysfs   defaults        0 0

proc                    /proc                   proc    defaults        0 0


[root@sevas ~]# mount -o remount /dev/shm/ 마운트 되어 있는것을 remount 를 해서 변경 된 디스크 내용으로 수정


[root@sevas ~]# df -Th

Filesystem     Type   Size  Used Avail Use% Mounted on

/dev/sda3      ext4    18G  1.9G   15G  12% /

tmpfs          tmpfs  1.0G     0  1.0G   0% /dev/shm <- 용량이 1G 로 변경 되었음

/dev/sda1      ext4   477M   36M  416M   8% /boot