环境两台LB(nginx)、两台web(nginx/apache都行) 安装httpd web01 web02 两台LB lb01和lb02配置相同 环境准备 下载软件 解压、配置、编译、安装 ...
分类:
其他好文 时间:
2016-11-17 19:32:50
阅读次数:
208
1.清除当前iptables规则iptables-F
iptables-Z
iptables-X2.定义规则iptables-POUTPUTACCEPT
iptables-PFORWARDACCEPT
iptables-AINPUT-ptcp--dport22-jACCEPT
iptables-AINPUT-ptcp-s10.0.0.0/24-jACCEPT
iptables-PINPUTDROP查看当前定义的规则[root@lb01~]#iptables-nL
Chai..
分类:
其他好文 时间:
2016-09-26 01:03:01
阅读次数:
238
系统版本:ubuntu14.04.3LTS服务器准备:lb01—>ifconfig显示结果:192.168.91.136作用:安装keepalived及nginxlb02—>ifconfig显示结果:192.168.91.135作用:安装keepalived及nginxweb01—>ifconfig显示结果:192.168.91.134作用:安装nginx负责展示index.html页面w..
分类:
系统相关 时间:
2016-09-18 06:42:54
阅读次数:
263
1、which[root@lb01~]#whichpasswd
/usr/bin/passwd
#which-showsthefullpathof(shell)commands.
#显示命令的全路径2、whereis[root@lb01~]#whereispasswd
passwd:/usr/bin/passwd/etc/passwd/usr/share/man/man5/passwd.5.gz/usr/share/man/man1/passwd.1.gz
#whereis-locatet..
分类:
系统相关 时间:
2016-08-31 12:22:56
阅读次数:
187
第2章第2周课前测试考试题2.1过滤一级目录第1题如何过滤出已知当前目录下oldboy中的所有一级目录(提示:不包含oldboy目录下面目录的子目录及隐藏目录,即只能是一级目录)?[root@lb01~]#mkdir/oldboy/{a..b}/{c..g}/{e..f}-p方法一[root@lb01~]#tree-L1-dfi/oldboy/
/oldboy
/ol..
分类:
其他好文 时间:
2016-08-26 15:39:48
阅读次数:
399
2.笔试题-12.1新建一个用户user,密码是123456,并将其加到root组useradduser-Groot&&echo"123456"|passwd--stdinuser2.2显示当前系统的日期和时间[root@lb01/]#date+%F
2016-08-25
[root@lb01/]#date+%X
10时16分25秒
[root@lb01/]#date+%H:%M:%S
10:17:452.3如何查看..
分类:
系统相关 时间:
2016-08-25 22:00:31
阅读次数:
334
blog.etiantian.org10.0.0.17lb01主10.0.0.5bbs.etiantian.org10.0.0.18lb02主10.0.0.6说明:后端的web服务器一个是apacheweb服务,一个nginx服务测试,,选用静态的html,不涉及nfs以及mysql1.A1-nginx负载服务器01-10.0.0.5-lb01①查看keepalive的配置文件[root@lb01~]#cat/e..
分类:
其他好文 时间:
2016-06-01 10:25:27
阅读次数:
357