一叶知秋.

业精于勤,荒于嬉;行成于思,毁于随。

上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 14 下一页
摘要: 1.nginx的状态统计 #vim /usr/local/nginx/conf/nginx.conf #在server块中添加: location /nginx_status{ stub_status on; #开启状态统计 access_log ogg; #状态统计不记录日志 } #验证: 2.目 阅读全文
posted @ 2020-08-19 21:05 ccku 阅读(331) 评论(0) 推荐(0) 编辑
摘要: nginx本身不支持对外部程序的直接调用或者解析,所有的外部程序包括php必须通过FastCGI接口来调用(FastCGI接口在Linux下是socket) 为了调用CGI程序,还需要FastCGI的wrapper,当nginx将cgi请求发送给这个socket的时候,通过fastcgi接口,wra 阅读全文
posted @ 2020-08-19 20:35 ccku 阅读(2224) 评论(0) 推荐(0) 编辑
摘要: 一、安装前的准备 1.环境准备 CentOS 6.x 64位 关闭SELinux和iptables 保证能正常连接互联网 2.配置网络yum源 (1)先将系统的yum配置文件备份拷贝到其他目录 cp /etc/yum.repo.d/* ~/bak (2)下载阿里云的yum源 #base源: wget 阅读全文
posted @ 2020-08-19 18:53 ccku 阅读(226) 评论(0) 推荐(0) 编辑
摘要: 一、nginx的工作原理 1.nginx采用了异步非阻塞的工作方式 epoll模型:当有i/o事件产生时,epoll就会告诉进程哪个连接由i/o事件产生,然后进程就会处理这个事件。 nginx配置use epoll后,以异步非阻塞的方式工作,能够处理百万计的并发连接 2.处理过程: 每进来一个请求, 阅读全文
posted @ 2020-08-19 18:44 ccku 阅读(2315) 评论(0) 推荐(0) 编辑
摘要: #!/bin/env bash while read line do echo $line done < ./age.txt #!/bin/env bash for i in `cat age.txt` do echo $i done #!/bin/env bash exec < age.txt w 阅读全文
posted @ 2020-08-19 17:39 ccku 阅读(341) 评论(0) 推荐(0) 编辑
摘要: nginx配置文件基本结构 http { …… server { …… location / { …… } } } 1.nginx最基础的功能是用来提供http服务的,所以跟http有关的公共配置,可以放在http块中; http块中又可以配置多个server,一个server就代表一个http服务 阅读全文
posted @ 2020-08-19 17:36 ccku 阅读(425) 评论(0) 推荐(0) 编辑
摘要: 环境: windows10 1903 SecureCRT 8.5.3 问题描述:我使用SecureCRT进行拷贝内容时弹出窗口"Could not open clipboard: Assess is denied" 无法打开剪切板,拒绝访问 原因:我使用的网易有道词典打开了"划词翻译"功能,这和我的 阅读全文
posted @ 2020-08-19 15:10 ccku 阅读(5791) 评论(0) 推荐(0) 编辑
摘要: 由于markdown语法目前还不支持这种语法,而博客园的超链接默认是页面内跳转,我们可以使用html语法,来实现markdown编写的超链接由新窗口打开 语法格式: <a href="链接" target="_blank">文字描述</a> 例如:新窗口打开本文 #博客园默认页面内跳转:Markdo 阅读全文
posted @ 2020-08-19 14:30 ccku 阅读(2349) 评论(0) 推荐(0) 编辑
摘要: 1.打开nginx官网: https://nginx.org 2.点击右侧菜单栏中的 documentation 3.下拉找到Modules reference(它的下边是模块列表),点击Alphabetical index of directives打开,可以看到指令列表(以字母顺序进行排序);进 阅读全文
posted @ 2020-08-19 14:21 ccku 阅读(643) 评论(0) 推荐(0) 编辑
摘要: 环境: centos 6.0 64位 nginx:1.12.2 问题:找不到libpcre.so.1 问题截图: 解决办法: 1.查找libpcre.so.1文件的位置 find / -name "libpcre.so.1 2.将/usr/local/lib重定向到/etc/ld.so.conf文件 阅读全文
posted @ 2020-08-18 16:36 ccku 阅读(1341) 评论(0) 推荐(0) 编辑
上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 14 下一页