Nginx
文章平均质量分 65
贼賊大宝
这个作者很懒,什么都没留下…
展开
-
FastDFS的nginx模块安装
FastDFS的nginx模块安装 FastDFS 安装教程 https://blog.csdn.net/m0_37633306/article/details/109562868 FastDFS 测试教程 https://blog.csdn.net/m0_37633306/article/details/109562963 nginx 安装教程 https://blog.csdn.net/m0_37633306/article/details/109562800 FastDFS的nginx原创 2020-11-08 19:03:49 · 444 阅读 · 0 评论 -
Nginx的反向代理配置实例
Nginx的反向代理配置实例 实例1 实现效果: 浏览器访问 http://ip:80/,访问到配置在 8080 端口的tomact服务 准备工作: tomact下 webapps目录下新建test文件夹,并在文件夹放置 test.html 设置tomact启动端口为8080 测试,浏览器输入:http://ip:8080/test/test.html 能访问到对应的html 配置Nginx流程 1.在Nginx的配置文件 nginx.conf 的 http 中增加内容 # rever原创 2020-11-01 19:41:25 · 62 阅读 · 0 评论 -
Nginx的常用命令和配置文件
Nginx的常用命令和配置文件 Nginx 操作的常用命令 前提:执行nginx命令需要先进入nginx的目录,/usr/local/nginx/sbin 1.查看Nginx版本 ./nginx -v 2.启动Nginx ./nginx 3.关闭Nginx ./nginx -s stop 4.重新加载Nginx (修改配置文件后) ./nginx -s reload 5.查看Nginx状态 ps -ef | grep nginx Nginx的配置文件 Nginx的配置文件的位置:usr/loc原创 2020-11-01 19:35:40 · 63 阅读 · 0 评论 -
Nginx的负载均衡配置实例
Nginx的负载均衡配置实例 实现效果 浏览器访问相同URL地址,页面的内容不同(访问到不同的服务器)。 准备条件 tomact1 端口 8081 tomact2 端口 8082 两个tomact的webapps下都有文件 **/loadBlance/test.html ** 建议两个 html 文件内容不同,便于观察效果 配置Nginx流程 1.在Nginx的配置文件 nginx.conf 的 http 中增加内容 upstream myserver { server localho原创 2020-11-01 19:42:49 · 218 阅读 · 0 评论 -
Nginx的动静分离配置实例
Nginx的动静分离配置实例 实现效果 浏览器可通过URL访问Nginx配置的静态资源 准备工作 新建文件夹 /data/nginx-static-data/ 在上面文件夹下,新建两个文件夹 page, image page 文件夹下放置文件 test.html image 文件夹下放置文件 test1.jpg 和 test2.jpg 配置Nginx流程 1.在Nginx的配置文件 nginx.conf 的 http 中增加内容 # sep-static-dynamic example serv原创 2020-11-01 19:50:29 · 88 阅读 · 0 评论 -
CentOS 7 系统中 Nginx的安装
Nginx的安装 1.所需要的包 nginx pcre openssl zlib 2.安装步骤 1.依赖包的安装 yum -y install make pcre pcre-devel zlib zlib-devel gcc-c++ libtool openssl openssl-devel 2.安装nginx nginx下载地址: http://nginx.org/ 上传安装包后解压 : tar -xvf 进入解压目录,执行: ./configure 编原创 2020-11-08 18:40:59 · 212 阅读 · 0 评论