yum安装apache后更改worker模式

进入linux命令模式,输入

#yum install httpd                    //安装apache

#vi  /etc/sysconfig/httpd            //修改文件,打开worker模式

 

将#号去掉

重启apache,命令如下

#service httpd restart
报错如下:
[root@localhost ~]# service httpd restart
Stopping httpd:                                            [  OK  ]
Starting httpd: httpd.worker: Could not reliably determine the server's fully qualified domain name, using localhost.localdomain for ServerName

意思是说不能确认服务器完全确认域名

修改方式如下:

httpd.conf为apache的主配置文件

#vi /etc/httpd/conf/httpd.conf

找到ServerName那行

添加此行,重启即可。

 

posted on 2014-05-22 12:12  天使2013  阅读(565)  评论(0编辑  收藏  举报

导航