http açıkmı yoksa kapalımı buna

httpd status

komudu ile bakalım..

[root@tr21 ~]# httpd status

Not Found

The requested URL /server-status was not found on this server.

Additionally, a 404 Not Found error was encountered while trying to use an
ErrorDocument to handle the request.
__________________________________________________ _______________


Apache/1.3.37 Server at tr21.fxxx.net Port 80
[root@tr21 ~]# killall httpd
[root@tr21 ~]# httpd status

Looking up localhost
Making HTTP connection to localhost
Sending HTTP request.
HTTP request sent; waiting for response.
Retrying as HTTP0 request.
Looking up localhost
Making HTTP connection to localhost
Alert!: Unable to connect to remote host.

lynx: Can't access startfile Apache Status


ilk yaptıgımda 404 hatası verdi yani httpd çalışıyor sonrasında ise killall httpd yazdım ve tekrar httpd status yazdım ve çalışmıyor...

bu kodu kullanmak


şu şekilde kısalttım uygunmudur..

Alıntı
[root@tr21 ~]# httpd status | grep Port
Apache/1.3.37 Server at tr21.xxxxxx.net Port 80
[root@tr21 ~]# killall httpd
[root@tr21 ~]# httpd status | grep Port

Looking up localhost
Making HTTP connection to localhost
Alert!: Unable to connect to remote host.

lynx: Can't access startfile Apache Status