@startuml
start
:查看环境;
:检查网络连接;
if (网络可用?) then (yes)
:添加 Yum 源;
:安装 Nginx;
:配置服务;
:设置防火墙;
:查看网页;
if (网页显示成功?) then (yes)
:显示 "Welcome to nginx!";
else (no)
:检查配置或网络;
endif
else (no)
:检查网络连接问题;
endif
stop
@enduml
前言
我在下载 Nginx
的时候出现报错
:No package nginx available.
按照网上配置阿里云的教程还有或有错误
[root@192 ~]# yum install nginx -y Loaded plugins: fastestmirror, langpacks Loading mirror speeds from cached hostfile * base: mirrors.aliyun.com * extras: mirrors.aliyun.com * updates: mirrors.aliyun.com No package nginx available. Error: Nothing
经过反复试错后找到此方法
步骤
查看环境
本人环境
cat /etc/redhat-release