centos7安装apache

凤凰学院整理发布

2020-06-08

yum install -y httpd httpd-devel
systemctl start httpd
systemctl restart httpd
systemctl enable httpd //设为开机启动
systemctl status httpd //查看Apache服务状态
firewall-cmd --permanent --zone=public --add-port=80/tcp //防火墙开放80端口
firewall-cmd --reload //重新加载防火墙

配置HTTPS
yum install mod_ssl openssl
yum install openssl