[Video Guide] Package Manager attached using openresty novice

OpenResty is a scalable Web platform by Lua extension Nginx implemented, the internal integration of a large number of sophisticated Lua libraries, as well as most third-party module dependencies.
Used to easily set up to handle ultra-high concurrency, highly scalable dynamic Web applications, Web services and dynamic gateway.
Nginx similar function and is due to the dynamic support lua script, it is more flexible and can achieve authentication, limiting, shunt, logging, gray-publishing functions.
OpenResty extended functionality through nginx Lua script, can provide load balancing, request routing, security, authentication, service authorization, traffic control and log monitoring and other services.

Video Address:

https://www.bilibili.com/video/av70803354/


Visit the official website you can see there are mounting package manager, in this way does not need to compile and process dependencies, try to use such a simple way to install

# Installation required when introducing several GPG key dependencies (after completion of the entire installation process can remove them at any time):
the sudo APT-GET -Y-Recommends the install the install wget --no-CA-Certificates GnuPG

# Import our GPG key:
wget -O - https://openresty.org/package/pubkey.gpg | APT the Add-Key -

# Install add-apt-repository command
# (after you delete the associated package and the corresponding package)
sudo APT-GET -y install --no-install-Software-Recommends the Properties-the Common

# Add our official official APT repository:
sudo the Add-APT-Repository -y "deb http://openresty.org/package/ubuntu $ (lsb_release -sc) main"

# Update APT index:
sudo APT-GET Update

apt-get -y install openresty


/etc/openresty/nginx.conf

location / {
    index  index.html index.htm;
    default_type text/html;
    content_by_lua_block {
        ngx.say("<p>hello, taoshihan</p>")
    }
}

Guess you like

Origin www.cnblogs.com/taoshihan/p/11651173.html
Recommended