centos 部署 apache web 服务
sudo yum -y install httpd启动/停止/重新启动/状态
service httpd start
service httpd stop
service httpd restart
service httpd status
pstree | grep httpd //验证服务是否启动,
/etc/httpd/conf/httpd.conf
ServerRoot "/etc/httpd"
DocumentRoot "/var/www/html" ----把文件上传到这个目录
页:
[1]