更新软件包 sudo apt update sudo apt install nginx 查看状态 sudo systemctl status nginx 状态显示绿色active表示正常运行 防火墙开放相关端口 sudo ufw allow 'Nginx Full' 重新加载规则 sudo ufw ...
分类:
系统相关 时间:
2021-05-24 15:33:12
阅读次数:
0
wget http://nginx.org/download/nginx-1.16.1.tar.gz # 解压 tar -xzf nginx-1.16.1.tar.gz cd nginx-1.16.1 # yum升级 yum update # yum安装依赖 yum -y install gcc p ...
分类:
Web程序 时间:
2021-05-24 15:28:40
阅读次数:
0
1 idea File 》 Settings 》Editor 》File Endcoding 》 UTF-8 2 idea 》 Edit Configuration tomcat Server 》VM options 》-Dfile.encoding=UTF-8 3 tomcat\conf 》log ...
分类:
其他好文 时间:
2021-05-24 14:24:24
阅读次数:
0
由于目前负责公司 DevOps 平台的前端开发工作的原因,工作中会经常遇到 nginx 服务器相关的维护工作,通过学习和工作实践积累了一些 nginx 服务器的相关配置经验和知识积累。 在之前的《前端性能优化 – 启用 GZip 压缩》一文中就给大家介绍过如何在 nginx 中开启 gzip。并且也 ...
分类:
其他好文 时间:
2021-05-24 14:01:55
阅读次数:
0
小猫的配置,方便项目测试,大家可以参考下 -noverify -javaagent:D:\tomcat_jrebel\jrebel.jar-Drebel.aspectj_plugin=true-Drebel.spring_plugin=true -Drebel.log4j-plugin=true-n ...
分类:
其他好文 时间:
2021-05-24 13:47:57
阅读次数:
0
1.工作原理: 用户第一次通过【手动方式】通知浏览器访问OneServlet。 OneServlet工作完毕后,将TwoServlet地址写入到响应头 location属性中,导致Tomcat将302状态码写入到状态行。 在浏览器接收到响应包之后,会读取到302状态。此时浏览器 自动根据响应头中lo ...
分类:
其他好文 时间:
2021-05-24 11:59:33
阅读次数:
0
1.原理: 用户第一次通过手动方式要求浏览器访问OneServlet。 OneServlet工作完毕后,通过当前的请求对象代替浏览器 向Tomcat发送请求,申请调用TwoServlet。 Tomcat在接收到这个请求之后,自动调用TwoServlet来 完成剩余任务 2.实现命令: 请求对象代替浏 ...
分类:
其他好文 时间:
2021-05-24 11:58:52
阅读次数:
0
尝试做 ingress 实验,发现被畜生的墙拦住下载不了 mandatory.yaml & service-nodeport.yaml。 https://raw.githubusercontent.com/kubernetes/ingress-nginx/nginx-0.30.0/deploy/st ...
分类:
其他好文 时间:
2021-05-24 11:09:02
阅读次数:
0
Nginx 下载与安装 Nginx 下载地址:http://nginx.org/en/download.html 选择windows版本,我使用的是 nginx/Windows-1.18.0 这个版本 下载完成后, 直接解压缩 将Nginx 添加到服务中去 下载工具 winsw: http://re ...
ConfigureAppConfiguration((hostingContext, config) => { config.AddCryptoFile(Path.Combine(AppContext.BaseDirectory, "appsettings.json.crypto"), true); ...
分类:
Web程序 时间:
2021-05-24 10:20:52
阅读次数:
0