Amazon Linux 2上安装nginx

起因:启动了Amazon Linux 2 无法 yum install nginx

# 解决办法
yum install -y amazon-linux-extras
amazon-linux-extras list | grep nginx
amazon-linux-extras install nginx1
systemctl enable nginx
systemctl start nginx

引用:https://aws.amazon.com/cn/premiumsupport/knowledge-center/ec2-install-extras-library-software/

posted @ 2021-10-09 01:25  运维之爪  阅读(569)  评论(0编辑  收藏  举报