码迷,mamicode.com
首页 > 其他好文 > 详细

Ubuntu搭建Http服务器

时间:2014-10-08 17:51:55      阅读:284      评论:0      收藏:0      [点我收藏+]

标签:blog   http   ar   java   文件   sp   art   c   on   

一句命令:

sudo apt-get install apache2

产生的启动和停止文件是:/etc/init.d/apache2

  启动:sudo apache2ctl -k start

  停止:sudo apache2ctl -k stop

  重新启动:sudo apache2ctl -k restart

  配置文件保存在:/etc/apache2

Reference


 

下载:

httpd

Apr&AprUtil

PCRE

解压&Rename

cd ~/Downloads/
ls

sudo tar -zxvf httpd-2.4.10.tar.gz -C /usr/local

sudo tar -zxvf apr-1.5.1.tar.gz -C /usr/local/httpd-2.4.10/srclib/
sudo tar -zxvf apr-util-1.5.4.tar.gz -C /usr/local/httpd-2.4.10/srclib/
sudo tar -zxvf pcre-8.36.tar.gz -C /usr/local/

sudo apt-get install build-essential

cd /usr/local/pcre/

sudo ./configure --prefix=/usr/local/pcre

sudo make

sudo make install

 

sudo ./configure --prefix=/usr/local/http-2.4.10
sudo make

sudo make install

sudo /usr/local/http-2.4.10/bin/apachectl start

sudo /usr/local/http-2.4.10/bin/apachectl stop

Ubuntu搭建Http服务器

标签:blog   http   ar   java   文件   sp   art   c   on   

原文地址:http://www.cnblogs.com/manhua/p/4011063.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!