Home > Article > Web Front-end > what is openresty
What is openresty?
OpenResty Introduction
OpenResty (also known as: ngx_openresty) is a scalable Web platform based on NGINX. It was initiated by Chinese Zhang Yichun and provides many High-quality third-party modules.
OpenResty is a powerful Web application server. Web developers can use the Lua scripting language to mobilize various C and Lua modules supported by Nginx. More importantly, in terms of performance, OpenResty can quickly construct a server capable of handling 10K Ultra-high-performance web application system that responds to the above concurrent connections.
360, UPYUN, Alibaba Cloud, Sina, Tencent, Qunar.com, Kugou Music, etc. are all deep users of OpenResty.
OpenResty installation
The novice tutorial is to install OpenResty on ubuntu14.04.
OpenResty dependent libraries include: perl 5.6.1, libreadline, libpcre, libssl.
So we need to install these dependent libraries first, which is very simple:
apt-get install libreadline-dev libpcre3-dev libssl-dev perl
If your system is Centos or RedHat, you can use the following command:
yum install readline-devel pcre-devel openssl-devel
Follow us You can download the latest OpenResty source code package from the official website (https://openresty.org/cn/) and unzip, compile and install:
wget https://openresty.org/download/ngx_openresty-1.9.7.1.tar.gz # 下载 tar xzvf ngx_openresty-1.9.7.1.tar.gz # 解压 cd ngx_openresty-1.9.7.1/ ./configure make make install
By default, the program will be installed to the /usr/local/openresty directory. You You can use ./configure --help to view more configuration options.
For more programming related content, please pay attention to the Programming Tutorial column on the php Chinese website!
The above is the detailed content of what is openresty. For more information, please follow other related articles on the PHP Chinese website!