サービス設定2008/08/16 |
デフォルトで有効になっている不要なサービスを停止しておきます。 |
|
[1] | サービス一覧チェック |
# svcs # 有効サービス一覧出力 STATE STIME FMRI legacy_run 17:39:05 lrc:/etc/rcS_d/S50sk98sol legacy_run 17:39:12 lrc:/etc/rc2_d/S10lu legacy_run 17:39:12 lrc:/etc/rc2_d/S20sysetup legacy_run 17:39:12 lrc:/etc/rc2_d/S40llc2 legacy_run 17:39:12 lrc:/etc/rc2_d/S72autoinstall legacy_run 17:39:13 lrc:/etc/rc2_d/S73cachefs_daemon legacy_run 17:39:13 lrc:/etc/rc2_d/S81dodatadm_udaplt legacy_run 17:39:13 lrc:/etc/rc2_d/S89PRESERVE legacy_run 17:39:13 lrc:/etc/rc2_d/S90loc_ja_cssd legacy_run 17:39:13 lrc:/etc/rc2_d/S98deallocate legacy_run 17:39:14 lrc:/etc/rc3_d/S16boot_server legacy_run 17:39:14 lrc:/etc/rc3_d/S50apache legacy_run 17:39:14 lrc:/etc/rc3_d/S52imq legacy_run 17:39:14 lrc:/etc/rc3_d/S84appserv legacy_run 17:39:14 lrc:/etc/rc3_d/S90samba online 17:38:55 svc:/system/svc/restarter:default online 17:38:55 svc:/network/pfil:default online 17:38:55 svc:/system/installupdates:default online 17:38:55 svc:/network/loopback:default online 17:38:57 svc:/system/filesystem/root:default online 17:38:57 svc:/system/scheduler:default online 17:38:58 svc:/network/physical:default online 17:38:58 svc:/milestone/network:default online 17:38:58 svc:/system/identity:node online 17:38:58 svc:/system/boot-archive:default online 17:38:59 svc:/application/management/sma:default online 17:39:00 svc:/system/filesystem/usr:default online 17:39:01 svc:/platform/i86pc/eeprom:default online 17:39:01 svc:/application/management/seaport:default online 17:39:01 svc:/system/keymap:default online 17:39:02 svc:/application/management/snmpdx:default online 17:39:02 svc:/system/device/local:default online 17:39:02 svc:/system/filesystem/minimal:default online 17:39:03 svc:/system/identity:domain online 17:39:03 svc:/system/name-service-cache:default online 17:39:03 svc:/system/rmtmpfiles:default online 17:39:03 svc:/system/sysevent:default online 17:39:03 svc:/system/picl:default online 17:39:03 svc:/system/device/fc-fabric:default online 17:39:03 svc:/milestone/devices:default online 17:39:03 svc:/system/coreadm:default online 17:39:03 svc:/application/print/cleanup:default online 17:39:04 svc:/system/power:default online 17:39:04 svc:/system/cryptosvc:default online 17:39:05 svc:/network/initial:default online 17:39:05 svc:/system/manifest-import:default online 17:39:05 svc:/network/service:default online 17:39:05 svc:/network/dns/client:default online 17:39:05 svc:/milestone/name-services:default online 17:39:05 svc:/milestone/single-user:default online 17:39:06 svc:/system/filesystem/local:default online 17:39:06 svc:/system/cron:default online 17:39:06 svc:/system/sysidtool:net online 17:39:07 svc:/network/rpc/bind:default online 17:39:07 svc:/application/opengl/ogl-select:default online 17:39:07 svc:/system/sysidtool:system online 17:39:07 svc:/network/nfs/cbd:default online 17:39:07 svc:/network/nfs/status:default online 17:39:07 svc:/network/nfs/mapid:default online 17:39:08 svc:/network/nfs/nlockmgr:default online 17:39:08 svc:/platform/i86pc/kdmconfig:default online 17:39:08 svc:/milestone/sysconfig:default online 17:39:08 svc:/system/sac:default online 17:39:08 svc:/system/utmp:default online 17:39:08 svc:/system/console-login:default online 17:39:09 svc:/network/inetd:default online 17:39:09 svc:/application/management/wbem:default online 17:39:10 svc:/application/management/dmi:default online 17:39:11 svc:/application/font/fc-cache:default online 17:39:11 svc:/network/rpc/gss:default online 17:39:11 svc:/network/rpc/meta:default online 17:39:11 svc:/network/rpc/cde-calendar-manager:default online 17:39:11 svc:/network/rpc/cde-ttdbserver:tcp online 17:39:11 svc:/network/rpc/mdcomm:default online 17:39:11 svc:/network/rpc/metamed:default online 17:39:11 svc:/network/rpc/metamh:default online 17:39:11 svc:/network/nfs/client:default online 17:39:11 svc:/network/rpc/rstat:default online 17:39:11 svc:/network/rpc/rusers:default online 17:39:11 svc:/network/cde-spc:default online 17:39:11 svc:/network/nfs/rquota:default online 17:39:11 svc:/network/security/ktkt_warn:default online 17:39:11 svc:/network/telnet:default online 17:39:11 svc:/network/ftp:default online 17:39:11 svc:/network/finger:default online 17:39:11 svc:/system/filesystem/autofs:default online 17:39:11 svc:/network/login:rlogin online 17:39:11 svc:/network/shell:default online 17:39:11 svc:/application/x11/xfs:default online 17:39:11 svc:/application/font/stfsloader:default online 17:39:11 svc:/network/rpc/smserver:default online 17:39:11 svc:/network/rpc-100235_1/rpc_ticotsord:default online 17:39:12 svc:/system/system-log:default online 17:39:12 svc:/system/dumpadm:default online 17:39:12 svc:/network/smtp:sendmail online 17:39:13 svc:/network/ssh:default online 17:39:13 svc:/milestone/multi-user:default online 17:39:14 svc:/system/fmd:default online 17:39:14 svc:/milestone/multi-user-server:default online 17:39:15 svc:/system/zones:default online 17:39:16 svc:/system/basicreg:default online 17:39:19 svc:/application/cde-printinfo:default online 17:39:19 svc:/system/filesystem/volfs:default offline 17:39:11 svc:/application/print/rfc1179:default
|
[2] | レガシー起動スクリプト経由のサービスでいらなそうなものを、頭文字をS以外にかえて システム起動時に読まないようにします。 |
# cd /etc/rc2.d # mv S40llc2 _S40llc2 # mv S72autoinstall _S72autoinstall # mv S90loc.ja.cssd _S90loc.ja.cssd # cd ../rc3.d # mv S16boot.server _S16boot.server # mv S50apache _S50apache # mv S84appserv _S84appserv # mv S90samba _S90samba
|
[3] | SMF経由のサービスでいらなそうなものを無効にします。 |
# svcadm disable svc:/system/filesystem/autofs:default # svcadm disable svc:/system/name-service-cache:default # svcadm disable svc:/system/power:default # svcadm disable svc:/network/rpc/rstat:default # svcadm disable svc:/network/rpc/rusers:default # svcadm disable svc:/network/telnet:default # svcadm disable svc:/network/ftp:default # svcadm disable svc:/network/finger:default # svcadm disable svc:/network/login:rlogin # svcadm disable svc:/network/shell:default # svcadm disable svc:/network/smtp:sendmail # svcadm disable svc:/application/x11/xfs:default # svcadm disable svc:/application/print/cleanup:default
|
[4] | システムを再起動します。 |
# init 6
|
Sponsored Link |