linux 安装apache

linux 安装apache

 1安装

#tar zxvf httpd-2.0.44.tar.gz

#cd/usr/local/src/httpd-2.0.44

#./configure --prefix=/usr/local/servers/apache2

#make

#make install

简单配置:

#cd/usr/local/servers/apache2/conf

#vi httpd.conf

启动Apache:

#cd/usr/local/servers/apache2/bin

#./apachectl start

http://localhost

2

检查

./apachectl configtest

./apachectl --configtest

3

    1)检查Apache进程

可以通过以下命令检查Apache进程的状态。

ps -ef | grep httpd

2)检查Apache页面

http://localhost/

相关推荐