安装的文档:
http://httpd.apache.org/docs/2.2/install.html
./configure--prefix=/sw/pkg/apache
用--prefix指定安装的路径
Q:apache2启动:(13)Permissiondenied:make_sock:couldnotbindtoaddress0.0.0.0:80
sudo./apachectl-kstart。原因是端口号小于1024的应该用root启动
Q:apache2:Couldnotreliablydeterminetheserver'sfullyqualifieddomainname,using127.0.1.1forServerName
A:这是一个warning,出现在apache2启动或重起时。主要是因为在配置apache2时,没有指定相应的主机名,即ServerName。修改/etc/apache2/httpd.conf,在最前加入ServerNamelocalhost:80即可。