Apache

269 阅读1分钟

1, 安装

安装Apache服务及其扩展包。

yum -y install httpd httpd-manual mod_ssl mod_perl mod_auth_mysql

启动Apache服务。

systemctl start httpd.service

测试Apache服务是否安装并启动成功。

Apache默认监听80端口,所以只需在浏览器访问ECS分配的IP地址http://<ECS公网IP>

安装后index.html目录 /var/www/html

参考链接:www.cnblogs.com/hello-/arti…

2, LAMP环境搭建

参考链接:

developer.aliyun.com/adc/scenari…