linux 安装apache(普通安装)
1、下载apache
从windows下载
http://httpd.apache.org/download.cgix下载linux版本,下载后上传到/home/目录下,本人下载的是httpd-2.2.21.tar.gz
直接在linux中通过命令下载
cd/home
#wgethttp://www.apache.org/dist/httpd/httpd-2.2.21.tar.gz
2、解压缩
cd/home
tarzxvfhttpd-2.2.21.tar.gz
3配置.
#cd/home/httpd-2.2.21
#./configure--prefix=/usr/local/apache--enable-so
表示Apache将安装在/usr/local/apache目录下
4编译与安装
#make
#makeinstall
5启动
#cd/usr/local/apache/bin
启动
#./apachectlstart
停止
#./apachectlstop
2.2及以上版本可能需要单独安装apr和apr-util
参见http://evan-shen.iteye.com/blog/1860826
相关推荐
Kafka 2020-09-18
Wepe0 2020-10-30
杜倩 2020-10-29
windle 2020-10-29
minerd 2020-10-28
mengzuchao 2020-10-22
Junzizhiai 2020-10-10
bxqybxqy 2020-09-30
风之沙城 2020-09-24
kingszelda 2020-09-22
大唐帝国前营 2020-08-18
yixu0 2020-08-17
TangCuYu 2020-08-15
xiaoboliu00 2020-08-15
songshijiazuaa 2020-08-15
xclxcl 2020-08-03
zmzmmf 2020-08-03
newfarhui 2020-08-03
likesyour 2020-08-01