To install OpenResty on CentOS 7, you can follow the steps below:

  1. Enable the EPEL repository by running the following command:
sudo yum install epel-release
  1. Install the required dependencies:
sudo yum install yum-utils make autoconf openssl-devel pcre-devel zlib-devel
  1. Create a new yum repository file for OpenResty:
sudo vi /etc/yum.repos.d/openresty.repo
  1. Add the following lines to the repository file and save it:
[openresty]
name=Official OpenResty Repository
baseurl=https://openresty.org/package/centos/$releasever/$basearch/
gpgcheck=0
enabled=1
  1. Install OpenResty using yum:
sudo yum install openresty
  1. Start the OpenResty service:
sudo systemctl start openresty
  1. Verify that OpenResty is running by visiting your server's IP address or domain name in a web browser. You should see the default OpenResty welcome page.

Note: You may need to adjust your firewall settings to allow incoming connections to the OpenResty server

centos7 安装openresty

原文地址: https://www.cveoy.top/t/topic/iiSW 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录