/1.html 3 http://post.etiantian.org/index.html 4 http://mp3.etiantian.org/index.html 5 http://www.etiantian.org.../3.html 6 http://post.etiantian.org/2.html 要求结果: mp3.etiantian.org 1 post.etiantian.org 2 www.etiantian.org...5 mp3.etiantian.org 6 www.etiantian.org 7 post.etiantian.org 3、创建数组和进行统计 1 [root@martin ~]# awk -F "...4 www.etiantian.org 5 post.etiantian.org 6 mp3.etiantian.org 7 www.etiantian.org 8 post.etiantian.org...1 4 www.etiantian.org 2 5 post.etiantian.org 1 6 mp3.etiantian.org 1 7 www.etiantian.org 3 8 post.etiantian.org
处理以下文件内容,将域名取出并根据域名进行计数排序处理:(百度和sohu面试题) http://www.etiantian.org/index.html http://www.etiantian.org.../1.html http://post.etiantian.org/index.html http://mp3.etiantian.org/index.html http://www.etiantian.org....etiantian.org 1 www.etiantian.org sort 排序,默认是按照字母的顺序 [root@znix ~]# awk -F '[/]+' '{print $2}'...www.txt |sort mp3.etiantian.org post.etiantian.org www.etiantian.org www.etiantian.org www.etiantian.org...www.etiantian.org post.etiantian.org mp3.etiantian.org www.etiantian.org 3.3.2.2 第二步 显示 ; 两条命令之间用分号分割
bbs web02 [root@lb01 ~]# curl -H host:bbs.etiantian.org 10.0.0.9/xiaoxinxin.html bbs web03 [root@lb01...~]# curl -H host:www.etiantian.org 10.0.0.8/xiaoxinxin.html www web01 [root@lb01 ~]# curl -H host:www.etiantian.org...bbs web02 [root@lb01 conf]# curl -H host:bbs.etiantian.org 10.0.0.5/xiaoxinxin.html bbs web01 1.4 nginx.../xxx.html www.etiantian.org/upload/xxx.html www.etiantian.org/static/xxx.html ##web01 mkdir -p /application...10.0.0.5 web02 www [root@lb01 conf]# curl -A Chrome -H host:www.etiantian.org 10.0.0.5 web01 www [root
blog.etiantian.org bbs.etiantian.org 测试 [root@web01 ~]# curl www.etiantian.org web01 www [root@web01...~]# curl blog.etiantian.org web01 blog [root@web01 ~]# curl bbs.etiantian.org web01 bbs 4.4.2 基于端口的虚拟主机..., request: "GET /favicon.ico HTTP/1.1", host: "www.etiantian.org", referrer: "http://www.etiantian.org...站点目录为 html/www 3、要求内网可以访问 www.etiantian.org/AV 资源 4、要求外网不可以访问 www.etiantian.org/AV 资源 4.9.1 需求处理...ett.org; if ($host ~* "^etiantian.org$") { rewrite ^/(.*) http://www.etiantian.org/$1 permanent;
虚拟机分类: a.基于域名 b.基于端口 c.基于IP 2.搭建虚拟机(基于域名) 域名 站点目录 www.etiantian.org /var/html/www blog.etiantian.org... /var/html/blog bbs.etiantian.org /var/html/bbs 创建主页文件: [root@localhost apache]# mkdir...ServerAlias etiantian.org ErrorLog "logs/www-error_log" CustomLog "logs/www-access_log" common ServerAdmin 928939638@qq.com DocumentRoot "/var/html/blog" ServerName blog.etiantian.org...blog.etiantian.org bbs.etiantian.org ) [root@localhost extra]# grep "^Include" /application/apache/conf
(gif|jpg|png|swf|flv|rar|zip)${ valid_referers none blocked server_name *.etiantian.org etiantian.org...; if($invalid_referer){ rewrite ^/ http://bbs.etiantian.com/img/nolink.jpg; } } 6、防爬虫 if ($http_user_agent
后端节点 [root@lb01 conf]# curl -H host:www.etiantian.org 10.0.0.8 web01 www [root@lb01 conf]# curl -H host...:www.etiantian.org 10.0.0.7 web02 www [root@lb01 conf]# curl -H host:www.etiantian.org 10.0.0.9 web03...www [root@lb01 conf]# curl -H host:bbs.etiantian.org 10.0.0.9 web03 bbs [root@lb01 conf]# curl -H host...:bbs.etiantian.org 10.0.0.8 web01 bbs [root@lb01 conf]# curl -H host:bbs.etiantian.org 10.0.0.7 web02...:bbs.etiantian.org 10.0.0.6 web02 bbs [root@lb01 ~]# curl -H Host:www.etiantian.org 10.0.0.5 web03 www
application/nginx/conf/extra/www.conf 2 server { 3 listen 443 ssl; 4 server_name www.etiantian.org...1.1.2 客户端访问 1)浏览器访问https://www.etiantian.org ? ...2)选择高级,继续前往www.etiantian.org(不安全) 由于ssl证书是自己生产的,会有这样的一个问题。 ? 3)网站访问正常。 ?
$ my blog is http://oldboy.blog.51cto.com$ $ our site is http://www.etiantian.org$ $ my qq num is 49000448...my blog is http://oldboy.blog.51cto.com our site is http://www.etiantian.org my qq num is 49000448. not...my blog is http://oldboy.blog.51cto.com our site is http://www.etiantian.org my qq num is 49000448. not...*[mg]$" oldboy.txt my blog is http://oldboy.blog.51cto.com our site is http://www.etiantian.org 2.5.12...my blog is http://oldboy.blog.51cto.com our site is http://www.etiantian.org my qq num is 49000448. not
web01 nginx]# cat /application/nginx/conf/extra/edusoho.conf server { listen 80; server_name edu.etiantian.org...memory_limit = 1024M upload_max_filesize = 1024M 第四个里程碑:web浏览器访问地址进行安装 注意:访问之前要先进行修改hosts文件 http://edu.etiantian.org
} www.etiantian.org curl -I -s -w %{http_code} -o /dev/null www.etiantian.org curl -I -s -w "%{http_code...}\n" -o /dev/null www.etiantian.org curl -s -w "%{http_code}\n" -o /dev/null www.etiantian.org curl -...I -s www.etiantian.org|head -1 curl -I 10.0.0.7 2>/dev/null|head -1 *********************************...} www.etiantian.org curl -I -s -w %{http_code} -o /dev/null www.etiantian.org curl -I -s -w "%{http_code...}\n" -o /dev/null www.etiantian.org curl -s -w "%{http_code}\n" -o /dev/null www.etiantian.org curl -
my blog is http://oldboy.blog.51cto.com our site is http://www.etiantian.org my qq num is 49000448....my blog is http://oldboy.blog.51cto.com our site is http://www.etiantian.org my qq num is 49000448....[root@znix ~]# ifconfig eth0|sed -n '2p'|awk -F "[ :]+" '{print $4}' 10.0.0.201 第3章 第三关练习题 3.1 如何取得/etiantian
eth0 网卡 /etc/sysconfig/network-scripts/eth0 DNS配置 /etc/resolv.conf 1.5 第5题 查找当前目录下所有文件,并把文件中的 www.etiantian.org...字符串替换成 www.oldboy.cc [root@znix ~]# find /* |sed 's#www.etiantian.org#www.oldboy.cc#g' 1.5.1 运维职责 1.
插入一条数据 1,oldboy mysql> insert into test values(1,’oldboy’); mysql> select * from test; 10.批量插入数据 2,老男孩,3,etiantian...要求中文不能乱码 mysql> insert into test values(2,’老男孩’),(3,’etiantian’); Query OK, 2 rows affected (0.07 sec
hostname -a "name=web01" 172.16.1.8 | SUCCESS => { "ansible_facts": { "ansible_domain": "etiantian.org...", "ansible_fqdn": "www.etiantian.org", "ansible_hostname": "web01", "ansible_nodename
http_user_agent" "$http_x_forwarded_for"'; server { listen 8080; server_name www.etiantian.org...实践配置 [root@web02 extra]# cat blog.conf server { listen 80; server_name blog.etiantian.org...} access_log logs/web_blog_access.log main; } upstream blog_etiantian...8000; server_name blog.nmtui.com; location / { proxy_pass http://blog_etiantian
lb02 172.16.1.7 web01 172.16.1.8 web02 172.16.1.9 web03 172.16.1.51 db01 db01.etiantian.org
,使nginx程序与php程序建立联系 vim extra/blog.conf server { listen 80; server_name blog.etiantian.org...>' >/application/nginx/html/blog/test_info.php 测试站点 curl http://blog.etiantian.org.../index.html <-- 静态请求站点文件信息测试 curl http://blog.etiantian.org/test_info.php
6、数组统计 处理以下文件内容,将域名取出并根据域名进行计数排序处理: http://www.etiantian.org/index.html http://www.etiantian.org/1.html...http://post.etiantian.org/index.html http://mp3.etiantian.org/index.html http://www.etiantian.org/3....html http://post.etiantian.org/2.html 要求结果: mp3.etiantian.org 1 post.etiantian.org 2 www.etiantian.org
33.html #1.准备真是的访问路径 [root@web03 ~]# mkdir /code/course/11/22/33 -p [root@web03 ~]# echo "curl docs.etiantian.org
领取专属 10元无门槛券
手把手带您无忧上云