当前位置:网站首页>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;
}
}
边栏推荐
- Ten thousand words introduction, detailed explanation of the core technical points of Tencent interview (t1-t9), and arrangement of interview questions
- openGauss数据库源码解析系列文章—— 密态等值查询技术详解(下)
- 将vscode打造无敌的IDE(14) tasks.json和launch.json配置详解,随心所欲添加自动化任务
- Server deployment and instructions
- 【TcaplusDB知识库】TcaplusDB Tmonitor模块架构介绍
- npm install 问题解决(nvm安装与使用)
- golang goroutine、channel、time代码示例
- 139. word splitting
- 企业想上MES系统?还得满足这些条件
- golang冒泡排序代码实现
猜你喜欢

Detailed explanation of MQ message oriented middleware theory
![生成二叉搜索平衡树[利用树递归特性]](/img/b3/f8edf45bdfdced7c3698088dbf7d84.png)
生成二叉搜索平衡树[利用树递归特性]

Tips for accelerating file transfer between windows remote desktop connections

513. Find Bottom Left Tree Value

腾讯的技术牛人们,是如何完成全面上云这件事儿的?

openGauss数据库源码解析系列文章—— 密态等值查询技术详解(上)

Golang对JSON文件的写操作

SaaS 云工具,产业互联网下的变革利器

Sleuth + Zipkin

阻塞、非阻塞、多路复用、同步、异步、BIO、NIO、AIO 一文搞定
随机推荐
医学影像分割的网站
Quartz
XML
js 对象 使用小技巧
子级文件拖到上一级
多年亿级流量下的高并发经验总结,都毫无保留地写在了这本书中
ABP框架之——数据访问基础架构(下)
Generating binary search balanced tree [using tree recursion]
Improving efficiency or increasing costs, how should developers understand pair programming?
R语言使用magick包的image_scale函数对图像进行缩放(resize)、可以自定义从宽度或者高度角度进行缩放
leetcode:30. 串联所有单词的子串【Counter匹配 + 剪枝】
[openharmony] USB gadget configuration HDC function cfg file interpretation
MySQL中json_extract函数说明
Summarize the experience of purchasing Alibaba cloud servers
R语言使用tidyquant包的tq_transmute函数计算持有某只股票的天、月、周收益率、ggplot2使用条形图(bar plot)可视化股票月收益率数据、使用百分比显示Y轴坐标数据
readImg: 读取图片到Variable变量
[tcapulusdb knowledge base] Introduction to tmonitor stand-alone installation guidelines (I)
线上交流丨可信机器学习之机器学习与知识推理相结合(青源Talk第20期 李博)
规避这六大难点,成功实施MES系统
腾讯的技术牛人们,是如何完成全面上云这件事儿的?