通常進入httpd目錄後,會看到apache
[root@centos www]# cd /etc/httpd
[root@centos httpd]# ls
conf conf.d logs modules run
其中的子目錄相似win的快捷方式,是假的,因此要輸入llcentos
[root@centos httpd]# ll
total 8
drwxr-xr-x. 2 root root 4096 Mar 29 13:59 conf
drwxr-xr-x. 2 root root 4096 Mar 29 13:59 conf.d
lrwxrwxrwx. 1 root root 19 Mar 29 13:59 logs -> ../../var/log/httpd
lrwxrwxrwx. 1 root root 29 Mar 29 13:59 modules -> ../../usr/lib64/httpd/modules
lrwxrwxrwx. 1 root root 19 Mar 29 13:59 run -> ../../var/run/httpd
上面箭頭後的是真實地址ssh
通常先用tcp
[root@centos conf]# netstat -apn | grep 80
tcp 0 0 :::80 :::* LISTEN 1486/httpd
unix 2 [ ] DGRAM 13080 1440/sshd .net
查找apachef進程的端口號綁定狀況unix
若是netstat命令不能用,就要用yum search netstar查找而後安裝進程