httpdの起動listen
OS起動時にhttpdを自動起動するようにしていないので、こうやって手動起動します。
[root@linux38 etc]# cd init.d/ [root@linux38 init.d]# ./httpd start httpd を起動中: [ OK ]
起動の確認
[root@linux38 init.d]# netstat -a|more Active Internet connections (servers and established) Proto Recv-Q Send-Q Local Address Foreign Address State tcp 0 0 *:39680 *:* LISTEN tcp 0 0 *:rsync *:* LISTEN tcp 0 0 *:sunrpc *:* LISTEN tcp 0 0 localhost.localdomain:ipp *:* LISTEN tcp 0 0 *:http *:* LISTEN tcp 0 0 *:ssh *:* LISTEN tcp 0 0 *:https *:* LISTEN tcp 0 52 linux38:ssh ::ffff:192.16:ms-sna-server ESTABLISHED udp 0 0 *:filenet-tms *:*
※ここはmoreじゃなくて、grepを使う場面だと思います。ただ、起動したてていろいろ見たかったのでmoreで見ました。
この行があればOK。
tcp 0 0 *:http *:* LISTEN