1. 安装Apache2
# apt-get install apache2
或源码安装
http://archive.apache.org/dist/httpd下载
# tar zxvf httpd-2.4.9.tar.gz
# cd httpd-2.4.9
# ./configure --prefix=/usr/local/apache2
# make && make install
Apache2启动时报“apache2: Could not reliably determine the server's fully qualifieddomain name”
# vi/etc/apache2/apache2.conf
添加: ServerName localhost<