Linux curlʹÓüòµ¥½éÉÜ
CurlÊÇLinuxÏÂÒ»¸öºÜÇ¿´óµÄhttpÃüÁîÐй¤¾ß£¬Æä¹¦ÄÜÊ®·ÖÇ¿´ó¡£
1£©¶ÁÈ¡ÍøÒ³
$ curl linuxidc.com">http://www.linuxidc.com
2£©±£´æÍøÒ³
$ curl http://www.linuxidc.com > page.html $ curl -o page.html http://www.linuxidc.com
3£©Ê¹ÓõÄproxy·þÎñÆ÷¼°Æä¶Ë¿Ú£º-x
$ curl -x 123.45.67.89£º1080 -o page.html http://www.linuxidc.com
4£©Ê¹ÓÃcookieÀ´¼Ç¼sessionÐÅÏ¢
$ curl -x 123.45.67.89£º1080 -o page.html -D cookie0001.txt http://www.linuxidc.comÕâ¸öoption£º -D ÊǰÑhttpµÄresponseÀïÃæµÄcookieÐÅÏ¢´æµ½Ò»¸öÌØ±ðµÄÎļþÖÐÈ¥£¬ÕâÑù£¬µ±Ò³Ãæ±»´æµ½page.htmlµÄͬʱ£¬cookieÐÅÏ¢Ò²±»´æµ½ÁËcookie0001.txtÀïÃæÁË5£©ÄÇô£¬ÏÂÒ»´Î·ÃÎʵÄʱºò£¬ÈçºÎ¼ÌÐøÊ¹ÓÃÉÏ´ÎÁôϵÄcookieÐÅÏ¢ÄØ£¿
ʹÓÃoptionÀ´°ÑÉϴεÄcookieÐÅÏ¢×·¼Óµ½http requestÀïÃæÈ¥£º-b
$ curl -x 123.45.67.89£º1080 -o page1.html -D cookie0002.txt -b cookie0001.txt http://www.linuxidc.com
6£©ä¯ÀÀÆ÷ÐÅÏ¢
$ curl -A "Mozilla/4.0 £¨compatible£» MSIE 6.0£» Windows NT 5.0£©" -x 123.45.67.89£º1080 -o page.html -D cookie0001.txt http://www.linuxidc.com
7£©referer
$ curl -A "Mozilla/4.0 £¨compatible£» MSIE 6.0£» Windows NT 5.0£©" -x 123.45.67.89£º1080 -e "mail.linuxidc.com" -o page.html -D cookie0001.txt http://www.linuxidc.comÕâÑù¾Í¿ÉÒÔÆ¶Ô·½µÄ·þÎñÆ÷£¬ÄãÊÇ´Ómail.linuxidc.comµã»÷ij¸öÁ´½Ó¹ýÀ´µÄ
8£©ÏÂÔØÎļþ
$ curl -o 1.jpg http://cgi2.tky.3web.ne.jp/~zzh/screen1.JPG $ curl -O http://cgi2.tky.3web.ne.jp/~zzh/screen1.JPG -O ¿ÉÒÔ°´ÕÕ·þÎñÆ÷ÉϵÄÎļþÃû£¬×Ô¶¯´æÔÚ±¾µØ$ curl -O http://cgi2.tky.3web.ne.jp/~zzh/screen[1-10].JPG
9£©ÅúÁ¿ÏÂÔØ
$ curl -O http://cgi2.tky.3web.ne.jp/~{zzh£¬nick}/[001-201].JPGÕâÑù²úÉúµÄÏÂ
Ïà¹ØÎĵµ£º
¿ÉÒÔ½«Õâ¸ö½Å±¾·Å½øcrontab£¬ËûµÄÅäÖÆÎļþÔÚ /etc/crontabÖÐÿÌìÁ賿ִÐÐÒ»´Î£¬×Ô¶¯±¸·Ý Õâ¸ö½Å±¾Ã¿Ìì×î¶àÖ»Ö´ÐÐÒ»´Î£¬¶øÇÒÖ»±£Áô×î½üÎåÌìµÄ±¸·ÝÔÚ·þÎñÆ÷ÉÏ¡£
#!/bin/bash
#This is a ShellScript For Auto DB Backup
#Powered by aspbiz
#2004-09
#Setting
#ÉèÖÃÊý¾Ý¿âÃû£¬Êý¾Ý¿âµÇ¼Ãû£¬ÃÜÂ룬±¸·Ý·¾¶£¬ÈÕ־ ......
/*
file:string.h
#ifndef _LINUX_STRING_H_
#define _LINUX_STRING_H_
/* We don't want strings.h stuff being user by user stuff by accident */
#ifdef __KERNEL__
#include <linux/types.h> /* for size_t */
#include <linux/stddef.h> /* for NULL */
#include <linux/compiler.h&g ......
±àÒë°²×°KFS£º
kfs:kosmosfs
環¾³:
os:centos5.3
metaserver£ºVM-CentOS-5-SHU
chunkservers:VM-CentOS-5-SHU-2,VM-CentOS-5-SHU-3,VM-CentOS-5-SHU-4
ǰÌáÌõ¼þ£ºssh¤Ç¥Ñ¥¹¥ïー¥É無¤·¤Ç認証¤Ë¤Ê¤ë
kfs¤Î¥¤¥ó¥¹¥Èー¥ë
metaserver¤ÇÏÂ記¤Î²Ù×÷¤òÐФ¦
Ò»¡¢±ØÒª¥Ñ¥Ã¥±} ......
²é¿´°²×°µÄϵͳÐÅÏ¢£º
¼òµ¥µÄÐÅÏ¢£ºuname -a
ÏêϸµÄÐÅÏ¢£ºcat /proc/version
cat /etc/issue
lsb_release -a
GentooÉϰ²×°mysql£¬Ö±½ÓÔËÐУº
(1) bigner
@localhost
/ $ sudo emerge mysql
  ......