当前位置:网站首页>Openresty Foundation
Openresty Foundation
2022-06-23 16:16:00 【chinusyan】
Preparation before installation
You must add these libraries perl 5.6.1+, libpcre, libssl Installed on your computer . about Linux Come on ,
yum install pcre-devel openssl-devel gcc curl postgresql-devel
structure OpenResty
From the download page Download Download the latest OpenResty Source package , And unzip it like the following example :
wget https://openresty.org/download/openresty-1.21.4.1.tar.gz
tar -xvzf openresty-1.21.4.1.tar.gz
./configure
And then into openresty-1.21.4.1/ Catalog , Then enter the following command to configure :
./configure --prefix=/usr/local/openresty \
--with-luajit \
--without-http_redis2_module \
--with-http_iconv_module \
--with-http_postgres_module \
--with-http_stub_status_module \
--with-http_gzip_static_module \
--with-luajit \
--with-http_ssl_module
Default , --prefix=/usr/local/openresty The program will be installed in /usr/local/openresty Catalog .
Try to use ./configure --help See more options .
make
You can use the following command to compile :
make
If your computer supports multicore make The nature of work , You can compile :
make -j2 # Suppose your machine is dual core .
make install
If the previous steps are all right , You can use the following command to install OpenResty To your system :
make install
ssl certificate
https://cloud.tencent.com/document/product/400/35244
nginx To configure
server {
listen 443 ssl;
# To configure HTTPS The default access port for is 443.
# If not configured here HTTPS The default access port of , It may cause Nginx Can't start .
# If you use Nginx 1.15.0 And above , Please use listen 443 ssl Instead of listen 443 and ssl on.
server_name yourdomain.com; # Need to put yourdomain.com Replace with domain name bound by certificate .
root html;
index index.html index.htm;
ssl_certificate cert/cert-file-name.pem; # Need to put cert-file-name.pem Replace with the name of the uploaded certificate file .
ssl_certificate_key cert/cert-file-name.key; # Need to put cert-file-name.key Replace with the name of the uploaded certificate private key file .
ssl_session_timeout 5m;
ssl_ciphers ECDHE-RSA-AES128-GCM-SHA256:ECDHE:ECDH:AES:HIGH:!NULL:!aNULL:!MD5:!ADH:!RC4;
# Represents the type of encryption suite used .
ssl_protocols TLSv1.1 TLSv1.2 TLSv1.3; # Indicates the TLS The type of agreement .
ssl_prefer_server_ciphers on;
location / {
root html; # Site directory .
index index.html index.htm;
}
}
边栏推荐
- MES在流程和离散制造企业的15个差别(上)
- golang数据类型图
- 《Apache Commons 工具类》
- npm install 问题解决(nvm安装与使用)
- If no code is moved, the project access speed drops significantly the next day. Case analysis
- Apple iPhone, Samsung mobile phone and other electronic products began to enter Russia through parallel import channels
- PageHelper在面对复杂service数据处理下的分页问题
- PageHelper faces the paging problem of complex service data processing
- 【TcaplusDB知识库】Tmonitor后台一键安装介绍(一)
- 机器人方向与高考选专业的一些误区
猜你喜欢
随机推荐
Memory consistency and cache consistency
MySQL中json_extract函数说明
【TcaplusDB知识库】Tmonitor单机安装指引介绍(二)
Analysis of TCP three-time handshake and four-time handshake
Tableau comparatif du nom de la clé ADB, du numéro du Code de la clé et de la description de la clé
SaaS cloud tool, a sharp tool for change under the industrial Internet
Uniapp sends picture messages to Tencent instant messaging Tim
苹果 iPhone、三星手机等电子产品开始经平行进口渠道进入俄罗斯
生成二叉搜索平衡树[利用树递归特性]
Spin lock using CAS
进阶开发阶段-势若悬丝的加粗开始. 现在的一小步,明年的一大步
ADB 按鍵名、按鍵代碼數字、按鍵說明對照錶
解决:在验证阶段,第一个batch不会报错,第二个batch报cuda超出的错误
Object
[openharmony] USB gadget configuration HDC function cfg file interpretation
线上交流丨可信机器学习之机器学习与知识推理相结合(青源Talk第20期 李博)
Log4j log integration and configuration details
Medical image segmentation website
Block, non block, multiplexing, synchronous, asynchronous, bio, NiO, AIO
【TcaplusDB知识库】Tmonitor系统升级介绍









