August 2017
Intermediate to advanced
278 pages
8h 53m
English
To add the repository, the first thing we need is the yum-utils package. This makes the creation of repositories as simple as a one-line installation:
yum install -y yum-utils
With yum-utils installed, we can now create the openresty repository on our server:
yum-config-manager --add-repo https://openresty.org/package/centos/openresty.repo
This will automatically fetch the remote repository file and place it in the correct location for you.
With the repository installed and enabled, we can now install OpenResty:
yum install -y openresty
This will install the latest OpenResty package, as well as all the required dependencies.
To enable the service to start on boot, we can enable it via systemd:
systemctl enable openresty
You can ...
Read now
Unlock full access