‘Oracle Enterprise Linux’ カテゴリーのアーカイブ

Kernel ParameterのValue変更

2010年6月3日 木曜日

# cat >> /etc/sysctl.conf << EOF
> kernel.shmall = 2097152
> kernel.shmmax = 536870912
> kernel.shmmni = 4096
> kernel.sem = 250 32000 100 128
> fs.file-max = 65536
> net.ipv4.ip_local_port_range = 1024 65000
> EOF
# /sbin/sysctl -p
net.ipv4.ip_forward = 0
net.ipv4.conf.default.rp_filter = 1
net.ipv4.conf.default.accept_source_route = 0
kernel.sysrq = 0
kernel.core_uses_pid = 1
kernel.shmall = 2097152
kernel.shmmax = 536870912
kernel.shmmni = 4096
kernel.sem = 250 32000 100 128
fs.file-max = 65536
net.ipv4.ip_local_port_range = 1024 65000
net.core.rmem_default = 262144
net.core.wmem_default = 262144
net.core.rmem_max = 262144
net.core.wmem_max = 262144

Run the following commands as root to verify your settings:

/sbin/sysctl -a | grep shm
/sbin/sysctl -a | grep sem
/sbin/sysctl -a | grep file-max
/sbin/sysctl -a | grep ip_local_port_range
/sbin/sysctl -a | grep rmem_default
/sbin/sysctl -a | grep rmem_max
/sbin/sysctl -a | grep wmem_default
/sbin/sysctl -a | grep wmem_maxEx

参考サイト
http://www.oracle.com/technology/pub/articles/smiley_10gdb_install.html

Daylight Saving Time対応状況確認コマンド

2010年3月12日 金曜日

# zdump -v /etc/localtime | grep 2010
/etc/localtime Sun Mar 14 07:59:59 2010 UTC = Sun Mar 14 01:59:59 2010 CST isds
/etc/localtime Sun Mar 14 08:00:00 2010 UTC = Sun Mar 14 03:00:00 2010 CDT isds
/etc/localtime Sun Nov 7 06:59:59 2010 UTC = Sun Nov 7 01:59:59 2010 CDT isds
/etc/localtime Sun Nov 7 07:00:00 2010 UTC = Sun Nov 7 01:00:00 2010 CST isds

Printer enable command

2010年3月4日 木曜日

# lpstat -t
scheduler is running
system default destination: …..
……………………………………
……………………………………
# enable server_name
-bash: enable: server_name: not a shell builtin
どうやらBashコマンドではないようなので
# which enable
/usr/bin/enable
# /usr/bin/enable server_name
# accept server_name
# lpstat -t
# lpq
# lpq -a