How to install openresty on CentOS 7
Step 1:
[root@tutorialspots ~]# wget https://openresty.org/package/centos/openresty.repo --2020-05-20 12:22:44-- https://openresty.org/package/centos/openresty.repo Resolving openresty.org (openresty.org)... 138.68.231.133, 138.68.250.95, 2604:a880:2:d0::381e:1, ... Connecting to openresty.org (openresty.org)|138.68.231.133|:443... connected. HTTP request sent, awaiting response... 200 OK Length: 267 1 Saving to: ‘openresty.repo’ 100%[======================================>] 267 --.-K/s in 0s 2020-05-20 12:22:45 (37.0 MB/s) - ‘openresty.repo’ saved [267/267]
Step 2:
sudo mv openresty.repo /etc/yum.repos.d/
Step 3:
[root@tutorialspots ~]# sudo yum check-update Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * base: centos.mirror.ca.planethoster.net * extras: centos.mirror.netelligent.ca * updates: centos.mirror.netelligent.ca openresty | 2.9 kB 00:00 openresty/7/x86_64/primary_db | 49 kB 00:00 GeoIP.x86_64 1.5.0-14.el7 base NetworkManager.x86_64 1:1.18.4-3.el7 base NetworkManager-libnm.x86_64 1:1.18.4-3.el7 base NetworkManager-team.x86_64 1:1.18.4-3.el7 base NetworkManager-tui.x86_64 1:1.18.4-3.el7 base NetworkManager-wifi.x86_64 1:1.18.4-3.el7 base acl.x86_64 2.2.51-15.el7 base alsa-lib.x86_64 1.1.8-1.el7 base audit.x86_64 2.8.5-4.el7 base audit-libs.x86_64 2.8.5-4.el7 base bash.x86_64 4.2.46-34.el7 base bind-libs-lite.x86_64 32:9.11.4-16.P2.el7_8.3 updates bind-license.noarch 32:9.11.4-16.P2.el7_8.3 updates binutils.x86_64 2.27-43.base.el7_8.1 updates biosdevname.x86_64 0.7.3-2.el7 base ca-certificates.noarch 2019.2.32-76.el7_7 base centos-release.x86_64 7-8.2003.0.el7.centos base coreutils.x86_64 8.22-24.el7 base cronie.x86_64 1.4.11-23.el7 base cronie-anacron.x86_64 1.4.11-23.el7 base cryptsetup-libs.x86_64 2.0.3-6.el7 base curl.x86_64 7.29.0-57.el7 base dbus.x86_64 1:1.10.24-13.el7_6 base dbus-libs.x86_64 1:1.10.24-13.el7_6 base device-mapper.x86_64 7:1.02.164-7.el7_8.2 updates device-mapper-event.x86_64 7:1.02.164-7.el7_8.2 updates device-mapper-event-libs.x86_64 7:1.02.164-7.el7_8.2 updates device-mapper-libs.x86_64 7:1.02.164-7.el7_8.2 updates device-mapper-persistent-data.x86_64 0.8.5-2.el7 base dhclient.x86_64 12:4.2.5-79.el7.centos base dhcp-common.x86_64 12:4.2.5-79.el7.centos base dhcp-libs.x86_64 12:4.2.5-79.el7.centos base diffutils.x86_64 3.3-5.el7 base dmidecode.x86_64 1:3.2-3.el7 base dracut.x86_64 033-568.el7 base dracut-config-rescue.x86_64 033-568.el7 base dracut-network.x86_64 033-568.el7 base e2fsprogs.x86_64 1.42.9-17.el7 base e2fsprogs-libs.x86_64 1.42.9-17.el7 base elfutils-default-yama-scope.noarch 0.176-4.el7 base elfutils-libelf.x86_64 0.176-4.el7 base elfutils-libs.x86_64 0.176-4.el7 base ethtool.x86_64 2:4.8-10.el7 base expat.x86_64 2.1.0-11.el7 base file.x86_64 5.11-36.el7 base file-libs.x86_64 5.11-36.el7 base firewalld.noarch 0.6.3-8.el7_8.1 updates firewalld-filesystem.noarch 0.6.3-8.el7_8.1 updates freetype.x86_64 2.8-14.el7 base gdisk.x86_64 0.8.10-3.el7 base gettext.x86_64 0.19.8.1-3.el7 base gettext-libs.x86_64 0.19.8.1-3.el7 base glib2.x86_64 2.56.1-5.el7 base glibc.x86_64 2.17-307.el7.1 base glibc-common.x86_64 2.17-307.el7.1 base grub2.x86_64 1:2.02-0.81.el7.centos base grub2-common.noarch 1:2.02-0.81.el7.centos base grub2-pc.x86_64 1:2.02-0.81.el7.centos base grub2-pc-modules.noarch 1:2.02-0.81.el7.centos base grub2-tools.x86_64 1:2.02-0.81.el7.centos base grub2-tools-extra.x86_64 1:2.02-0.81.el7.centos base grub2-tools-minimal.x86_64 1:2.02-0.81.el7.centos base grubby.x86_64 8.28-26.el7 base hostname.x86_64 3.13-3.el7_7.1 base hwdata.x86_64 0.252-9.5.el7 base initscripts.x86_64 9.49.49-1.el7 base iproute.x86_64 4.11.0-25.el7_7.2 base iprutils.x86_64 2.4.17.1-3.el7_7 updates ipset.x86_64 7.1-1.el7 base ipset-libs.x86_64 7.1-1.el7 base iptables.x86_64 1.4.21-34.el7 base irqbalance.x86_64 3:1.0.7-12.el7 base iwl100-firmware.noarch 39.31.5.1-76.el7 base iwl1000-firmware.noarch 1:39.31.5.1-76.el7 base iwl105-firmware.noarch 18.168.6.1-76.el7 base iwl135-firmware.noarch 18.168.6.1-76.el7 base iwl2000-firmware.noarch 18.168.6.1-76.el7 base iwl2030-firmware.noarch 18.168.6.1-76.el7 base iwl3160-firmware.noarch 25.30.13.0-76.el7 base iwl3945-firmware.noarch 15.32.2.9-76.el7 base iwl4965-firmware.noarch 228.61.2.24-76.el7 base iwl5000-firmware.noarch 8.83.5.1_1-76.el7 base iwl5150-firmware.noarch 8.24.2.2-76.el7 base iwl6000-firmware.noarch 9.221.4.1-76.el7 base iwl6000g2a-firmware.noarch 18.168.6.1-76.el7 base iwl6000g2b-firmware.noarch 18.168.6.1-76.el7 base iwl6050-firmware.noarch 41.28.5.1-76.el7 base iwl7260-firmware.noarch 25.30.13.0-76.el7 base kernel.x86_64 3.10.0-1127.8.2.el7 updates kernel-tools.x86_64 3.10.0-1127.8.2.el7 updates kernel-tools-libs.x86_64 3.10.0-1127.8.2.el7 updates kexec-tools.x86_64 2.0.15-43.el7 base kmod.x86_64 20-28.el7 base kmod-libs.x86_64 20-28.el7 base kpartx.x86_64 0.4.9-131.el7 base krb5-libs.x86_64 1.15.1-46.el7 base libacl.x86_64 2.2.51-15.el7 base libblkid.x86_64 2.23.2-63.el7 base libcap.x86_64 2.22-11.el7 base libcom_err.x86_64 1.42.9-17.el7 base libcurl.x86_64 7.29.0-57.el7 base libdb.x86_64 5.3.21-25.el7 base libdb-utils.x86_64 5.3.21-25.el7 base libdrm.x86_64 2.4.97-2.el7 base libffi.x86_64 3.0.13-19.el7 base libgcc.x86_64 4.8.5-39.el7 base libgomp.x86_64 4.8.5-39.el7 base libmount.x86_64 2.23.2-63.el7 base libndp.x86_64 1.2-9.el7 base libselinux.x86_64 2.5-15.el7 base libselinux-python.x86_64 2.5-15.el7 base libselinux-utils.x86_64 2.5-15.el7 base libsmartcols.x86_64 2.23.2-63.el7 base libss.x86_64 1.42.9-17.el7 base libssh2.x86_64 1.8.0-3.el7 base libstdc++.x86_64 4.8.5-39.el7 base libteam.x86_64 1.29-1.el7 base libuuid.x86_64 2.23.2-63.el7 base libxml2.x86_64 2.9.1-6.el7.4 base linux-firmware.noarch 20191203-76.gite8a0f4c.el7 base logrotate.x86_64 3.8.6-19.el7 base lvm2.x86_64 7:2.02.186-7.el7_8.2 updates lvm2-libs.x86_64 7:2.02.186-7.el7_8.2 updates lz4.x86_64 1.7.5-3.el7 base make.x86_64 1:3.82-24.el7 base mariadb-libs.x86_64 1:5.5.65-1.el7 base microcode_ctl.x86_64 2:2.1-61.el7 base nspr.x86_64 4.21.0-1.el7 base nss.x86_64 3.44.0-7.el7_7 base nss-pem.x86_64 1.0.3-7.el7 base nss-softokn.x86_64 3.44.0-8.el7_7 base nss-softokn-freebl.x86_64 3.44.0-8.el7_7 base nss-sysinit.x86_64 3.44.0-7.el7_7 base nss-tools.x86_64 3.44.0-7.el7_7 base nss-util.x86_64 3.44.0-4.el7_7 base numactl-libs.x86_64 2.0.12-5.el7 base openldap.x86_64 2.4.44-21.el7_6 base openssh.x86_64 7.4p1-21.el7 base openssh-clients.x86_64 7.4p1-21.el7 base openssh-server.x86_64 7.4p1-21.el7 base openssl.x86_64 1:1.0.2k-19.el7 base openssl-libs.x86_64 1:1.0.2k-19.el7 base pam.x86_64 1.1.8-23.el7 base parted.x86_64 3.1-32.el7 base passwd.x86_64 0.79-6.el7 base plymouth.x86_64 0.8.9-0.33.20140113.el7.centos base plymouth-core-libs.x86_64 0.8.9-0.33.20140113.el7.centos base plymouth-scripts.x86_64 0.8.9-0.33.20140113.el7.centos base policycoreutils.x86_64 2.5-34.el7 base polkit.x86_64 0.112-26.el7 base postfix.x86_64 2:2.10.1-9.el7 base procps-ng.x86_64 3.3.10-27.el7 base python.x86_64 2.7.5-88.el7 base python-firewall.noarch 0.6.3-8.el7_8.1 updates python-libs.x86_64 2.7.5-88.el7 base python-linux-procfs.noarch 0.4.11-4.el7 base python-perf.x86_64 3.10.0-1127.8.2.el7 updates python-urlgrabber.noarch 3.10-10.el7 base readline.x86_64 6.2-11.el7 base rpm.x86_64 4.11.3-43.el7 base rpm-build-libs.x86_64 4.11.3-43.el7 base rpm-libs.x86_64 4.11.3-43.el7 base rpm-python.x86_64 4.11.3-43.el7 base rsyslog.x86_64 8.24.0-52.el7 base sed.x86_64 4.2.2-6.el7 base selinux-policy.noarch 3.13.1-266.el7 base selinux-policy-targeted.noarch 3.13.1-266.el7 base setup.noarch 2.8.71-11.el7 base shadow-utils.x86_64 2:4.6-5.el7 base shared-mime-info.x86_64 1.8-5.el7 base sqlite.x86_64 3.7.17-8.el7_7.1 base sudo.x86_64 1.8.23-9.el7 base systemd.x86_64 219-73.el7_8.6 updates systemd-libs.x86_64 219-73.el7_8.6 updates systemd-sysv.x86_64 219-73.el7_8.6 updates teamd.x86_64 1.29-1.el7 base tuned.noarch 2.11.0-8.el7 base tzdata.noarch 2020a-1.el7 updates util-linux.x86_64 2.23.2-63.el7 base vim-minimal.x86_64 2:7.4.629-6.el7 base xfsprogs.x86_64 4.5.0-20.el7 base yum.noarch 3.4.3-167.el7.centos base yum-plugin-fastestmirror.noarch 1.1.31-54.el7_8 updates Obsoleting Packages iwl7260-firmware.noarch 25.30.13.0-76.el7 base iwl7265-firmware.noarch 22.0.7.0-69.el7 @base
Step 4:
[root@tutorialspots ~]# sudo yum install openresty Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * base: centos.mirror.ca.planethoster.net * extras: centos.mirror.netelligent.ca * updates: centos.mirror.netelligent.ca Resolving Dependencies --> Running transaction check ---> Package openresty.x86_64 0:1.15.8.3-1.el7 will be installed --> Processing Dependency: openresty-zlib >= 1.2.11-3 for package: openresty-1.15.8.3-1.el7.x86_64 --> Processing Dependency: openresty-pcre >= 8.44-1 for package: openresty-1.15.8.3-1.el7.x86_64 --> Processing Dependency: openresty-openssl >= 1.1.0l-1 for package: openresty-1.15.8.3-1.el7.x86_64 --> Running transaction check ---> Package openresty-openssl.x86_64 0:1.1.0l-1.el7 will be installed ---> Package openresty-pcre.x86_64 0:8.44-1.el7 will be installed ---> Package openresty-zlib.x86_64 0:1.2.11-3.el7.centos will be installed --> Finished Dependency Resolution Dependencies Resolved ================================================================================ Package Arch Version Repository Size ================================================================================ Installing: openresty x86_64 1.15.8.3-1.el7 openresty 1.1 M Installing for dependencies: openresty-openssl x86_64 1.1.0l-1.el7 openresty 1.4 M openresty-pcre x86_64 8.44-1.el7 openresty 164 k openresty-zlib x86_64 1.2.11-3.el7.centos openresty 54 k Transaction Summary ================================================================================ Install 1 Package (+3 Dependent packages) Total download size: 2.6 M Installed size: 7.5 M Is this ok [y/d/N]: y Downloading packages: warning: /var/cache/yum/x86_64/7/openresty/packages/openresty-1.15.8.3-1.el7.x86_64.rpm: Header V4 RSA/SHA1 Signature, key ID d5edeb74: NOKEY Public key for openresty-1.15.8.3-1.el7.x86_64.rpm is not installed (1/4): openresty-1.15.8.3-1.el7.x86_64.rpm | 1.1 MB 00:01 (2/4): openresty-openssl-1.1.0l-1.el7.x86_64.rpm | 1.4 MB 00:01 (3/4): openresty-pcre-8.44-1.el7.x86_64.rpm | 164 kB 00:00 (4/4): openresty-zlib-1.2.11-3.el7.centos.x86_64.rpm | 54 kB 00:00 -------------------------------------------------------------------------------- Total 2.2 MB/s | 2.6 MB 00:01 Retrieving key from https://openresty.org/package/pubkey.gpg Importing GPG key 0xD5EDEB74: Userid : "OpenResty Admin <admin@openresty.com>" Fingerprint: e522 18e7 0878 97dc 6dea 6d6d 97db 7443 d5ed eb74 From : https://openresty.org/package/pubkey.gpg Is this ok [y/N]: y Running transaction check Running transaction test Transaction test succeeded Running transaction Installing : openresty-zlib-1.2.11-3.el7.centos.x86_64 1/4 Installing : openresty-openssl-1.1.0l-1.el7.x86_64 2/4 Installing : openresty-pcre-8.44-1.el7.x86_64 3/4 Installing : openresty-1.15.8.3-1.el7.x86_64 4/4 Verifying : openresty-pcre-8.44-1.el7.x86_64 1/4 Verifying : openresty-zlib-1.2.11-3.el7.centos.x86_64 2/4 Verifying : openresty-1.15.8.3-1.el7.x86_64 3/4 Verifying : openresty-openssl-1.1.0l-1.el7.x86_64 4/4 Installed: openresty.x86_64 0:1.15.8.3-1.el7 Dependency Installed: openresty-openssl.x86_64 0:1.1.0l-1.el7 openresty-pcre.x86_64 0:8.44-1.el7 openresty-zlib.x86_64 0:1.2.11-3.el7.centos Complete!
Install openresty-resty
[root@tutorialspots ~]# sudo yum install openresty-resty Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * base: centos.mirror.ca.planethoster.net * extras: centos.mirror.netelligent.ca * updates: centos.mirror.netelligent.ca Resolving Dependencies --> Running transaction check ---> Package openresty-resty.noarch 0:1.15.8.3-1.el7 will be installed --> Processing Dependency: perl(Time::HiRes) for package: openresty-resty-1.15.8.3-1.el7.noarch --> Processing Dependency: perl(POSIX) for package: openresty-resty-1.15.8.3-1.el7.noarch --> Processing Dependency: perl(List::Util) for package: openresty-resty-1.15.8.3-1.el7.noarch --> Processing Dependency: perl(Getopt::Long) for package: openresty-resty-1.15.8.3-1.el7.noarch --> Processing Dependency: perl(FindBin) for package: openresty-resty-1.15.8.3-1.el7.noarch --> Processing Dependency: perl(File::Temp) for package: openresty-resty-1.15.8.3-1.el7.noarch --> Processing Dependency: perl(File::Spec) for package: openresty-resty-1.15.8.3-1.el7.noarch --> Processing Dependency: perl for package: openresty-resty-1.15.8.3-1.el7.noarch --> Running transaction check ---> Package perl.x86_64 4:5.16.3-295.el7 will be installed --> Processing Dependency: perl-libs = 4:5.16.3-295.el7 for package: 4:perl-5.16.3-295.el7.x86_64 --> Processing Dependency: perl(Socket) >= 1.3 for package: 4:perl-5.16.3-295.el7.x86_64 --> Processing Dependency: perl-macros for package: 4:perl-5.16.3-295.el7.x86_64 --> Processing Dependency: perl-libs for package: 4:perl-5.16.3-295.el7.x86_64 --> Processing Dependency: perl(threads::shared) for package: 4:perl-5.16.3-295.el7.x86_64 --> Processing Dependency: perl(threads) for package: 4:perl-5.16.3-295.el7.x86_64 --> Processing Dependency: perl(constant) for package: 4:perl-5.16.3-295.el7.x86_64 --> Processing Dependency: perl(Time::Local) for package: 4:perl-5.16.3-295.el7.x86_64 --> Processing Dependency: perl(Storable) for package: 4:perl-5.16.3-295.el7.x86_64 --> Processing Dependency: perl(Socket) for package: 4:perl-5.16.3-295.el7.x86_64 --> Processing Dependency: perl(Pod::Simple::XHTML) for package: 4:perl-5.16.3-295.el7.x86_64 --> Processing Dependency: perl(Pod::Simple::Search) for package: 4:perl-5.16.3-295.el7.x86_64 --> Processing Dependency: perl(Filter::Util::Call) for package: 4:perl-5.16.3-295.el7.x86_64 --> Processing Dependency: perl(File::Path) for package: 4:perl-5.16.3-295.el7.x86_64 --> Processing Dependency: perl(Exporter) for package: 4:perl-5.16.3-295.el7.x86_64 --> Processing Dependency: perl(Carp) for package: 4:perl-5.16.3-295.el7.x86_64 --> Processing Dependency: libperl.so()(64bit) for package: 4:perl-5.16.3-295.el7.x86_64 ---> Package perl-File-Temp.noarch 0:0.23.01-3.el7 will be installed ---> Package perl-Getopt-Long.noarch 0:2.40-3.el7 will be installed --> Processing Dependency: perl(Pod::Usage) >= 1.14 for package: perl-Getopt-Long-2.40-3.el7.noarch --> Processing Dependency: perl(Text::ParseWords) for package: perl-Getopt-Long-2.40-3.el7.noarch ---> Package perl-PathTools.x86_64 0:3.40-5.el7 will be installed ---> Package perl-Scalar-List-Utils.x86_64 0:1.27-248.el7 will be installed ---> Package perl-Time-HiRes.x86_64 4:1.9725-3.el7 will be installed --> Running transaction check ---> Package perl-Carp.noarch 0:1.26-244.el7 will be installed ---> Package perl-Exporter.noarch 0:5.68-3.el7 will be installed ---> Package perl-File-Path.noarch 0:2.09-2.el7 will be installed ---> Package perl-Filter.x86_64 0:1.49-3.el7 will be installed ---> Package perl-Pod-Simple.noarch 1:3.28-4.el7 will be installed --> Processing Dependency: perl(Pod::Escapes) >= 1.04 for package: 1:perl-Pod-Simple-3.28-4.el7.noarch --> Processing Dependency: perl(Encode) for package: 1:perl-Pod-Simple-3.28-4.el7.noarch ---> Package perl-Pod-Usage.noarch 0:1.63-3.el7 will be installed --> Processing Dependency: perl(Pod::Text) >= 3.15 for package: perl-Pod-Usage-1.63-3.el7.noarch --> Processing Dependency: perl-Pod-Perldoc for package: perl-Pod-Usage-1.63-3.el7.noarch ---> Package perl-Socket.x86_64 0:2.010-5.el7 will be installed ---> Package perl-Storable.x86_64 0:2.45-3.el7 will be installed ---> Package perl-Text-ParseWords.noarch 0:3.29-4.el7 will be installed ---> Package perl-Time-Local.noarch 0:1.2300-2.el7 will be installed ---> Package perl-constant.noarch 0:1.27-2.el7 will be installed ---> Package perl-libs.x86_64 4:5.16.3-295.el7 will be installed ---> Package perl-macros.x86_64 4:5.16.3-295.el7 will be installed ---> Package perl-threads.x86_64 0:1.87-4.el7 will be installed ---> Package perl-threads-shared.x86_64 0:1.43-6.el7 will be installed --> Running transaction check ---> Package perl-Encode.x86_64 0:2.51-7.el7 will be installed ---> Package perl-Pod-Escapes.noarch 1:1.04-295.el7 will be installed ---> Package perl-Pod-Perldoc.noarch 0:3.20-4.el7 will be installed --> Processing Dependency: perl(parent) for package: perl-Pod-Perldoc-3.20-4.el7.noarch --> Processing Dependency: perl(HTTP::Tiny) for package: perl-Pod-Perldoc-3.20-4.el7.noarch ---> Package perl-podlators.noarch 0:2.5.1-3.el7 will be installed --> Running transaction check ---> Package perl-HTTP-Tiny.noarch 0:0.033-3.el7 will be installed ---> Package perl-parent.noarch 1:0.225-244.el7 will be installed --> Finished Dependency Resolution Dependencies Resolved ================================================================================ Package Arch Version Repository Size ================================================================================ Installing: openresty-resty noarch 1.15.8.3-1.el7 openresty 13 k Installing for dependencies: perl x86_64 4:5.16.3-295.el7 base 8.0 M perl-Carp noarch 1.26-244.el7 base 19 k perl-Encode x86_64 2.51-7.el7 base 1.5 M perl-Exporter noarch 5.68-3.el7 base 28 k perl-File-Path noarch 2.09-2.el7 base 26 k perl-File-Temp noarch 0.23.01-3.el7 base 56 k perl-Filter x86_64 1.49-3.el7 base 76 k perl-Getopt-Long noarch 2.40-3.el7 base 56 k perl-HTTP-Tiny noarch 0.033-3.el7 base 38 k perl-PathTools x86_64 3.40-5.el7 base 82 k perl-Pod-Escapes noarch 1:1.04-295.el7 base 51 k perl-Pod-Perldoc noarch 3.20-4.el7 base 87 k perl-Pod-Simple noarch 1:3.28-4.el7 base 216 k perl-Pod-Usage noarch 1.63-3.el7 base 27 k perl-Scalar-List-Utils x86_64 1.27-248.el7 base 36 k perl-Socket x86_64 2.010-5.el7 base 49 k perl-Storable x86_64 2.45-3.el7 base 77 k perl-Text-ParseWords noarch 3.29-4.el7 base 14 k perl-Time-HiRes x86_64 4:1.9725-3.el7 base 45 k perl-Time-Local noarch 1.2300-2.el7 base 24 k perl-constant noarch 1.27-2.el7 base 19 k perl-libs x86_64 4:5.16.3-295.el7 base 689 k perl-macros x86_64 4:5.16.3-295.el7 base 44 k perl-parent noarch 1:0.225-244.el7 base 12 k perl-podlators noarch 2.5.1-3.el7 base 112 k perl-threads x86_64 1.87-4.el7 base 49 k perl-threads-shared x86_64 1.43-6.el7 base 39 k Transaction Summary ================================================================================ Install 1 Package (+27 Dependent packages) Total download size: 11 M Installed size: 36 M Is this ok [y/d/N]: y Downloading packages: (1/28): perl-Carp-1.26-244.el7.noarch.rpm | 19 kB 00:00 (2/28): perl-Encode-2.51-7.el7.x86_64.rpm | 1.5 MB 00:00 (3/28): perl-Exporter-5.68-3.el7.noarch.rpm | 28 kB 00:00 (4/28): perl-File-Path-2.09-2.el7.noarch.rpm | 26 kB 00:00 (5/28): perl-File-Temp-0.23.01-3.el7.noarch.rpm | 56 kB 00:00 (6/28): perl-Filter-1.49-3.el7.x86_64.rpm | 76 kB 00:00 (7/28): perl-Getopt-Long-2.40-3.el7.noarch.rpm | 56 kB 00:00 (8/28): perl-HTTP-Tiny-0.033-3.el7.noarch.rpm | 38 kB 00:00 (9/28): perl-PathTools-3.40-5.el7.x86_64.rpm | 82 kB 00:00 (10/28): perl-Pod-Escapes-1.04-295.el7.noarch.rpm | 51 kB 00:00 (11/28): perl-Pod-Perldoc-3.20-4.el7.noarch.rpm | 87 kB 00:00 (12/28): perl-Pod-Simple-3.28-4.el7.noarch.rpm | 216 kB 00:00 (13/28): perl-Pod-Usage-1.63-3.el7.noarch.rpm | 27 kB 00:00 (14/28): perl-Scalar-List-Utils-1.27-248.el7.x86_64.rpm | 36 kB 00:00 (15/28): perl-Socket-2.010-5.el7.x86_64.rpm | 49 kB 00:00 (16/28): perl-Storable-2.45-3.el7.x86_64.rpm | 77 kB 00:00 (17/28): perl-Text-ParseWords-3.29-4.el7.noarch.rpm | 14 kB 00:00 (18/28): perl-Time-HiRes-1.9725-3.el7.x86_64.rpm | 45 kB 00:00 (19/28): perl-Time-Local-1.2300-2.el7.noarch.rpm | 24 kB 00:00 (20/28): openresty-resty-1.15.8.3-1.el7.noarch.rpm | 13 kB 00:00 (21/28): perl-constant-1.27-2.el7.noarch.rpm | 19 kB 00:00 (22/28): perl-5.16.3-295.el7.x86_64.rpm | 8.0 MB 00:00 (23/28): perl-libs-5.16.3-295.el7.x86_64.rpm | 689 kB 00:00 (24/28): perl-macros-5.16.3-295.el7.x86_64.rpm | 44 kB 00:00 (25/28): perl-parent-0.225-244.el7.noarch.rpm | 12 kB 00:00 (26/28): perl-podlators-2.5.1-3.el7.noarch.rpm | 112 kB 00:00 (27/28): perl-threads-1.87-4.el7.x86_64.rpm | 49 kB 00:00 (28/28): perl-threads-shared-1.43-6.el7.x86_64.rpm | 39 kB 00:00 -------------------------------------------------------------------------------- Total 13 MB/s | 11 MB 00:00 Running transaction check Running transaction test Transaction test succeeded Running transaction Installing : 1:perl-parent-0.225-244.el7.noarch 1/28 Installing : perl-HTTP-Tiny-0.033-3.el7.noarch 2/28 Installing : perl-podlators-2.5.1-3.el7.noarch 3/28 Installing : perl-Pod-Perldoc-3.20-4.el7.noarch 4/28 Installing : 1:perl-Pod-Escapes-1.04-295.el7.noarch 5/28 Installing : perl-Text-ParseWords-3.29-4.el7.noarch 6/28 Installing : perl-Encode-2.51-7.el7.x86_64 7/28 Installing : perl-Pod-Usage-1.63-3.el7.noarch 8/28 Installing : 4:perl-libs-5.16.3-295.el7.x86_64 9/28 Installing : 4:perl-macros-5.16.3-295.el7.x86_64 10/28 Installing : perl-Storable-2.45-3.el7.x86_64 11/28 Installing : perl-Exporter-5.68-3.el7.noarch 12/28 Installing : perl-constant-1.27-2.el7.noarch 13/28 Installing : perl-Socket-2.010-5.el7.x86_64 14/28 Installing : perl-Time-Local-1.2300-2.el7.noarch 15/28 Installing : perl-Carp-1.26-244.el7.noarch 16/28 Installing : 4:perl-Time-HiRes-1.9725-3.el7.x86_64 17/28 Installing : perl-PathTools-3.40-5.el7.x86_64 18/28 Installing : perl-Scalar-List-Utils-1.27-248.el7.x86_64 19/28 Installing : perl-File-Temp-0.23.01-3.el7.noarch 20/28 Installing : perl-File-Path-2.09-2.el7.noarch 21/28 Installing : perl-threads-shared-1.43-6.el7.x86_64 22/28 Installing : perl-threads-1.87-4.el7.x86_64 23/28 Installing : perl-Filter-1.49-3.el7.x86_64 24/28 Installing : 1:perl-Pod-Simple-3.28-4.el7.noarch 25/28 Installing : perl-Getopt-Long-2.40-3.el7.noarch 26/28 Installing : 4:perl-5.16.3-295.el7.x86_64 27/28 Installing : openresty-resty-1.15.8.3-1.el7.noarch 28/28 Verifying : perl-HTTP-Tiny-0.033-3.el7.noarch 1/28 Verifying : perl-threads-shared-1.43-6.el7.x86_64 2/28 Verifying : perl-Storable-2.45-3.el7.x86_64 3/28 Verifying : 1:perl-Pod-Escapes-1.04-295.el7.noarch 4/28 Verifying : perl-Exporter-5.68-3.el7.noarch 5/28 Verifying : perl-constant-1.27-2.el7.noarch 6/28 Verifying : perl-PathTools-3.40-5.el7.x86_64 7/28 Verifying : perl-Socket-2.010-5.el7.x86_64 8/28 Verifying : 1:perl-parent-0.225-244.el7.noarch 9/28 Verifying : 4:perl-libs-5.16.3-295.el7.x86_64 10/28 Verifying : perl-File-Temp-0.23.01-3.el7.noarch 11/28 Verifying : 1:perl-Pod-Simple-3.28-4.el7.noarch 12/28 Verifying : perl-Time-Local-1.2300-2.el7.noarch 13/28 Verifying : 4:perl-macros-5.16.3-295.el7.x86_64 14/28 Verifying : 4:perl-5.16.3-295.el7.x86_64 15/28 Verifying : perl-Carp-1.26-244.el7.noarch 16/28 Verifying : 4:perl-Time-HiRes-1.9725-3.el7.x86_64 17/28 Verifying : perl-Scalar-List-Utils-1.27-248.el7.x86_64 18/28 Verifying : perl-Pod-Usage-1.63-3.el7.noarch 19/28 Verifying : perl-Encode-2.51-7.el7.x86_64 20/28 Verifying : perl-Pod-Perldoc-3.20-4.el7.noarch 21/28 Verifying : perl-podlators-2.5.1-3.el7.noarch 22/28 Verifying : perl-File-Path-2.09-2.el7.noarch 23/28 Verifying : perl-threads-1.87-4.el7.x86_64 24/28 Verifying : perl-Filter-1.49-3.el7.x86_64 25/28 Verifying : perl-Getopt-Long-2.40-3.el7.noarch 26/28 Verifying : perl-Text-ParseWords-3.29-4.el7.noarch 27/28 Verifying : openresty-resty-1.15.8.3-1.el7.noarch 28/28 Installed: openresty-resty.noarch 0:1.15.8.3-1.el7 Dependency Installed: perl.x86_64 4:5.16.3-295.el7 perl-Carp.noarch 0:1.26-244.el7 perl-Encode.x86_64 0:2.51-7.el7 perl-Exporter.noarch 0:5.68-3.el7 perl-File-Path.noarch 0:2.09-2.el7 perl-File-Temp.noarch 0:0.23.01-3.el7 perl-Filter.x86_64 0:1.49-3.el7 perl-Getopt-Long.noarch 0:2.40-3.el7 perl-HTTP-Tiny.noarch 0:0.033-3.el7 perl-PathTools.x86_64 0:3.40-5.el7 perl-Pod-Escapes.noarch 1:1.04-295.el7 perl-Pod-Perldoc.noarch 0:3.20-4.el7 perl-Pod-Simple.noarch 1:3.28-4.el7 perl-Pod-Usage.noarch 0:1.63-3.el7 perl-Scalar-List-Utils.x86_64 0:1.27-248.el7 perl-Socket.x86_64 0:2.010-5.el7 perl-Storable.x86_64 0:2.45-3.el7 perl-Text-ParseWords.noarch 0:3.29-4.el7 perl-Time-HiRes.x86_64 4:1.9725-3.el7 perl-Time-Local.noarch 0:1.2300-2.el7 perl-constant.noarch 0:1.27-2.el7 perl-libs.x86_64 4:5.16.3-295.el7 perl-macros.x86_64 4:5.16.3-295.el7 perl-parent.noarch 1:0.225-244.el7 perl-podlators.noarch 0:2.5.1-3.el7 perl-threads.x86_64 0:1.87-4.el7 perl-threads-shared.x86_64 0:1.43-6.el7 Complete!
File config: /usr/local/openresty/nginx/conf/nginx.conf
Step 5:
systemctl enable openresty.service systemctl start openresty.service
Step 6:
firewall-cmd --permanent --add-rich-rule='rule family="ipv4" port protocol="tcp" port="80" accept' firewall-cmd --permanent --add-rich-rule='rule family="ipv4" port protocol="udp" port="80" accept' sudo firewall-cmd --reload