linux下安裝apache

來源:互聯網
上載者:User

標籤:http   使用   ar   檔案   art   sp   linux   on   c   

1.apache 下載: http://archive.apache.org/dist/httpd/    

apache_1.3.33.tar.gz     

2. 進入linux 

  2.1: tar -zxvf apache_1.3.33.tar.gz 解壓

     2.2:./configure --prefix=/usr/local/apache --enable-module=so 安裝到指定的目錄

  2.3:make install 開始安裝,直到提示安裝成功

     2.4:/usr/local/apache/bin/apachectl start  啟動服務

 

 

附:

php編譯後apache無法啟動,APACHE伺服器的httpd怎麼啟動?
通常rpm包安裝後的啟動方法為
/etc/rc.d/init.d/XXX start|stop|restart
和
service XXX start|stop|restart
有的軟體編譯後,上述方法無法使用.提示:unrecognized service
這是找不到開機檔案導致的.
啟動方法如下:以apache httpd-2.2.4.tar.gz 為例:
/usr/local/apache/bin/apachectl start
如果你不知道apachectl的位置.可以使用find / -name apachectl 搜尋

linux下安裝apache

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在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.