postman教程
Postman 使用教程Postman 是一个强大的 API 开发工具,提供了简洁易用的界面来创建、测试和管理 API 请求。以下是 Postman 的基本使用方法和一些常见操作。
1. 安装 Postman下载并安装
前往 Postman 官网,下载适用于你操作系统的 Postman 安装包。
下载完成后,按照安装向导进行安装。
2. 创建和发送请求创建一个新的请求
打开 Postman。
点击左上角的 New 按钮,选择 HTTP Request。
输入请求的 URL 和方法(GET、POST、PUT、DELETE 等)。
在 Params 选项卡中,可以添加查询参数。
在 Headers 选项卡中,可以添加请求头信息。
在 Body 选项卡中,可以设置请求体(适用于 POST、PUT 等方法)。
发送请求
填写完请求信息后,点击 Send 按钮。
请求结果将显示在下方的 Response 面板中,包含响应状态码、响应头和响应体。
3. 保存请求保存单个请求
发送请求后,点击请求名称右侧的 Save 按钮。
选择保存的位置,可以是一个新的或已有的集合(Collection)。 ...
tomcat教程
Apache Tomcat 使用教程
Apache Tomcat 是一个开源的 Java Servlet 容器,用于运行 Java Servlet 和 JavaServer Pages (JSP) 应用。以下是 Tomcat 的安装、配置和基本使用方法。
1. 下载和安装 Tomcat下载 Tomcat
前往 Apache Tomcat 官网,选择一个稳定版本下载。
下载适用于你操作系统的二进制发行版(如 .zip 或 .tar.gz 文件)。
安装 Tomcat
将下载的压缩文件解压到一个目录中,例如 C:\tomcat 或 /usr/local/tomcat。
Tomcat 不需要额外的安装步骤,只需解压即可使用。
2. 配置环境变量为了方便使用 Tomcat,可以将 Tomcat 的 bin 目录添加到系统的环境变量中。
在 Windows 上
右键单击“此电脑”,选择“属性”。
点击“高级系统设置”,然后点击“环境变量”。
在“系统变量”中,找到并选择 Path,点击“编辑”。
点击“新建”,然后添加 Tomcat 的 bin 目录路径(例如 C:\tomcat\bin) ...
nginx使用教程
nginx 的使用教程
Nginx 是一个高性能的 HTTP 和反向代理服务器,也是一个 IMAP/POP3/SMTP 代理服务器。以下是一个基本的 Nginx 使用教程,涵盖了安装、基本配置和常见的使用场景。
安装 Nginx在 Ubuntu 上安装 Nginx
12sudo apt updatesudo apt install nginx
在 CentOS 上安装 Nginx
12sudo yum install epel-releasesudo yum install nginx
启动和停止 Nginx
123456789101112131415# 启动 Nginxsudo systemctl start nginx# 停止 Nginxsudo systemctl stop nginx# 重启 Nginxsudo systemctl restart nginx# 查看 Nginx 状态sudo systemctl status nginx#设置开机启动sudo systemctl enable nginx
Windows操作系统上打开并运行Nginx
...
博客搭建
winddows系统安装hexo博客框架并部署到github
第一部分1、安装环境node.js
安装时注意添加路径
1https://nodejs.org/en/
2、安装git bash
1https://git-scm.com/download/win
在 git bash 中输入以下命令启用 Hexo镜像
1npm config set registry https://registry.npm.taobao.org
在 git bash 中输入以下命令开始全局安装 Hexo,新建一个文件夹,在文件夹内右键打开git bash
1npm install -g hexo-cli
如果全局安装 Hexo的时候失败,提示证书过期
1npm cache clean --force
:用于强制清理 npm 缓存,解决缓存问题或释放磁盘空间。
1npm config set strict-ssl false
:用于禁用 npm 的严格 SSL 检查,解决 SSL 证书验证错误,但会降低通信的安全性。
在 git bash 中输入,
1hexo init 自定义博客名
完后会 ...
Hello World
Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer in troubleshooting or you can ask me on GitHub.
Quick StartCreate a new post1$ hexo new "My New Post"
More info: Writing
Run server1$ hexo server
More info: Server
Generate static files1$ hexo generate
More info: Generating
Deploy to remote sites1$ hexo deploy
More info: Deployment

