centos7 安装openresty
To install OpenResty on CentOS 7, you can follow the steps below:
- Enable the EPEL repository by running the following command:
sudo yum install epel-release
- Install the required dependencies:
sudo yum install yum-utils make autoconf openssl-devel pcre-devel zlib-devel
- Create a new yum repository file for OpenResty:
sudo vi /etc/yum.repos.d/openresty.repo
- 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
- Install OpenResty using yum:
sudo yum install openresty
- Start the OpenResty service:
sudo systemctl start openresty
- 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
原文地址: https://www.cveoy.top/t/topic/iiSW 著作权归作者所有。请勿转载和采集!