centos 安装 apache2(httpd)

#root

yum install httpd


cp /etc/httpd/conf/httpd.conf BAK

vi /etc/httpd/conf/httpd.conf

#/ServerName ,find and change

ServerName localhost:80

#wq,save


service httpd restart


#ok

你可能感兴趣的:(centos 安装 apache2(httpd))