[转]Linux下Apache的编译与安装

http://www.kreny.com/docs/apache2.0/install.html

 

Download $ lynx http://www.apache.org/dist/httpd/httpd-2_0_NN.tar.gz
Extract $ gzip -d httpd-2_0_NN.tar.gz
$ tar xvf httpd-2_0_NN.tar
Configure $ ./configure --prefix=PREFIX
Compile $ make
Install $ make install
Customize $ vi PREFIX/conf/httpd.conf
Test PREFIX/bin/apachectl start

其中NN必须用当前副版本号替代;PREFIX是服务器被装到文件系统中的路径名,如果没有指定PREFIX,默认会被装到/usr/local/apache2

 

启动和关闭

service httpd status

service httpd start

service httpd stop

 

你可能感兴趣的:(apache,html,linux)