Fork me on GitHub
上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 24 下一页
摘要: 脚本如下: #/bin/bash SLEEPTIME=3 software=httpd rpm -q psmisc &>/dev/null || ( yum install psmisc -y )&>/dev/null #sleep 5 while :;do if ! killall -0 $sof 阅读全文
posted @ 2021-06-23 10:23 Alex-Lzy 阅读(178) 评论(0) 推荐(0) 编辑
摘要: 1 zcat /usr/share/doc/zabbix-server-mysql-*/create.sql.gz |mysql -uzabbix -pcentos -h192.168.1.4 2 ERROR 1046 (3D000) at line 1: No database selected 阅读全文
posted @ 2021-06-23 09:09 Alex-Lzy 阅读(691) 评论(0) 推荐(0) 编辑
摘要: 查看chmod [17:03:46 root@localhost data]#ll /usr/bin/chmod -rw-r--r--. 1 root root 58584 Nov 6 2016 /usr/bin/chmod 通过chmod自己给自己添加权限,显示拒绝 [17:03:58 root@ 阅读全文
posted @ 2021-06-16 17:13 Alex-Lzy 阅读(237) 评论(0) 推荐(0) 编辑
摘要: Tengine是由淘宝网发起的Web服务器项目。它在Nginx的基础上,针对大访问量网站的需求,添加了很多高级功能和特性。Tengine的性能和稳定性已经在大型的网站如淘宝网,天猫商城等得到了很好的检验。它的最终目标是打造一个高效、稳定、安全、易用的Web平台。 官网:http://tengine. 阅读全文
posted @ 2021-06-10 18:56 Alex-Lzy 阅读(197) 评论(0) 推荐(0) 编辑
摘要: 一、ip_hash vim /etc/nginx/nginx.conf http { upstream websrvs { server 192.168.1.4:80; server 192.168.1.6:80; server 127.0.0.1:8080 backup; ip_hash; } } 阅读全文
posted @ 2021-06-10 12:23 Alex-Lzy 阅读(479) 评论(0) 推荐(0) 编辑
摘要: 第三方模块是对nginx 的功能扩展,第三方模块需要在编译安装nginx 的时候使用参数--add-module=PATH指定路径添加,有的模块是由公司的开发人员针对业务需求定制开发的,有的模块是开源爱好者开发好之后上传到github进行开源的模块,nginx支持第三方模块,需要重新编译源码才能支持 阅读全文
posted @ 2021-06-10 10:59 Alex-Lzy 阅读(274) 评论(0) 推荐(0) 编辑
摘要: 定义与后端服务器建立连接的超时时长,如超时会出现502错误,默认为60s,一般不建议超出75s proxy_connect_timeout time; 对后端服务器send,将请求发送给后端服务器的超时时长;默认为60s proxy_send_timeout time; 从后端服务器read,等待后 阅读全文
posted @ 2021-06-08 15:32 Alex-Lzy 阅读(116) 评论(0) 推荐(0) 编辑
摘要: proxy_hide_header field; 用于隐藏后端服务器特定的响应首部,默认nginx在响应报文中不传递后端服务器的首部字段Date, Server, X-Pad, X-Accel等 测试访问: curl www.test.net/api/m.html -L -I HTTP/1.1 20 阅读全文
posted @ 2021-06-08 15:29 Alex-Lzy 阅读(1260) 评论(0) 推荐(0) 编辑
摘要: 文件服务器:192.168.1.6 ll -h m.html -rw-r--r-- 1 root root 587K Jun 8 13:06 m.html 测试服务器:192.168.1.4 没开启缓存前测试访问 ab -c1000 -n 2000 www.test.net/api/m.html T 阅读全文
posted @ 2021-06-08 14:20 Alex-Lzy 阅读(180) 评论(0) 推荐(0) 编辑
摘要: 默认后端服务器只能看到是前端nginx调度器访问的本机 针对前端只有单个代理服务器的解决办法 一、修改调度机nginx的虚拟主机的配置文件 设定转发往后端主机的请求报文的请求首部的值; vim /etc/nginx/conf.d/test.conf server { listen 80; serve 阅读全文
posted @ 2021-06-08 11:50 Alex-Lzy 阅读(2174) 评论(0) 推荐(0) 编辑
上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 24 下一页