摘要: 通过 html 标签设置 cache-control 不推荐,不靠谱 <meta http-equiv="Pragma" content="no-cache" /> <meta http-equiv="Expires" content="0" /> <meta http-equiv="Cache-C 阅读全文
posted @ 2024-08-20 15:28 火炬冬天 阅读(3) 评论(0) 推荐(0) 编辑
摘要: http { ... server { listen 80; server_name localhost; location / { root /opt/web/dist; if ($http_user_agent ~* (mobile|nokia|iphone|ipad|android|samsu 阅读全文
posted @ 2024-08-01 09:13 火炬冬天 阅读(51) 评论(0) 推荐(0) 编辑
摘要: 9.1 安装依赖 #全局安装prisma cnpm install prisma -g #添加开发依赖 cnpm install prisma --save-dev #创建 Prisma 架构文件模板,设置 Prisma ORM 项目 npx prisma init #安装并生成 Prisma Cl 阅读全文
posted @ 2024-07-31 15:42 火炬冬天 阅读(17) 评论(0) 推荐(0) 编辑
摘要: 一、连接工具 (1)(推荐,免费)FinalShell FinalShell SSH工具,服务器管理,远程桌面加速软件,支持Windows,macOS,Linux,版本4.3.10,更新日期2023.12.31 - FinalShell官网 (hostbuf.com) (2)XShell (有家庭和 阅读全文
posted @ 2024-05-28 17:36 火炬冬天 阅读(7) 评论(0) 推荐(0) 编辑
摘要: 地址:http://47.116.162.120:8080/ 18年写的东西 效果图: 阅读全文
posted @ 2024-04-28 15:39 火炬冬天 阅读(4) 评论(0) 推荐(0) 编辑
摘要: 1、nvm install 安装失败 D:\test\nextapp> nvm install 18.20.0 Downloading node.js version 18.20.0 (64-bit)... Extracting node and npm... ERROR moving file: 阅读全文
posted @ 2024-04-02 10:20 火炬冬天 阅读(503) 评论(0) 推荐(0) 编辑
摘要: 运行服务时报错 sudo systemctl start ComServer.service sudo systemctl status ComServer.service × ComServer.service - MESAPI services Loaded: loaded (/etc/syst 阅读全文
posted @ 2024-03-20 14:36 火炬冬天 阅读(253) 评论(0) 推荐(0) 编辑
摘要: 一、centos7以上环境 推荐centos环境,比较简单 安装nginx yum install nginx 允许nginx开机自启动 systemctl enable nginx 二、windows环境 下载nginx https://nginx.org/en/download.html 准备工 阅读全文
posted @ 2023-12-18 18:00 火炬冬天 阅读(709) 评论(0) 推荐(0) 编辑
摘要: ## 修改nginx.conf文件 ### 在最上面修改 ``` #user nobody; #原先是这个,在这一行下新增 user root; #确保nginx使用用户和启动用户一致 ``` 查看使用用户和启动用户 `ps aux | grep nginx` ### 在http里面新增定义 ``` 阅读全文
posted @ 2023-09-08 17:57 火炬冬天 阅读(288) 评论(0) 推荐(0) 编辑
摘要: ## 一、发布程序 以.net,把发布包整个拷到/opt/api下,全目录地址为:/opt/api/server,执行程序是testServer 为例 ## 二、编写执行脚本 在opt/api下新建执行脚本start.sh,内容如下 ``` #!/bin/bash /opt/api/server/t 阅读全文
posted @ 2023-08-30 17:38 火炬冬天 阅读(74) 评论(0) 推荐(0) 编辑