直接运行命令
#yum -y install httpd;
然后
#setup
设计为随系统启动
#service httpd start
启动服务
注意:在 CentOS 中 Apache 的默认根目录是 /var/www/html,配置文件 /etc/httpd/conf/httpd.conf。其他配置存储在 /etc/httpd/conf.d/ 目录。
直接运行命令
#yum -y install httpd;
然后
#setup
设计为随系统启动
#service httpd start
启动服务
注意:在 CentOS 中 Apache 的默认根目录是 /var/www/html,配置文件 /etc/httpd/conf/httpd.conf。其他配置存储在 /etc/httpd/conf.d/ 目录。