CentOS 安装openresty

  1. 下载openresty 的repo库
wget https://openresty.org/package/centos/openresty.repo
  1. 移动repo库文件到yum的repo库中
sudo mv openresty.repo /etc/yum.repos.d/
  1. 更新
sudo yum check-update
  1. 安装openresty
yum install -y openresty
  1. 启动openresty
systemctl start openresty.service

6.注意问题:
注意端口被占用的问题,若被占用,关闭别占用的端口或者修改openresty中nginx中的配置端口
通过

systemctl status openresty.service

查看问题

你可能感兴趣的:(CentOS 安装openresty)