苏泽湛 发表于 2018-12-21 10:18:24

LAMP 啟動 WWW 服務與測試 PHP 模組

# 先看看 port 有沒有啟動啊!  
# netstat -tulnp | grep 'httpd'
  
Proto Recv-Q Send-Q Local AddressForeign Address StatePID/Program name
  
tcp      0      0 :::80          :::*            LISTEN 2493/httpd
  
# 再來看看登錄檔的資訊記錄了什麼!這個確實建議瞧一瞧!
  
# tail /var/log/httpd/error_log
  
SELinux policy enabled; httpd running as context unconfined_u:system_r:httpd_t:s0
  
suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
  
Digest: generating secret for digest authentication ...
  
Digest: done
  
Apache/2.2.15 (Unix) DAV/2 PHP/5.3.2 configured -- resuming normal operations
  
# 第一行在告知有使用 SELinux(強調一下),最後一行代表正常啟動了!
  



页: [1]
查看完整版本: LAMP 啟動 WWW 服務與測試 PHP 模組