Nginx运维
文章平均质量分 79
何沐阳(qq2206952220)
这个作者很懒,什么都没留下…
展开
-
Nginx直播推流,这一篇补我去年的另一篇
转发一篇写的挺好的博客,讲述了OBS怎么推流的。https://www.heizhai.org/link/Ms1PDtw42S1Ue86d?mu=0转载 2019-12-22 22:21:16 · 695 阅读 · 0 评论 -
动静分离测试
1、动态页面jsp的构建进入到apache-tomcat的目录下面,到root目录下面,新建time.jsp;<%@ page contentType="text/html;charset=UTF-8" language="java" import="java.util.*" %><html> <head> ...原创 2019-09-11 20:43:33 · 179 阅读 · 0 评论 -
Nginx作为负载均衡服务-Upstream参数
原创 2019-09-10 17:25:54 · 95 阅读 · 0 评论 -
Django部署阿里云服务时候报错:SQLite 3.8.3 or later is required (found 3.7.17)
https://blog.csdn.net/qq_39969226/article/details/92218635转载 2019-09-10 11:01:33 · 145 阅读 · 0 评论 -
基于Django框架的Uwsgi反向代理
uwsgi和django-admin后面要用到,如果为了方便,你也可以设置软链接。创建一个django框架的demo[root@iZwz97473w2ydu1pgsmzk4Z run]# mkdir uwsgi[root@iZwz97473w2ydu1pgsmzk4Z run]# lsatd.pid cron.reboot firewalld netr...原创 2019-09-10 11:00:43 · 299 阅读 · 0 评论 -
Django环境部署
python3.6,django,uwsgi安装: 可以说,这波安装是非常踩坑了,我以为最新的版本是最好的,安装了最新的版本,结果安装了之后发现python3.7没有pip,我是真的懵圈。第一步:注意,不要害怕版本冲突问题,千万不要删除python2.7,因为这个yum使用的解释器是2.7版本的,如果你卸载2.7.yum无法使用,你卸载yum,这个系统也基本就没...原创 2019-09-09 19:39:25 · 139 阅读 · 0 评论 -
fastcgi-缓存配置
Syntax: fastcgi_ignore_headersfield...; Default: — Context: http,server,location Disables processing of certain response header fields from the FastCGI server. The follo...原创 2019-09-09 09:25:48 · 274 阅读 · 0 评论 -
LNMP应用-wordpress开源博客系统的搭建
建议在搭建这个系统之前,大家先学习这两篇博客。mysql密码权限级别的设置:https://blog.csdn.net/hello_world_qwp/article/details/79551789try_files配置:https://blog.51cto.com/13322786/21615761、WordPress官网:https://cn.wordpress.org/2、...原创 2019-09-09 21:52:22 · 105 阅读 · 0 评论 -
官网解读-fastcgi_param
Syntax: fastcgi_paramparametervalue[if_not_empty]; Default: — Context: http,server,location Sets aparameterthat should be passed to the FastCGI server. Thevaluecan contain text...原创 2019-09-08 14:12:33 · 207 阅读 · 0 评论 -
LNMP-fastcgi配置-PHP环境搭建
一、二、环境部署1、安装php的解释环境#添加支持yum repo源yum install http://rpms.remirepo.net/enterprise/remi-release-7.rpm yum install yum-utils yum-config-manager --enable remi-php72#Centos6的系统安装http...原创 2019-09-08 18:57:56 · 260 阅读 · 0 评论 -
websocket代理
我的官网解读博客:https://blog.csdn.net/qq_41904061/article/details/100606098握手机制:刷新:配置文件:原创 2019-09-08 10:20:55 · 1999 阅读 · 0 评论 -
官网解读-WebSocket proxying
http协议升级机制:https://developer.mozilla.org/zh-CN/docs/Web/HTTP/Protocol_upgrade_mechanismTo turn a connection between a client and server from HTTP/1.1 into WebSocket, theprotocol switchmechanism ava...原创 2019-09-07 20:29:25 · 629 阅读 · 0 评论 -
官网解读-Module ngx_http_slice_module
Example ConfigurationDirectives sliceEmbedded Variables Thengx_http_slice_modulemodule (1.9.8) is a filter that splits a request into subrequests, each returning a certain range of respo...原创 2019-09-08 10:12:37 · 444 阅读 · 0 评论 -
官网解读-Module ngx_http_rewrite_module
Thengx_http_rewrite_modulemodule is used to change request URI using PCRE regular expressions, return redirects, and conditionally select configurations.Thebreak,if,return,rewrite, andsetdir...原创 2019-09-12 16:54:47 · 104 阅读 · 0 评论 -
Rewrite规则-Rewrite作用
下面PPT有一处错误,是不是介绍,是结束转载 2019-09-11 21:14:06 · 267 阅读 · 0 评论 -
Ningx-Rewrite
https://www.cnblogs.com/dadonggg/p/7797281.html转载 2019-09-12 16:57:22 · 67 阅读 · 0 评论 -
Nginx搭建视频点播和视频直播服务器
Nginx搭建视频点播和视频直播服务器一·、环境:Centos 7,(推荐,Ubuntu不是很好用,经常会有一些莫名其妙的报错)Nginx1.10.1二、系统环境搭建首先,我是不建议自己一个个去安装这些软件的,耗时耗力,而且,容易出错,所以,最好使用yum install ***命令安装,出错的概率小。资源链接:链接:https://pan.baidu.com/s/1WmJYpQ_b...原创 2019-05-02 18:47:53 · 24533 阅读 · 1 评论 -
Openresty环境安装
openresty官网:http://openresty.org/cn/installation.html原创 2019-09-17 11:34:38 · 61 阅读 · 0 评论 -
geoip地理位置获取
可能很多网上博客都说在上图所示网址下载,但是经过测试好几次后,发现页面是找不到的,这儿有一个暂时可以用的网址: https://src.fedoraproject.org/lookaside/pkgs/GeoIP/GeoIP.dat.gz/4bc1e8280fe2db0adc3fe48663b8926e/GeoIP.dat.gzhttps://src.fedoraproject.or...原创 2019-09-16 12:53:37 · 1214 阅读 · 0 评论 -
灰度发布-Lua-tomcat
1、首先我们开启两个服务:tomcat8080,tomcat8081。[root@iZwz97473w2ydu1pgsmzk4Z apache-tomcat-9.0.24]# clear[root@iZwz97473w2ydu1pgsmzk4Z apache-tomcat-9.0.24]# pwd/home/admin/software/apache-tomcat-9.0.2...原创 2019-09-15 21:13:12 · 345 阅读 · 0 评论 -
Nginx+Lua实现WAF应用防火墙
Nginx+Lua实现WAF应用防火墙https://www.xuliangwei.com/bgx/1022.html转载 2019-09-15 20:56:10 · 143 阅读 · 0 评论 -
Nginx中~^正则表达什么意思
这里代表正则表达式匹配:~^ 表示匹配以什么规则开头。1、正则表达式是一种特殊的字符串模式,用于匹配一组字符串,就好比用模具做产品,而正则就是这个模具,定义一种规则去匹配符合规则的字符。举例:location~^/v1/.*/xxx.*{//此处省略}表示:匹配以v1开始,且跳过任意字符串,且后面包含xxx的url路径。...原创 2019-09-15 20:54:47 · 14178 阅读 · 0 评论 -
Nginx调用Lua指令及Luaapi
原创 2019-09-15 11:28:31 · 339 阅读 · 0 评论 -
Ningx与Lua的开发环境-动态添加模块
1、查看本机Ningx版本:nginx -v2、查看已安装模块,以及prefix和二进制文件存放等信息:nginx -V把这个打印出来的日志拷贝出来,一会儿将会用到。--prefix=/etc/nginx --sbin-path=/usr/sbin/nginx --modules-path=/usr/lib64/nginx/modules --conf-path=/etc/nginx...原创 2019-09-15 11:19:38 · 122 阅读 · 0 评论 -
Lua语法基础
Doublelocalhttps://github.com/simpl/ngx_devel_kit/archive/v0.3.0.tar.gzhttps://github.com/openresty/lua-nginx-module/archive/v0.10.9rc7.tar.gz原创 2019-09-15 10:23:19 · 54 阅读 · 0 评论 -
Nginx与LUA的开发优势
原创 2019-09-12 20:49:30 · 298 阅读 · 0 评论 -
Nginx内置变量
https://blog.csdn.net/leonnew/article/details/82732120转载 2019-09-12 19:32:01 · 66 阅读 · 0 评论 -
Nginx缓存命中率分析与统计
大致分为两种方式通过设置response头信息设置打印信息格式,查看打印日志缓存命中分析awkhttps://www.runoob.com/linux/linux-comm-awk.html原创 2019-09-08 10:12:02 · 248 阅读 · 0 评论 -
Ningx-反向代理-初步配置展示
输入Ngnix -V,查看编译信息,在这里插入代码片[root@izwz97473w2ydu1pgsmzk4z nginx]# nginx -Vnginx version: nginx/1.16.0built by gcc 4.8.5 20150623 (Red Hat 4.8.5-36) (GCC) built with OpenSSL 1.0.2k-fips 26 Jan 2...原创 2019-08-07 21:20:56 · 249 阅读 · 0 评论 -
2019-7-31-nginx-gzip命令
Mandatory arguments to long options are mandatory for short options too.-c, --stdout write on standard output, keep original files unchanged-d, --decompress decompress-f, --force force ...原创 2019-07-31 18:59:01 · 95 阅读 · 0 评论 -
正则表达式-~^排错
首先给大家看下错误日志:[root@VM_0_6_centos myfile]# tail -f /var/log/nginx/error.log2019/07/31 18:32:39 [error] 17672#0: *2291 open() "/home/myfile/fhtml/cross/download/index.htm" failed (2: No such file or di...原创 2019-07-31 18:53:47 · 181 阅读 · 0 评论 -
官网解读-Ningx-单词关
subscription原创 2019-08-05 16:09:01 · 54 阅读 · 0 评论 -
官网解读-Ningx-ngx_http_gzip_static_module
**Module ngx_http_gzip_static_module**Example ConfigurationDirectivesgzip_staticThe ngx_http_gzip_static_module module allows sending precompressed files with the “.gz” filename extension instea...原创 2019-07-30 21:42:29 · 601 阅读 · 0 评论 -
官网解读-nginx-Module ngx_http_gzip_module
Module ngx_http_gzip_moduleExample ConfigurationDirectivesgzipgzip_buffersgzip_comp_levelgzip_disablegzip_http_versiongzip_min_lengthgzip_proxiedgzip_typesgzip_varyEmbedded VariablesThe n...原创 2019-07-30 21:14:06 · 265 阅读 · 0 评论 -
官网解读-nginx-ngx_http_auth_basic_module
Module ngx_http_auth_basic_moduleExample Configuration(配置举例)Directivesauth_basicauth_basic_user_fileThe ngx_http_auth_basic_module module allows limiting access to resources by validating the use...原创 2019-07-30 21:14:43 · 605 阅读 · 0 评论 -
Nginx-缓存服务-指令篇
关于各个指令的解释:proxy_cache_path:缓存文件的存放位置levels:缓存目录级,最高是三层keys_zone: 缓存块名称以及内存大小,如图,声明一个名为imooc_cache的大小为10m的缓存块。一般1m可以存放8000左右个key。key我们下面将会提到。max_size:缓存区硬盘的最大值,(也就是我们刚刚上面定义的cache_path下面的文件大小最大值),...原创 2019-08-07 20:21:22 · 150 阅读 · 0 评论 -
2019-08-05-nginx卸载
https://blog.csdn.net/broadview2006/article/details/54570943https://blog.csdn.net/this_is_me_anyway/article/details/83479529单网卡添加多个IP命令(局域网):ip a add 192.168.127.125/24 dev ens33批量删除卸载第一步:停止...原创 2019-08-06 20:16:09 · 132 阅读 · 0 评论 -
Nginx-反向代理-实验演示部分
同一个URL,访问之后出现了不同的页面,这是因为我们在后台配置了代理,但是,没有开启缓存,所以导致了下面这种情况。代理服务器配置部分:upstream muyang { server 192.168.127.130:80; server 192.168.127.130:81; server 192.168.127.130:82;}proxy_cach...原创 2019-08-08 21:23:12 · 257 阅读 · 0 评论 -
Nginx中如何获取用户真实的IP
https://blog.csdn.net/broadview2006/article/details/54570943网卡接口删除IP命令:ip a delete 192.168.1.1/24 dev ens33(你的设备名称);centos6.0启动命令:service iptables start原创 2019-08-08 20:29:55 · 344 阅读 · 0 评论 -
Nginx中PID文件丢失处理
重启原创 2019-08-08 18:53:27 · 987 阅读 · 0 评论