java 发表于 2017-11-16 10:45:20

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]
查看完整版本: centos 部署 apache web 服务