如何在阿里云服务器centos 7上安装Apache

2025-04-07 09:24:47
推荐回答(1个)
回答1:

sed -i '1a nameserver 8.8.8.8' /etc/resolv.conf
yum makecache fast
yum check-update
yum -y install httpd httpd-devel gcc gcc-c++ libstdc++-devel autoconf automake libtool
systemctl start httpd.service
systemctl enable httpd.service
firewall-cmd --permanent --add-service http
systemctl restart firewalld.service