๋ณธ๋ฌธ ๋ฐ”๋กœ๊ฐ€๊ธฐ
IT

sysctl: permission denied on key

by yunamom 2022. 2. 11.
๋ฐ˜์‘ํ˜•

AWS ec2 ubuntu ์„œ๋ฒ„์—

์˜ค๋ผํดDB ์„ค์น˜๊ณผ์ •์ค‘ ์ปค๋„ํŒŒ๋ผ๋ฏธํ„ฐ ๊ฐ’ ์„ค์ •์„ ํ•œํ›„ ์ ์šฉํ•˜๋ ค๊ณ  ํ•˜๋‹ˆ ์—๋Ÿฌ๊ฐ€๋‚˜์™”๋‹ค.

ubuntu@green:~$ sudo vi /etc/sysctl.conf


fs.aio-max-nr = 1048576
fs.file-max = 6815744
kernel.shmall = 2097152
kernel.shmmax = 4056393728
kernel.shmmni = 4096
kernel.sem = 250 32000 100 128
net.ipv4.ip_local_port_range = 9000 65500
net.core.rmem_default = 262144
net.core.rmem_max = 4194304
net.core.wmem_default = 262144
net.core.wmem_max = 1048586

#์ž‘์„ฑํ›„ :wq! 

ubuntu@green:~$ /sbin/sysctl -p
sysctl: permission denied on key "fs.aio-max-nr", ignoring
sysctl: permission denied on key "fs.file-max", ignoring
sysctl: permission denied on key "kernel.shmall", ignoring
sysctl: permission denied on key "kernel.shmmax", ignoring
sysctl: permission denied on key "kernel.shmmni", ignoring
sysctl: permission denied on key "kernel.sem", ignoring
sysctl: permission denied on key "net.ipv4.ip_local_port_range", ignoring
sysctl: permission denied on key "net.core.rmem_default", ignoring
sysctl: permission denied on key "net.core.rmem_max", ignoring
sysctl: permission denied on key "net.core.wmem_default", ignoring
sysctl: permission denied on key "net.core.wmem_max", ignoring

sudo /sbin/sysctl -p ๋ช…๋ น์–ด๋กœ ์ ์šฉ์‹œํ‚ฌ์ˆ˜์žˆ๋‹ค.

300x250

์ฝ”๋“œ