安裝xampp後,出現「Apache 2 Test Page powered by CentOS「

由於是在本地測試,因此沒有去考慮爲何會這樣,考慮太多的緣由。只要能運行就行。apache

因此網絡搜索了一番。網絡

最後,解決辦法是: 測試

1, 找到apachectl。 那麼就在命令行敲find / -name apachectl  ,搜索後,個人環境,想要的結果是/opt/lampp/bin/apachectl命令行

2, 在命令行敲打 cp -y /opt/lampp/bin/apachectl   /etc/init.d/httpd      後輸入y確認rest

3,/etc/init.d/httpd restartit

相關文章
相關標籤/搜索