Ubuntu下 Apache安装

安装的文档:
http://httpd.apache.org/docs/2.2/install.html

./configure --prefix=/sw/pkg/apache
用--prefix指定安装的路径



Q: apache2 启动: (13)Permission denied: make_sock: could not bind to address 0.0.0.0:80
sudo ./apachectl -k start。 原因是端口号小于1024的应该用root启动


Q: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName

A:这是一个 warning,出现在apache2启动或重起时。主要是因为在配置 apache2 时,没有指定相应的主机名,即 ServerName。修改 /etc/apache2/httpd.conf , 在最前加入 ServerName localhost:80 即可。

猜你喜欢

转载自sesame-test.iteye.com/blog/1118619
今日推荐