linux常用命令

1.linux启动APACHE服务器

cd /usr/local/apache2/bin 进入APACHE安装目录下的BIN文件夹
./apachectl start 启动APACHE服务

 

----------------------------------

启动Apache的时候提示:“Could not determine the server‘s fully qualified domain name, using 127.0.0.1 for Serve

这个说明Apache服务器不能确定你的主机名。修改Apache的配置文件,查找ServerName关键字,确定它不是处于注释状态并且形式如下: ServerName localhost 或者: ServerName www.foo.com

解决方案:

进入apache的安装目录

用记事本打开httpd.conf

将里面的#ServerName localhost:8080注释去掉即可。

再执行httpd

然后可以通过浏览器访问http://localhost:8080,如果页面显示“It works!”,即表示apache已安装并启动成功。

 

----------------------------------

 

posted @ 2010-03-07 19:23  dodo-yufan  阅读(295)  评论(0编辑  收藏  举报