・例として、ipp(TCP631ポート)を閉じる手順を以下に記述します。
(1)接続待ち(listen)状態のポートを確認する。
(2)サービス名を確認する。#netstat -l
#netstat -ln(サービス名ではなくポート番号表示)
#lsof -i | grep ipp
cupsd 2660 root 3u IPv4 9222 TCP localhost.localdomain:ipp (LISTEN)
cupsd 2660 root 4u IPv6 9223 TCP localhost.localdomain:ipp (LISTEN)
cupsd 2660 root 6u IPv4 9226 UDP *:ipp
#/etc/init.d/cupsd stop
cups を停止中: [ OK ]
#chkconfig --list | grep cups
cups 0:off 1:off 2:on 3:on 4:on 5:on 6:off
# chkconfig cups off
# chkconfig --list | grep cups
cups 0:off 1:off 2:off 3:off 4:off 5:off 6:off
#netstat -l
0 件のコメント:
コメントを投稿