进入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那行
添加此行,重启即可。
yum安装apache后更改worker模式,布布扣,bubuko.com
时间: 2024-08-08 19:34:24