摘要: http { map $http_upgrade $connection_upgrade { default upgrade; '' close; } server { ... location /chat/ { proxy_pass http://backend; proxy_http_versi 阅读全文
posted @ 2020-07-09 21:58 粗哥 阅读(201) 评论(0) 推荐(0) 编辑
摘要: user www www; worker_processes 2; pid /var/run/nginx.pid; # [ debug | info | notice | warn | error | crit ] error_log /var/log/nginx.error_log info; e 阅读全文
posted @ 2020-07-09 21:56 粗哥 阅读(303) 评论(0) 推荐(0) 编辑
摘要: #part1 install and config kerberos yum -y install krb5-server vi /etc/krb5.conf # Configuration snippets may be placed in this directory as wellinclud 阅读全文
posted @ 2018-09-03 14:46 粗哥 阅读(920) 评论(0) 推荐(0) 编辑
摘要: 查看文件i节点: ls -i filename [root@localhost]# ls -i *44454372 !123 find ./ -inum 44454372 -print -exec rm -f {} \; 阅读全文
posted @ 2018-05-21 13:14 粗哥 阅读(138) 评论(0) 推荐(0) 编辑
摘要: sar(System Activity Reporter系统活动情况报告)是目前 Linux 上最为全面的系统性能分析工具之一,可以从多方面对系统的活动进行报告,包括:文件的读写情况、系统调用的使用情况、磁盘I/O、CPU效率、内存使用状况、进程活动及IPC有关的活动等。本文主要以CentOS 6. 阅读全文
posted @ 2018-05-07 11:15 粗哥 阅读(8860) 评论(0) 推荐(0) 编辑
摘要: Server #!/bin/bash VIP=10.132.2.254RIP1=10.132.2.17RIP2=10.132.2.18 #./etc/rc.d/init.d/functionscase "$1" in start ) echo "start LVS of Director Serve 阅读全文
posted @ 2018-05-04 14:27 粗哥 阅读(201) 评论(0) 推荐(0) 编辑
摘要: #dmesg 信息: [1839688.658040] net_ratelimit: 305 callbacks suppressed[1839688.658060] nf_conntrack: table full, dropping packet[1839688.674631] nf_connt 阅读全文
posted @ 2018-04-29 19:51 粗哥 阅读(294) 评论(0) 推荐(0) 编辑
摘要: 如何修改windows下的时间同步间隔操作步骤如下: 1. 打开注册表:在“开始”菜单→“运行”项下(或按Win+R)输入“Regedit”进入注册表编辑器。 2.修改默认时间服务器IP: 展开HKEY_LOCAL_MACHINE->SYSTEM->CurrentControlSet->Servic 阅读全文
posted @ 2017-08-17 20:17 粗哥 阅读(3249) 评论(0) 推荐(0) 编辑
摘要: pip3 install virtualenv #安装虚拟环境 C:\Users\Administrator>virtualenv testdir1 #创建一个名为testdir1的虚拟python环境Using base prefix 'd:\\python\\python36'New pytho 阅读全文
posted @ 2017-07-13 14:41 粗哥 阅读(256) 评论(0) 推荐(0) 编辑
摘要: nginx1 ip:192.168.12.4 #MASTERnginx2 ip:192.168.12.10 #BACKUPnginx_vip :192.168.12.100 原理可参考:http://www.keepalived.org/documentation.html系统为CentOS7 1、 阅读全文
posted @ 2017-07-12 11:33 粗哥 阅读(391) 评论(0) 推荐(0) 编辑