Nginx+keepalived实现负载均衡高可用 By duncan21Posted on 2021 年 4 月 13 日2021 年 4 月 14 日Posted in LinuxTagged keepalived, 高可用No Comments on Nginx+keepalived实现负载均衡高可用 一,本文宗旨: 在一个集群中,一定会有代理服务器,如果只有单点的代理服务器,一旦它出现宕机,整个集群将失效!!!所有我们要避免出现这样的问题 二,实现方式: keepalived服务介绍[……] 阅读全文 Read More
[转]SVN客户端不显示绿色标识 By duncan21Posted on 2021 年 4 月 13 日2021 年 4 月 15 日Posted in LinuxTagged svn, 绿色标识No Comments on [转]SVN客户端不显示绿色标识 环境: svn客户端OS:Win7 问题: SVN服务端安装完成后,在Windows上安装svn客户端TortoiseSVN后,不显示绿色标识的 解决方法: 初次使用svn,在Windows上新[……] 阅读全文 Read More
Nginx转发TCP/UDP By duncan21Posted on 2021 年 4 月 12 日Posted in LinuxTagged tcp转发, udp转发No Comments on Nginx转发TCP/UDP 环境准备: [root@teddylu1987 teddylu]# cat /etc/redhat-release CentOS Linux release 7.9.2009 (Core) [r[......] 阅读全文 Read More
[转]七种HTTP头部设置保护你的网站应用安全 By duncan21Posted on 2021 年 4 月 11 日2021 年 4 月 11 日Posted in LinuxTagged add_headerNo Comments on [转]七种HTTP头部设置保护你的网站应用安全 1. Frame选项 在你的网站上设置X-Frame-Options头部可以保护你的网站内容被别人包含在一个iframe中,也就是Html的框架中,如果别人用iframe包含了你的网站页面,他们就可[……] 阅读全文 Read More
[转]Linux下删除^M文件的方法 By duncan21Posted on 2021 年 4 月 11 日Posted in LinuxTagged dos2unixNo Comments on [转]Linux下删除^M文件的方法 Unix系统里,每行结尾只有“<换行>”,即“\n”;Windows系统里面,每行结尾是“<换行><回车>”,即“\n\r”;Mac系统里,每行结尾是“&l[……] 阅读全文 Read More
Nginx实现后端节点健康检查功能 By duncan21Posted on 2021 年 4 月 10 日2021 年 4 月 10 日Posted in LinuxTagged check, nginx, upstream, 健康检查No Comments on Nginx实现后端节点健康检查功能 目前,作为代理服务器nginx对后端节点健康检查的方式主要有3种,这里列出: 1,ngx_http_proxy_module 模块和ngx_http_upstream_module模块(nginx自[……] 阅读全文 Read More
Screen的用法 By duncan21Posted on 2021 年 4 月 10 日Posted in LinuxTagged screenNo Comments on Screen的用法 需求 SSH连接中断时(如网络不稳定),运行在服务器上的命令也会中断,重新连接后,任务需要重新开始。 Screen服务可解决上述问题: 会话恢复:网络中断,也可恢复会话 多窗口:每[……] 阅读全文 Read More
ip6tables By duncan21Posted on 2021 年 4 月 8 日Posted in LinuxTagged ip6tablesNo Comments on ip6tables ip6tables命令和iptables一样,都是linux中防火墙软件,不同的是ip6tables采用的TCP/ip协议为IPv6。 [root@teddylu1987 teddylu]# i[……] 阅读全文 Read More
HTTP/3和QUIC及其实现方式 By duncan21Posted on 2021 年 4 月 7 日2023 年 8 月 2 日Posted in LinuxTagged http3, quicNo Comments on HTTP/3和QUIC及其实现方式 一.HTTP/3和QUIC的基本原理 1.什么是http3? HTTP/3 是即将到来的第三个主要版本的HTTP协议,使用于万维网。与其前任HTTP/1.1和HTTP/2不同,在HTTP/3中,将[……] 阅读全文 Read More
非交互式的方式修改root的密码 By duncan21Posted on 2021 年 4 月 7 日Posted in LinuxTagged 非交互式No Comments on 非交互式的方式修改root的密码 问题: 因为某些原因,导致无法使用正确的密码连接服务器,好在阿里云管理平台有一个交互式的命令行 解决: 适合Debian9.9系统,echo “root:123456″|chpass[……] 阅读全文 Read More
[转载]识别纳粹邪教组织 By duncan21Posted on 2021 年 4 月 6 日Posted in repostTagged 纳粹, 邪教No Comments on [转载]识别纳粹邪教组织 ◎纳粹洗脑主要几招: 1.宣传种族优越论、民族优越论、推崇民族主义 2.挑起各民族仇恨、搞民粹主义 3.不允许宗教文化自由,将魔鬼打造成神,统一思想,搞个人崇拜 4.统一组织,[……] 阅读全文 Read More
SecureCRT连接Ubuntu20报错:Key exchange failed By duncan21Posted on 2021 年 4 月 5 日2021 年 4 月 6 日Posted in LinuxTagged securecrt, ssh, ubuntuNo Comments on SecureCRT连接Ubuntu20报错:Key exchange failed 问题: 安装的Ubuntu20,SSH服务已安装,使用putty可以正常ssh远程登录进去,使用SecureCRT远程登录会报错如下: Key exchange failed. No comp[……] 阅读全文 Read More
禁止搜索引擎抓取和收录 By duncan21Posted on 2021 年 3 月 22 日2021 年 3 月 23 日Posted in LinuxTagged nginx, 抓取No Comments on 禁止搜索引擎抓取和收录 有时候我们会遇到这样的需求:不要让这个网站被收录。禁止收录? 方法一:通过<meta>标签实现禁止搜索引擎索引: <meta name="robots" content=[......]阅读全文 Read More
denyHosts防止ssh暴力破解 By duncan21Posted on 2021 年 3 月 21 日2021 年 5 月 14 日Posted in securityTagged denyHosts, secureNo Comments on denyHosts防止ssh暴力破解 介绍 DenyHosts是用python编写的一个程序。 当你的linux服务器暴露在互联网之中,服务器将会遭到互联网上的扫描软件进行扫描,并试图猜测SSH登录口令。 你会发现,每天会有多条[……] 阅读全文 Read More
升级centos7内核3.10到最新的5.11 By duncan21Posted on 2021 年 3 月 19 日2021 年 10 月 20 日Posted in LinuxTagged kernel, 内核No Comments on 升级centos7内核3.10到最新的5.11 What we will do: Update and Upgrade CentOS 7 Checking the Kernel Version Add ELRepo Repos[……] 阅读全文 Read More
Gravatar By duncan21Posted on 2021 年 3 月 19 日2021 年 3 月 19 日Posted in wordpressTagged avatar, gravatarNo Comments on Gravatar avatar 2009年的3D大片《阿凡达》让很多人熟悉了“”avatar这个单词,其实avatar在网络中也有“头像”之意,但并不是非常传统正式的用法,可以认为是词汇的词义延伸。 著名“[……] 阅读全文 Read More
集群中如何实现session共享 By duncan21Posted on 2021 年 3 月 19 日Posted in NoSQLTagged redis, 共享sessionNo Comments on 集群中如何实现session共享 环境: 集群:把众多的访问量分担到其他的服务器上,让每个服务器的压力减少。 通俗的解释就是:把一项任务交由一个开发人员处理总会有上限处理能力,这时可以考虑增加开发人员来共同处理这项任务[……] 阅读全文 Read More
让NGINX记录cloudflare用户的真实ip By duncan21Posted on 2021 年 3 月 18 日Posted in securityTagged realip3 Comments on 让NGINX记录cloudflare用户的真实ip 环境: 1.前端使用了cloudflare服务 2,NGINX上启用的模块: --with-http_realip_module So, using Nginx, edit your ng[......] 阅读全文 Read More
[转载]10个由Python构建的著名网站 By duncan21Posted on 2021 年 3 月 17 日2021 年 3 月 18 日Posted in PythonTagged ins3 Comments on [转载]10个由Python构建的著名网站 互联网上有成千上万通过python构建的网站。Python是由Guido van Rossum于1991年所创建的一种强大的编程语言,初学者以及经验丰富的开发人员均广泛使用Python。 当今许[……] 阅读全文 Read More
什么是云计算? By duncan21Posted on 2021 年 3 月 16 日2021 年 3 月 16 日Posted in could_computingTagged clould, 云计算No Comments on 什么是云计算? 一,什么是云计算? 云计算(英语:cloud computing),也被意译为网络计算,采用按使用量付费的定价方式的一种模式。它的底层是以虚拟化技术实现的。 互联网上的云计算服务特征和[……] 阅读全文 Read More