上一页 1 ··· 5 6 7 8 9 10 下一页
摘要: 首先列出一些面试题目包括nginx和redis的。 1.、nginx 框架是怎样的 首先列出一些面试题目包括nginx和redis的。 1.、nginx 框架是怎样的 首先列出一些面试题目包括nginx和redis的。 1.、nginx 框架是怎样的 2. nginx负载均衡的算法怎么实现的,懵逼, 阅读全文
posted @ 2018-04-26 14:42 old_bird 阅读(21749) 评论(0) 推荐(3)
摘要: Nginx是网页服务器运维人员不可能绕开的一个弯,剩下几个比较高危的面试范围是:linux基础、网络知识基础、python,或许还会有zabbix等监控工具。这里先说nginx,后面几个肯定也会写。 试题 【试题1】缺省安装的 nginx + php-fpm 环境,假设用户浏览一个耗时的网页,但是却 阅读全文
posted @ 2018-04-26 14:39 old_bird 阅读(6807) 评论(0) 推荐(0)
摘要: 第1章 (一)基础口试题 1.1 详述 iptales 工作流程以及规则过滤顺序? 1.防火墙是一层层过滤的。实际是按照配置规则的顺序从上到下,从前到后进行过滤的。 2.如果匹配上了规则,即明确表明是阻止还是通过,此时数据包就不能向下匹配新规则了。 3.如果所有规则中没有明确表明是阻止还是通过这个数 阅读全文
posted @ 2018-04-26 14:32 old_bird 阅读(692) 评论(0) 推荐(0)
摘要: iptables防火墙可以用于创建过滤(filter)与NAT规则。所有Linux发行版都能使用iptables,因此理解如何配置 iptables将会帮助你更有效地管理Linux防火墙。如果你是第一次接触iptables,你会觉得它很复杂,但是一旦你理解iptables的工 作原理,你会发现其实它 阅读全文
posted @ 2018-04-26 14:22 old_bird 阅读(5005) 评论(0) 推荐(0)
摘要: 配置范例站点站点序号域名目录1www.heytool.com/www/html/www.heytool.com2bbs.heytool.com/www/html/bbs.heytool.com 修改nginx 配置文件:# vi nginx.confuser nobody nobody; # 运行 阅读全文
posted @ 2018-04-26 10:22 old_bird 阅读(184) 评论(0) 推荐(0)
摘要: 经过一段时间的使用,发现 nginx 在并发与负载能力方面确实优于 apache,现在已经将大部分站点从 apache 转到了 nginx 了。以下是 nginx 的一些简单的安装配置。环境操作系统: CentOS、 RedHatIP 地址: 192.168.1.202下载软件包# mkdir /u 阅读全文
posted @ 2018-04-26 09:34 old_bird 阅读(437) 评论(0) 推荐(0)
摘要: ./confiure 在./configure时,可能会报错,如下:./configure: error: the HTTP rewrite module requires the PCRE library.You can either disable the module by using --w 阅读全文
posted @ 2018-04-25 20:47 old_bird 阅读(719) 评论(0) 推荐(0)
摘要: import paramikoimport oshostname='192.168.76.10'username='root'# password='123456'ssh=paramiko.SSHClient()ssh.load_system_host_keys()# ssh.set_missing 阅读全文
posted @ 2018-04-20 12:22 old_bird 阅读(469) 评论(0) 推荐(0)
摘要: 原理 客户端生成公钥私钥,把公钥拷贝给linux服务器,用自己的私钥连接服务器。实现如下: 如果是两台Linux服用器A和B,A来实现免密码登录B mkdir /root/.ssh chmod 700 /root/.ssh 阅读全文
posted @ 2018-04-20 11:48 old_bird 阅读(434) 评论(0) 推荐(0)
摘要: # -*- coding: utf-8 -*- import paramikohostname='192.168.76.10'username='root'password='123456'paramiko.util.log_to_file('syslogin.log') ssh=paramiko. 阅读全文
posted @ 2018-04-20 10:40 old_bird 阅读(229) 评论(0) 推荐(0)
上一页 1 ··· 5 6 7 8 9 10 下一页