tomcat nginx https
Ubuntu18.04离线安装Nginx
1、安装gcc等依赖包 sudo apt update # 通过以下命令安装编译器和调试器,gdb是Linux下常用的程序调试器 sudo apt install build-essential gdb # 如果成功,则显示版本号 gcc --version g++ --version gdb -- ......
curl: (1) Protocol "https" not supported or disabled in libcurl
可以在命令行执行 curl --version 会发现这边有他的相关协议信息 会发现缺少了 https 这个时候 我们 安装下openssl 和 curl openssl 安装 wget https://www.openssl.org/source/openssl-3.0.1.tar.gz tar ......
tomcat 怎么设置多个端口号
今天呢 傻逼经理为了刁难我 让我在一个tomcat下面 给不同的页面 设置不同的端口号 按照以往的话 开发中一般就是一个项目对应一个端口号 然后我当时就有点蒙 给他怼过去了 mad 傻呗经理 不懂装懂 又爱装逼 我去你大爷的 然后呢 我就当着他的面百度啊 为了不让别人帮我 还把所有人都叫到办公室了 ......
锁表查询,转载 https://www.toutiao.com/article/7275538336188695099/?channel=&source=search_tab
Oracle 死锁与慢查询总结 查看死锁 SELECT s.sid "会话ID", s.lockwait "等待锁", s.event "等待的资源/事件", -- 最近等待或正在等待的资源/事件 DECODE(lo.locked_mode, 0, '尚未获得锁', 1, NULL, 2, '行共享 ......
nginx
神器 Nginx 的学习手册 原文链接:https://reurl.cc/5oOQ3R Nginx 是一个高性能的 HTTP 和反向代理服务器,特点是占用内存少,并发能力强,事实上 Nginx 的并发能力确实在同类型的网页服务器中表现较好。 Nginx 专为性能优化而开发,性能是其最重要的要求,十分 ......
nginx之模块
模块概述 nginx将各功能模块组织成一条链,当有请求到达的时候,请求依次经过这条链上的部分或者全部模块,进行处理。每个模块实现特定的功能。例如,实现对请求解压缩的模块,实现SSI的模块,实现与上游服务器进行通讯的模块,实现与FastCGI服务进行通讯的模块。 有两个模块比较特殊,他们居于nginx ......
nginx之connection
connection 概念 在nginx中connection就是对tcp连接的封装,其中包括连接的socket,读事件,写事件。 利用nginx封装的connection,我们可以很方便的使用nginx来处理与连接相关的事情,比如,建立连接,发送与接受数据等。而nginx中的http请求的处理就是 ......
nginx之日志配置
参考:https://www.cnblogs.com/biglittleant/p/8979856.html access_log access_log用来定义日志级别,日志位置。语法如下: 日志级别: debug > info > notice > warn > error > crit > al ......
nginx之location
location作用: 基于一个指令设置URI 基本语法 Syntax: location [ = | ~ | ~* | ^~ ] uri { ... } location @name { ... } Default: — Context: server, location = 精确匹配,如果找到匹 ......
nginx之配置系统
概述 nginx的配置系统由一个主配置文件和其他一些辅助的配置文件构成。这些配置文件均是纯文本文件,全部位于nginx安装目录下的conf目录下。 配置文件中以#开始的行,或者是前面有若干空格或者TAB,然后再跟#的行,都被认为是注释,也就是只对编辑查看文件的用户有意义,程序在读取这些注释行的时候, ......
nginx架构
参考:http://tengine.taobao.org/book/chapter_02.html#id1 基本架构 nginx在启动后,会有一个master进程和多个worker进程。 master进程主要用来管理worker进程,包含:接收来自外界的信号,向各worker进程发送信号,监控wor ......
SpringBoot项目启动报错:An incompatible version [1.1.22] of the Apache Tomcat Native library is installed, while Tomcat requires version [1.2.14]
问题解释: “安装了不兼容的Apache Tomcat原生库版本[1.1.22],而Tomcat需要版本[1.2.14]” 解决方法: ① 打开网页 http://archive.apache.org/dist/tomcat/tomcat-connectors/native/ ② ③ ④ ⑤ 复制到 ......
nginx疑问杂记
1、nginx的连接数和请求数有什么区别 1 在 Nginx 中,连接数和请求数是两个不同的概念。 2 3 连接数(Connections):连接数表示当前与 Nginx 服务器建立的活动连接数量。每个客户端与 Nginx 建立连接后,将占用一个连接数。连接数包括活跃连接和空闲连接。 4 5 活跃连 ......
安装Nginx
一、使用CentOS7自带Yum安装Nginx 1、在安装Nginx前,先执行以下命令更新Yum源: yum update 2、使用以下命令安装Nginx: yum install nginx 3、安装完成后,使用以下命令启动Nginx: systemctl start nginx 二、手动编译安装 ......
Tomcat优化
Tomcat优化 原因: Tomcat默认安装下的缺省配置并不适合生产环境,它可能会频繁出现假死现象需要重启,只有通过不断压测优化才能让它最高效率稳定的运行。优化主要包括三方面,分别为操作系统优化(内核参数优化),Tomcat配置文件参数优化,Java虚拟机(JVM)调优。 三方面:配置文件、操作系 ......
Grafana+Telegraf+Influxdb监控Tomcat集群方案
Grafana docker pull grafana/grafana mkdir -p /var/data/docker/grafana docker inspect docker.io/grafana/grafanadocker cp grafana:/var/lib/grafana/ /var ......
nginx https 403错误
user www www; worker_processes auto;worker_cpu_affinity auto; error_log /home/wwwlogs/nginx_error.log crit; pid /usr/local/nginx/logs/nginx.pid; #Spec ......
[2022 China Collegiate Programming Contest (CCPC) Guilin Site](https://codeforces.com/gym/104008) CEM
2022 China Collegiate Programming Contest (CCPC) Guilin Site CEM C. Array Concatenation 思路:数学推柿子 考虑有两种操作: 复制 \(b' = \{b_1,b_2,...,b_{|b|},b_1,b_2,..., ......
nginx docker-compose版本
version: '3' services: nginx: image: nginx:latest container_name: nginx ports: - "80:80" - "443:443" # 注意:首次启动,需要先注释掉volumes,启动后把docker容器中的文件复制(docker ......
Screen fragments should never be restored. Follow instructions from https://github.com/software-mansion/react-native-screens/issues/17#issuecomment-424704067 to properly configure your main activity.
Screen fragments should never be restored. Follow instructions from https://github.com/software-mansion/react-native-screens/issues/17#issuecomment-42... ......
JDK、tomcat、MySQL安装部署
大数据开发实战 计算机基础普及 [计算机基础与网络.1](动态主机配置协议 DHCP(Dynamic Host Configuration Protocol,动态主机配置协议) 是 RFC 1541(已被 RFC 2131 取代)定义的标准协议,该协议允许服务器向客户端动态分配 IP 地址和配置信息 ......
nginx基础
nginx基础 1、基本操作 1.1 yum 安装 # 查看nginx安装信息 [root@VM-4-3-centos ~]# nginx -V nginx version: nginx/1.24.0 built by gcc 4.8.5 20150623 (Red Hat 4.8.5-44) (G ......
tomcat服务器可以通过localhost:8080访问,但是访问不了webapps中部署的文件
我遇到的一个就是可以访问tomcat 首页,但是想访问webapps中的文件老是打不开,显示404或者其他,然后上网查了一下,原来是安装了多个版本,然后tomcat的环境配的有点乱,所以就访问不了,只要把其中一个删除了就行了 ......
linux服务器上的nginx服务、mysql服务和docker里面的php服务配合使用
之前有个老项目是nginx1.22.0+mysql5.7+php5.6的环境在跑,也就是常说的lnmp环境。 但是最近出了一个新的需求,这台服务器上要跑一个php7.3的项目,mysql5.7还可以用,nginx1.22.0也可以用,主要是php的环境要升级到7.3,那么方案应该怎么实施呢,大概有下 ......
tomcat出现Java heap space / PermGen space解决方法
JAVA_OPTS="$JAVA_OPTS -server -Xms800m -Xmx800m -XX:MaxNewSize=256m" 2、其次是:java.lang.OutOfMemoryError: PermGen space 原因: PermGen space的全称是Permanent Ge ......
tomcat出现Java heap space / PermGen space解决方法(详解)
使用Java程序从数据库中查询大量的数据时出现异常:java.lang.OutOfMemoryError: Java heap space在JVM中如果98%的时间是用于GC且可用的 Heap size 不足2%的时候将抛出此异常信息。JVM堆的设置是指java程序运行过程中JVM可以调配使用的内存 ......
Docker nginx 配置 SSL 证书 cannot load certificate
错误原因分析:cannot load certificate "/etc/nginx/test.com.crt": BIO_new_file() failed (SSL: error:02001002:system library:fopen:No such file or directory:fo ......