系统环境:CentOS 6.4 64bitZabbix版本:zabbix 2.2.3前提条件:已安装好LNMP环境一、服务端:1、下载zabbix安装包zabbix-2.2.3.tar.gz并解压2、安装zabbix所需组件yum install -y curl curl-devel net-snm...
分类:
其他好文 时间:
2015-04-15 18:52:59
阅读次数:
229
curl的用法记录
hostname=www.qq.com
1)得到httpstatus
[root@svr200-22~]#curl-o/dev/null-s-w%{http_code}${hostname}
200
2)得到详细的httpheaders信息
[root@svr200-22~]#curl-o/dev/null-vhttp://${hostname}
*Abouttoconnect()towww.qq.comport80(#0)
*Trying14.17...
分类:
Web程序 时间:
2015-04-15 15:00:04
阅读次数:
145
Setting up a nested field is simple—where you would normally specify type object, make it type nested instead:
创建一个nested 字段很简单——只要在你通常指定object类型的地方,改成nested类型就行:
curl -XPUT 'localhost:9200/my_in...
分类:
移动开发 时间:
2015-04-15 14:54:06
阅读次数:
147
1.从nodejs.org中下载Node.js for Mac 安装包,也就是一个6M多的pkg文件,下载之后点击安装即可。2.在终端运行命令:curl -Lhttps://npmjs.org/install.sh| sh (注意这里不能用 curlhttps://npmjs.org/install...
分类:
Web程序 时间:
2015-04-15 00:41:59
阅读次数:
170
前景描述,公司要求,在LinuxCentos服务器下,监控tomcat状态,如果tomcat端口不通,设置tomcat程序自动启动。20分钟检查一次。tomcat安装的目录:/home/test/tomcat6/bin#!/bin/bashecho"Start"URL="http://127.0.0.1/###/"curlit(){#echo"??"curl--connect-timeout15--max-tim..
分类:
系统相关 时间:
2015-04-14 20:05:29
阅读次数:
197
linux pc 上安装syncy遇到的坑pycurl安装可以指定curl-config,这个是根据自己机器libcurl安装位置确定,不在默认位置时要指定:python setup.py install --curl-config=/usr/local/bin/curl-configimport ...
分类:
系统相关 时间:
2015-04-14 17:58:39
阅读次数:
305
CURL是liunx系统的一个命令行工具,目的是进行数据抓取;现在CURL已经在非常多的系统中使用,WIN用户可以使用DOS版本的CURL命令操作,操作方法很简单,就是在CMD窗口中找到CURL文件夹,执行CURL命令即可,C...
分类:
Web程序 时间:
2015-04-14 14:51:58
阅读次数:
165
1 function url_get_content($url=''){ 2 $ch = curl_init(); 3 $timeout = 100; 4 $browser = 'Mozilla/5.0 (Windows NT 5.1; rv:20.0) Gecko/20100101 Firefo....
分类:
其他好文 时间:
2015-04-14 00:13:44
阅读次数:
121
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"==> This script will install:/usr/local/bin/brew/usr/local/Li...
分类:
其他好文 时间:
2015-04-13 16:16:19
阅读次数:
123
1,完整的监控脚本如下#!/bin/bash#web_status_code=`curl -o /dev/null -s -w "http_code:%{http_code}" http://yjszs.nudt.edu.cn/`#1,web_status_code=`curl -o /dev/nu...
分类:
数据库 时间:
2015-04-13 14:12:33
阅读次数:
157