zhuan: ubuntu 安裝 apache2

來源:互聯網
上載者:User

標籤:

安裝 用  sudo apt-get install apache2

 sudo /etc/init.d/apache2 restart

如果發現錯誤:

以下from:http://cache.baiducontent.com/c?m=9f65cb4a8c8507ed4fece7631046893b4c4380143fd3d1027fa3c215cc79041a0735b2e5703517709596207a51f11409f7b17021715871aa98cc894adbbe912a28882537721d874311d11aa4ca4120cb268d4eacf259b1b5a36884afa2d1dd5354c044040a97f1f84d0065992da3456bb4b19838154811cafa3116e8590678c2641ee050f9916e334196f6ac1c1b9d7183314fdcb835c16845f344e440407813b74cc04e0b7127e03e66a8047953d2fc5d966b6e4052e20fede78aa1eb39cf9bb96fc3ae90f879&p=9760c64ad49911a058eb9f2a135292&newp=c6738b0d97934eaf5ee6c92d0214cd231610db2151d2db48&user=baidu&fm=sc&query=AH00558%3A+apache2%3A+Could+not+reliably+determine+the+server%27s+fully+qualified+domain+name%2C+using+127.0&qid=b109711c0009ed46&p1=2

錯誤資訊:
Could reliably determine the server‘s fully qualified domain name, using 127.0.1.1 for ServerName

解決方案:
sudo gedit /etc/apache2/apache2.conf

在檔案後面加上:
#Server Name
ServerName 127.0.0.1

zhuan: ubuntu 安裝 apache2

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.