初期状態
※CentOS 3の情報はページが移動しました。 --> 初期状態(CentOS 3)
CentOS 4.3をインストールした時点でのサーバの状態。
OS情報# cat /etc/redhat-release CentOS release 4.3 (Final) # uname -a Linux bruna 2.6.9-34.EL #1 Wed Mar 8 00:07:35 CST 2006 i686 i686 i386 GNU/Linuxオープンポート
# netstat -an Active Internet connections (servers and established) Proto Recv-Q Send-Q Local Address Foreign Address State tcp 0 0 0.0.0.0:32768 0.0.0.0:* LISTEN tcp 0 0 0.0.0.0:111 0.0.0.0:* LISTEN tcp 0 0 0.0.0.0:631 0.0.0.0:* LISTEN tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN tcp 0 0 :::22 :::* LISTEN udp 0 0 0.0.0.0:32768 0.0.0.0:* udp 0 0 0.0.0.0:707 0.0.0.0:* udp 0 0 0.0.0.0:111 0.0.0.0:* udp 0 0 0.0.0.0:631 0.0.0.0:* Active UNIX domain sockets (servers and established) Proto RefCnt Flags Type State I-Node Path unix 2 [ ACC ] STREAM LISTENING 4716 /tmp/.font-unix/fs7100 unix 2 [ ACC ] STREAM LISTENING 4663 /dev/gpmctl unix 2 [ ] DGRAM 4883 @/var/run/hal/hotplug_socket unix 2 [ ACC ] STREAM LISTENING 4768 /var/run/dbus/system_bus_socket unix 2 [ ] DGRAM 2519 @udevd unix 11 [ ] DGRAM 4057 /dev/log unix 2 [ ] DGRAM 20706 unix 3 [ ] STREAM CONNECTED 20454 unix 3 [ ] STREAM CONNECTED 20453 unix 3 [ ] STREAM CONNECTED 4794 /var/run/dbus/system_bus_socket unix 3 [ ] STREAM CONNECTED 4793 unix 3 [ ] STREAM CONNECTED 4771 unix 3 [ ] STREAM CONNECTED 4770 unix 2 [ ] DGRAM 4727 unix 2 [ ] DGRAM 4680 unix 2 [ ] DGRAM 4662 unix 2 [ ] DGRAM 4648 unix 2 [ ] DGRAM 4629 unix 2 [ ] DGRAM 4577 unix 2 [ ] DGRAM 4296 unix 3 [ ] STREAM CONNECTED 4245 unix 3 [ ] STREAM CONNECTED 4244 unix 2 [ ] DGRAM 4132 unix 2 [ ] DGRAM 4065起動プロセス
# ps auxww USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND root 1 0.0 0.2 3248 512 ? S Jun30 0:00 init [3] root 2 0.0 0.0 0 0 ? SN Jun30 0:00 [ksoftirqd/0] root 3 0.0 0.0 0 0 ? S< Jun30 0:00 [events/0] root 4 0.0 0.0 0 0 ? S< Jun30 0:00 [khelper] root 5 0.0 0.0 0 0 ? S< Jun30 0:00 [kblockd/0] root 6 0.0 0.0 0 0 ? S Jun30 0:00 [khubd] root 29 0.0 0.0 0 0 ? S Jun30 0:00 [pdflush] root 30 0.0 0.0 0 0 ? S Jun30 0:00 [pdflush] root 32 0.0 0.0 0 0 ? S< Jun30 0:00 [aio/0] root 27 0.0 0.0 0 0 ? S Jun30 0:00 [kapmd] root 31 0.0 0.0 0 0 ? S Jun30 0:00 [kswapd0] root 106 0.0 0.0 0 0 ? S Jun30 0:00 [kseriod] root 184 0.0 0.0 0 0 ? S Jun30 0:00 [kjournald] root 1000 0.0 0.1 2624 472 ? S<s Jun30 0:00 udevd root 1116 0.0 0.0 0 0 ? S< Jun30 0:00 [kauditd] root 1149 0.0 0.0 0 0 ? S< Jun30 0:00 [kmirrord] root 1150 0.0 0.0 0 0 ? S< Jun30 0:00 [kmir_mon] root 1173 0.0 0.0 0 0 ? S Jun30 0:00 [kjournald] root 1174 0.0 0.0 0 0 ? S Jun30 0:00 [kjournald] root 1175 0.0 0.0 0 0 ? S Jun30 0:00 [kjournald] root 1176 0.0 0.0 0 0 ? S Jun30 0:00 [kjournald] root 1177 0.0 0.0 0 0 ? S Jun30 0:00 [kjournald] root 1178 0.0 0.0 0 0 ? S Jun30 0:00 [kjournald] root 1753 0.0 0.2 2848 628 ? Ss Jun30 0:00 syslogd -m 0 root 1757 0.0 0.1 1980 472 ? Ss Jun30 0:00 klogd -x rpc 1784 0.0 0.2 3148 572 ? Ss Jun30 0:00 portmap rpcuser 1803 0.0 0.2 1948 760 ? Ss Jun30 0:00 rpc.statd root 1829 0.0 0.4 3996 1200 ? Ss Jun30 0:00 rpc.idmapd root 1861 0.0 0.2 2448 520 ? Ss Jun30 0:00 /usr/sbin/apmd -p 10 -w 5 -W -P /etc/sysconfig/apm-scripts/apmscript root 1902 0.0 0.3 2512 816 ? S Jun30 0:00 /usr/sbin/smartd root 1915 0.0 0.8 8888 2116 ? Ss Jun30 0:00 cupsd root 1961 0.0 0.6 5184 1704 ? Ss Jun30 0:00 /usr/sbin/sshd root 1991 0.0 0.3 3096 832 ? Ss Jun30 0:00 xinetd -stayalive -pidfile /var/run/xinetd.pid root 2009 0.0 1.2 8984 3100 ? Ss Jun30 0:00 sendmail: accepting connections smmsp 2017 0.0 1.0 6972 2592 ? Ss Jun30 0:00 sendmail: Queue runner@01:00:00 for /var/spool/clientmqueue root 2027 0.0 0.2 2432 568 ? Ss Jun30 0:00 gpm -m /dev/input/mice -t exps2 root 2036 0.0 0.4 6012 1156 ? Ss Jun30 0:00 crond xfs 2057 0.0 0.4 3656 1076 ? Ss Jun30 0:00 xfs -droppriv -daemon root 2074 0.0 0.2 2240 736 ? Ss Jun30 0:00 /usr/sbin/atd dbus 2083 0.0 0.4 3084 1248 ? Ss Jun30 0:00 dbus-daemon-1 --system root 2092 0.0 1.8 7284 4764 ? Ss Jun30 0:04 hald root 2099 0.0 0.1 2004 436 tty1 Ss+ Jun30 0:00 /sbin/mingetty tty1 root 2100 0.0 0.1 2256 440 tty2 Ss+ Jun30 0:00 /sbin/mingetty tty2 root 2101 0.0 0.1 3120 440 tty3 Ss+ Jun30 0:00 /sbin/mingetty tty3 root 2102 0.0 0.1 2152 440 tty4 Ss+ Jun30 0:00 /sbin/mingetty tty4 root 2103 0.0 0.1 1856 436 tty5 Ss+ Jun30 0:00 /sbin/mingetty tty5 root 2104 0.0 0.1 1496 440 tty6 Ss+ Jun30 0:00 /sbin/mingetty tty6起動スクリプト
# /sbin/chkconfig --list
haldaemon 0:off 1:off 2:off 3:on 4:on 5:on 6:off
mdmonitor 0:off 1:off 2:on 3:on 4:on 5:on 6:off
smartd 0:off 1:off 2:on 3:on 4:on 5:on 6:off
network 0:off 1:off 2:on 3:on 4:on 5:on 6:off
kudzu 0:off 1:off 2:off 3:on 4:on 5:on 6:off
diskdump 0:off 1:off 2:off 3:off 4:off 5:off 6:off
xfs 0:off 1:off 2:on 3:on 4:on 5:on 6:off
gpm 0:off 1:off 2:on 3:on 4:on 5:on 6:off
rhnsd 0:off 1:off 2:off 3:off 4:off 5:off 6:off
cpuspeed 0:off 1:on 2:on 3:on 4:on 5:on 6:off
rpcidmapd 0:off 1:off 2:off 3:on 4:on 5:on 6:off
netfs 0:off 1:off 2:off 3:on 4:on 5:on 6:off
nfslock 0:off 1:off 2:off 3:on 4:on 5:on 6:off
nscd 0:off 1:off 2:off 3:off 4:off 5:off 6:off
iptables 0:off 1:off 2:on 3:on 4:on 5:on 6:off
rawdevices 0:off 1:off 2:off 3:on 4:on 5:on 6:off
anacron 0:off 1:off 2:on 3:on 4:on 5:on 6:off
xinetd 0:off 1:off 2:off 3:on 4:on 5:on 6:off
sendmail 0:off 1:off 2:on 3:on 4:on 5:on 6:off
apmd 0:off 1:off 2:on 3:on 4:on 5:on 6:off
messagebus 0:off 1:off 2:off 3:on 4:on 5:on 6:off
readahead 0:off 1:off 2:off 3:off 4:off 5:on 6:off
autofs 0:off 1:off 2:off 3:on 4:on 5:on 6:off
irda 0:off 1:off 2:off 3:off 4:off 5:off 6:off
portmap 0:off 1:off 2:off 3:on 4:on 5:on 6:off
rpcgssd 0:off 1:off 2:off 3:on 4:on 5:on 6:off
pcmcia 0:off 1:off 2:on 3:on 4:on 5:on 6:off
atd 0:off 1:off 2:off 3:on 4:on 5:on 6:off
netdump 0:off 1:off 2:off 3:off 4:off 5:off 6:off
yum 0:off 1:off 2:off 3:off 4:off 5:off 6:off
mdmpd 0:off 1:off 2:off 3:off 4:off 5:off 6:off
ypbind 0:off 1:off 2:off 3:off 4:off 5:off 6:off
microcode_ctl 0:off 1:off 2:on 3:on 4:on 5:on 6:off
netplugd 0:off 1:off 2:off 3:off 4:off 5:off 6:off
auditd 0:off 1:off 2:off 3:off 4:off 5:off 6:off
winbind 0:off 1:off 2:off 3:off 4:off 5:off 6:off
syslog 0:off 1:off 2:on 3:on 4:on 5:on 6:off
sshd 0:off 1:off 2:on 3:on 4:on 5:on 6:off
smb 0:off 1:off 2:off 3:off 4:off 5:off 6:off
bluetooth 0:off 1:off 2:off 3:off 4:off 5:off 6:off
irqbalance 0:off 1:off 2:off 3:on 4:on 5:on 6:off
isdn 0:off 1:off 2:on 3:on 4:on 5:on 6:off
acpid 0:off 1:off 2:off 3:on 4:on 5:on 6:off
psacct 0:off 1:off 2:off 3:off 4:off 5:off 6:off
crond 0:off 1:off 2:on 3:on 4:on 5:on 6:off
cups 0:off 1:off 2:on 3:on 4:on 5:on 6:off
nfs 0:off 1:off 2:off 3:off 4:off 5:off 6:off
NetworkManager 0:off 1:off 2:off 3:off 4:off 5:off 6:off
saslauthd 0:off 1:off 2:off 3:off 4:off 5:off 6:off
readahead_early 0:off 1:off 2:off 3:off 4:off 5:on 6:off
xinetd ベースのサービス:
kshell: off
chargen-udp: off
echo-udp: off
daytime: off
klogin: off
krb5-telnet: off
cups-lpd: off
time-udp: off
time: off
echo: off
daytime-udp: off
chargen: off
rsync: off
eklogin: off
gssftp: off
ディスク状況
# df -k Filesystem 1K-ブロック 使用 使用可 使用% マウント位置 /dev/hde9 15686024 690196 14199008 5% / /dev/hde1 101086 8490 87377 9% /boot /dev/hde2 251985360 67920 239117252 1% /data none 127960 0 127960 0% /dev/shm /dev/hde5 5036284 42840 4737612 1% /home /dev/hde6 5036284 42924 4737528 1% /usr/local /dev/hde7 5036284 56400 4724052 2% /var /dev/hde3 5036316 675988 4104496 15% /work # cat /etc/fstab # This file is edited by fstab-sync - see 'man fstab-sync' for details LABEL=/ / ext3 defaults 1 1 LABEL=/boot /boot ext3 defaults 1 2 LABEL=/data /data ext3 defaults 1 2 none /dev/pts devpts gid=5,mode=620 0 0 none /dev/shm tmpfs defaults 0 0 LABEL=/home /home ext3 defaults 1 2 none /proc proc defaults 0 0 none /sys sysfs defaults 0 0 LABEL=/usr/local /usr/local ext3 defaults 1 2 LABEL=/var /var ext3 defaults 1 2 LABEL=/work /work ext3 defaults 1 2 /dev/hde8 swap swap defaults 0 0 /dev/hdc /media/cdrom auto pamconsole,exec,noauto,managed 0 0 /dev/fd0 /media/floppy auto pamconsole,exec,noauto,managed 0 0インストールアプリケーション
# rpm -qa | sort MAKEDEV-3.15.2-3 NetworkManager-0.3.1-3 SysVinit-2.85-34.3 acl-2.2.23-5 acpid-1.0.3-2 anacron-2.3-32 apmd-3.0.2-24 ash-0.3.8-20 aspell-0.50.5-3.fc3 aspell-en-0.51-11 at-3.1.8-78_EL4 atk-1.8.0-2 attr-2.4.16-3 audit-1.0.12-1.EL4 audit-libs-1.0.12-1.EL4 authconfig-4.6.10-rhel4.1 autofs-4.1.3-169 basesystem-8.0-4 bash-3.0-19.2 bc-1.06-17.1 beecrypt-3.1.0-6 bind-libs-9.2.4-2 bind-utils-9.2.4-2 binutils-2.15.92.0.2-18 bluez-bluefw-1.0-6 bluez-hcidump-1.11-1 bluez-libs-2.10-2 bluez-utils-2.10-2.1 bzip2-1.0.2-13.EL4.3 bzip2-libs-1.0.2-13.EL4.3 centos-release-4-3.2 centos-yumconf-4-4.5 checkpolicy-1.17.5-1 chkconfig-1.3.13.3-2 chkfontpath-1.10.0-2 comps-4.3CENTOS-1.20060527 coreutils-5.2.1-31.2 cpio-2.5-8.RHEL4 cracklib-2.7-29 cracklib-dicts-2.7-29 crash-4.0-2.15 crontabs-1.10-7 cryptsetup-0.1-4 cups-1.1.22-0.rc1.9.10 cups-libs-1.1.22-0.rc1.9.10 cyrus-sasl-2.1.19-5.EL4 cyrus-sasl-md5-2.1.19-5.EL4 cyrus-sasl-plain-2.1.19-5.EL4 db4-4.2.52-7.1 dbus-0.22-12.EL.5 dbus-glib-0.22-12.EL.5 desktop-file-utils-0.9-2 device-mapper-1.02.02-3.0.RHEL4 dhclient-3.0.1-54.EL4 dhcpv6_client-0.10-14_EL4 diffutils-2.8.1-12 diskdumputils-1.2.8-2 dmraid-1.0.0.rc8-1_RHEL4_U2 dos2unix-3.1-21 dosfstools-2.8-15 dump-0.4b39-3.EL4.2 e2fsprogs-1.35-12.3.EL4 ed-0.2-36 eject-2.0.13-11 elfutils-0.97-5 elfutils-libelf-0.97-5 ethtool-1.8-4 expat-1.95.7-4 fbset-2.1-17 file-4.10-2.EL4.3 filesystem-2.3.0-1 findutils-4.1.20-7 finger-0.17-26 fontconfig-2.2.3-7.centos4 freetype-2.1.9-1 ftp-0.17-22 gawk-3.1.3-10.1 gdbm-1.8.0-24 gettext-0.14.1-13 glib-1.2.10-15 glib2-2.4.7-1 glibc-2.3.4-2.19 glibc-common-2.3.4-2.19 gmp-4.1.4-3 gnupg-1.2.6-3 gpm-1.20.1-66 grep-2.5.1-31 groff-1.18.1.1-3 grub-0.95-3.5 gtk2-2.4.13-16 gzip-1.3.3-15.rhel4 hal-0.4.2-3.EL4 hdparm-5.7-2 hesiod-3.0.2-30 hotplug-2004_04_01-7.6 htmlview-3.0.0-8 hwdata-0.146.18.EL-1 indexhtml-4-2.centos4 info-4.7-5 initscripts-7.93.24.EL-1.1.centos4 iproute-2.6.9-3 ipsec-tools-0.3.3-6.rhel4.1 iptables-1.2.11-3.1.RHEL4 iptstate-1.3-4 iputils-20020927-18.EL4.2 irda-utils-0.9.16-3 isdn4k-utils-3.2-18.p1.1 jpackage-utils-1.6.0-2jpp_3rh jwhois-3.2.2-6.EL4.1 kbd-1.12-2 kernel-2.6.9-34.EL kernel-utils-2.4-13.1.80 krb5-libs-1.3.4-27 krb5-workstation-1.3.4-27 kudzu-1.1.95.15-1 less-382-4 lftp-3.0.6-3 lha-1.14i-17 libacl-2.2.23-5 libattr-2.4.16-3 libcap-1.10-20 libgcc-3.4.5-2 libgcrypt-1.2.0-3 libglade2-2.4.0-5 libgpg-error-1.0-1 libjpeg-6b-33 libpcap-0.8.3-10.RHEL4 libpng-1.2.7-1.el4.2 libselinux-1.19.1-7 libsepol-1.1.1-2 libstdc++-3.4.5-2 libtermcap-2.0.8-39 libtiff-3.6.1-8 libusb-0.1.8-3 libuser-0.52.5-1.el4.1 libwvstreams-3.75.0-2 libxml2-2.6.16-6 libxml2-python-2.6.16-6 libxslt-1.1.11-1 lockdev-1.0.1-6.1 logrotate-3.7.1-5.RHEL4 logwatch-5.2.2-1.EL4.1 lrzsz-0.12.20-19 lsof-4.72-1.1 lvm2-2.02.01-1.3.RHEL4 m4-1.4.1-16 mailcap-2.1.17-1 mailx-8.1.1-33 make-3.80-5 man-1.5o1-9 man-pages-1.67-7.EL4 mdadm-1.6.0-3 mgetty-1.1.31-2 mingetty-1.07-3 minicom-2.00.0-19 mkbootdisk-1.5.2-1 mkinitrd-4.2.1.6-1 mktemp-1.5-20 module-init-tools-3.1-0.pre5.3.2 mt-st-0.8-1 mtools-3.9.9-9 mtr-0.54-10 nano-1.2.4-1 nc-1.10-22 ncurses-5.4-13 net-tools-1.60-37.EL4.6 netconfig-0.8.21-1.1 netdump-0.7.14-4 newt-0.51.6-5 nfs-utils-1.0.6-65.EL4 nscd-2.3.4-2.19 nss_db-2.2-29 nss_ldap-226-10 ntsysv-1.3.13.3-2 numactl-0.6.4-1.25 openldap-2.2.13-4 openssh-3.9p1-8.RHEL4.12 openssh-clients-3.9p1-8.RHEL4.12 openssh-server-3.9p1-8.RHEL4.12 openssl-0.9.7a-43.8 pam-0.77-66.14 pam_ccreds-1-3 pam_krb5-2.1.8-1 pam_passwdqc-0.7.5-2 pam_smb-1.1.7-5 pango-1.6.0-9 parted-1.6.19-1.EL passwd-0.68-10.1 patch-2.5.4-20 pax-3.0-9 pciutils-2.1.99.test8-3.1 pcmcia-cs-3.2.7-3.5 pcre-4.5-3.2.RHEL4 pdksh-5.2.14-30.3 perl-5.8.5-24.RHEL4 perl-Filter-1.30-6 pinfo-0.6.8-7 policycoreutils-1.18.1-4.9 popt-1.9.1-13_nonptl portmap-4.0-63 ppp-2.4.2-6.4.RHEL4 prelink-0.3.3-0.EL4 procmail-3.22-14 procps-3.2.3-8.3 psacct-6.3.2-38.rhel4 psmisc-21.4-4 pyOpenSSL-0.6-1.p23 pygtk2-2.4.0-1 pygtk2-libglade-2.4.0-1 python-2.3.4-14.2 python-elementtree-1.2.6-4 python-sqlite-1.1.6-1 python-urlgrabber-2.9.6-2 pyxf86config-0.3.19-1 quota-3.12-5 rdate-1.4-2 rdist-6.1.5-38.40.1 readline-4.3-13 redhat-logos-1.1.26-1.centos4.1 redhat-lsb-3.0-8.EL redhat-menus-3.7.1-2 rhnlib-1.8.2-1.p23.1 rhpl-0.148.3-1 rmt-0.4b39-3.EL4.2 rootfiles-8-1 rp-pppoe-3.5-22 rpm-4.3.3-13_nonptl rpm-libs-4.3.3-13_nonptl rpm-python-4.3.3-13_nonptl rpmdb-CentOS-4.3-0.20060527 rsh-0.17-25.3 rsync-2.6.3-1 samba-3.0.10-1.4E.6 samba-client-3.0.10-1.4E.6 samba-common-3.0.10-1.4E.6 schedutils-1.4.0-2 sed-4.1.2-4 selinux-policy-targeted-1.17.30-2.126 sendmail-8.13.1-3.RHEL4.3 setarch-1.6-1 setools-1.5.1-5 setserial-2.17-17 setup-2.5.37-1.3 setuptool-1.17-2 shadow-utils-4.0.3-60.RHEL4 slang-1.4.9-8 slocate-2.7-13.el4.6 specspo-9.0.92-1.3 sqlite-3.2.2-1 statserial-1.1-35 stunnel-4.05-3 sudo-1.6.7p5-30.1.3 symlinks-1.2-22 sysklogd-1.4.1-26_EL syslinux-2.11-1 sysreport-1.3.15-5 system-config-mouse-1.2.9-1 system-config-network-tui-1.3.22.0.EL.4.2-1 system-config-samba-1.2.21-1 system-config-securitylevel-tui-1.4.19.2-1 talk-0.17-26 tar-1.14-9.RHEL4 tcp_wrappers-7.6-37.2 tcpdump-3.8.2-10.RHEL4 tcsh-6.13-9 telnet-0.17-31.EL4.3 termcap-5.4-3 time-1.7-25 tmpwatch-2.9.1-1 traceroute-1.4a12-24 ttfonts-ja-1.2-36.EL4.0 ttmkfdir-3.0.9-14.1.EL tzdata-2006a-2.EL4 udev-039-10.12.EL4 unix2dos-2.2-24.1 unzip-5.51-7 up2date-4.4.67-4.centos4 usbutils-0.11-6.1 usermode-1.74-1 utempter-0.5.5-5 util-linux-2.12a-16.EL4.16 vconfig-1.8-4 vim-minimal-6.3.046-0.40E.7 vixie-cron-4.1-36.EL4 wget-1.10.2-0.40E which-2.16-4 wireless-tools-27-0.pre25.4.EL4 words-3.0-3 wvdial-1.54.0-3 xinetd-2.3.13-4.4E.1 xmlsec1-1.2.6-3 xmlsec1-openssl-1.2.6-3 xorg-x11-Mesa-libGL-6.8.2-1.EL.13.25 xorg-x11-font-utils-6.8.2-1.EL.13.25 xorg-x11-libs-6.8.2-1.EL.13.25 xorg-x11-xfs-6.8.2-1.EL.13.25 yp-tools-2.8-7 ypbind-1.17.2-8 yum-2.4.2-2.centos4 zip-2.3-27 zlib-1.2.1.2-1.2
