摘要: http://albertbamboo.cn/linux/firewall/iptables/2019/09/01/ubuntu-port-problem.html 阅读全文
posted @ 2023-05-16 09:03 taotao12 阅读(7) 评论(0) 推荐(0) 编辑
摘要: 1.设置静态文件缓存时间 location ~* \.(jpg|jpeg|gif|png|css|js|ico|xml)$ { expires 30d; } 2.修改nginx进程数,一般与cpu核数相同 ,nginx的连接数改成65535 ulimit -aulimit -Hn 100000 硬限 阅读全文
posted @ 2021-12-30 17:13 taotao12 阅读(22) 评论(0) 推荐(0) 编辑
摘要: ./configure --prefix=/usr/local/nginx 安装在哪个目录 --with-http_ssl_module ssl模块 --with-http_sub_status_module 查看状态码的模块 --with-stream tcp、dup转发流量 vim /usr/l 阅读全文
posted @ 2021-12-30 15:24 taotao12 阅读(34) 评论(0) 推荐(0) 编辑
摘要: stream{ upstream backup{ server 103.229.213.228:22; server 103.229.215.172:22; } server{ listen 12345; #proxy_connect_timeout 1s; #proxy_timeout 3s; p 阅读全文
posted @ 2021-12-28 15:59 taotao12 阅读(350) 评论(0) 推荐(0) 编辑
摘要: 2.动态脚本的设置 3.ssl证书 阅读全文
posted @ 2021-12-27 17:48 taotao12 阅读(38) 评论(0) 推荐(0) 编辑
摘要: 1.nginx下载地址 链接:https://pan.baidu.com/s/1OJ91YU_ZywefWKJOIM8gFg 提取码:3rcj 2.解压 [root@10-100-10-21 nginx-1.4.7]# tar -xf nginx-1.4.7.tar.gz 3. 安装c语言解释器、加 阅读全文
posted @ 2021-12-24 15:11 taotao12 阅读(40) 评论(0) 推荐(0) 编辑
摘要: 一.第一台web主机 1.hostnamectl set-hostname web1 systemctl stop firewalld setenforce 0 //关闭防火墙和selenx 2.yum -y install httpd 3.echo "第一台web主机"> /var/www/htm 阅读全文
posted @ 2021-11-23 14:44 taotao12 阅读(36) 评论(0) 推荐(0) 编辑
摘要: 1.yum -y install ipvsadm 2.创建虚拟服务器 ipvsadm -A -t 192.168.4.5:80 -s wrr3.创建真实服务器 ipvsadm -a -t 192.168.4.5:80 -r 103.229.213.251 ipvsadm -a -t 192.168. 阅读全文
posted @ 2021-11-23 12:19 taotao12 阅读(27) 评论(0) 推荐(0) 编辑
摘要: 存储 DAS(直连存储)ide 线、satu线、sas线 NAS(网络附加存储)Samba、nfs、ftp SAN(存储区域网络)iscsi SDS(软件定义分布式存储网络ceph、glusterfs) 块存储:没格式化的叫块存储 文件存储:格式话的叫文件存储 ceph: 1.ceph是一个分布式文 阅读全文
posted @ 2021-11-22 15:58 taotao12 阅读(75) 评论(0) 推荐(0) 编辑
摘要: [Huawei]ospf 1 //开启ospf [Huawei-ospf-1]area 0 [Huawei-ospf-0.0.0.0]network 192.168.1.0 0.255.255.255 //宣告所在网段 [Huawei]ip route-static 0.0.0 0 192.168. 阅读全文
posted @ 2021-11-21 13:53 taotao12 阅读(124) 评论(0) 推荐(0) 编辑