1. 下载openresty安装包
weget https://openresty.org/package/centos/openresty.repo
2. 移动openresty.repo到新的文件夹
sudo mv /root/openresty.repo /etc/yum.repos.d/
3. 检查可更新的程序
sudo yum check-upadte
4. 安装openresty
yum install -y openresty
5. 启动openresty
systemctl start openresty.service
6. 查看openresty状态
systemctl status openresty.service
7. 浏览器访问ip
8. 重新加载openresty配置
systemctl reload openresty.service