摘要: 1 #!/bin/bash 2 # chkconfig: 2345 40 98 3 # description: Start/Stop Nginx server 4 5 path=/application/nginx/sbin 6 pid=/application/nginx/logs/nginx.pid 7 RETVAL=0 8 9 . /etc/init.d/funct... 阅读全文
posted @ 2017-05-11 23:56 lixin[at]hitwh 阅读(392) 评论(0) 推荐(0) 编辑
摘要: #!/bin/bash # Author : standby@gmail.com # Date : 2018-02-27 NGX_CONF="/usr/local/nginx/conf/nginx.conf" # Get the dev which contains ./liveroot/ function get_point() { arr=(`df ... 阅读全文
posted @ 2017-05-11 23:49 lixin[at]hitwh 阅读(278) 评论(0) 推荐(0) 编辑
摘要: 1 log_format main '"someTag" "versionInfo" "$remote_addr" "$host" "$time_iso8601" ' 2 '"$request_method" "$server_port" "$request_uri" "$server_protocol" ' 3 '... 阅读全文
posted @ 2017-05-11 23:35 lixin[at]hitwh 阅读(136) 评论(0) 推荐(0) 编辑
摘要: ATS-6 的round_robin可以有4种算法可以选择 true true Traffic Server goes through the parent cache list in a round robin-based on client IP address. 按照客户端IP进行轮训,如果都 阅读全文
posted @ 2017-05-11 23:27 lixin[at]hitwh 阅读(1043) 评论(0) 推荐(0) 编辑
摘要: ping 返回的TTL数值代表什么? 查看一共经历几跳路由 查看返回的TTL 64 - 6 = 58 已知经过6跳路由,那么我们尝试设置ttl为6进行试验: 已知经过6跳路由,那么我们尝试设置ttl为7进行试验: 阅读全文
posted @ 2017-05-11 23:24 lixin[at]hitwh 阅读(7681) 评论(0) 推荐(0) 编辑
摘要: 1 # -*- coding: UTF-8 -*- 2 import smtplib 3 from email.mime.text import MIMEText 4 5 mailto_list = ['hitwh_Gypsy@126.com','hitwh_Gypsy@163.com','hitwh_Gypsy@aliyun.com','1027179157@qq.com'] 6... 阅读全文
posted @ 2017-05-11 23:18 lixin[at]hitwh 阅读(256) 评论(0) 推荐(0) 编辑