Posts Tagged ask

Google注册域名大全

日前,国外消息站点透露了Google所有注册的域名名单,这个名单记载了多达400多个域名网址。其中一些网址是我们正在使用的Google功能网站地址。

域名网址的大多数都涉及 Google 的主站名和已经发布的产品,例如:Google.com、 Google.net、 Google.org、Adwords.net等。

有一些网址似乎是防御钓鱼网站,防止对方欺骗用户重新导向,例如:Froogel.com。

有一些网址与色情有关,但会牵扯Google,败坏Google形象,例如:porngoogle.com、googleporn.com 、googlesex.com等。

还有一些,却可能与Google的未来发展有关,例如:gbrowser.com(浏览器)、googlewifi.com(WIFI,哈哈,前不久我们都听说了google这方面的信息)、gcalendar.com(日历)、gchat.com(难道除了Google Talk,他们还有别的聊天想法?)、googlebuy.com(在线购物)googlemusic.com(在线线音乐)。

    有趣得是,Google 还拥有googlesucks.com 的网址。微软曾经被敌意用户注册过一个“windows-sucks” 的地址,看来Google也不想每天对着这么一个恶心自己的站点,让自己不高兴,不如自己买下来,好过被别人用来在自己头上拉屎。

    这里还有一个纯数字的网址466453.com。400多域名中,Google单单挑选了这么一个数字域名,不知道是无聊还是别有企图?

反正,这告诉我们要有投资意识和风险意识

    以下是 Google 注册域名的详细清单:

466453.com
Adsbygoogle.com
Adsense.net
Adwords.com
Adwords.net
Adwords.org
Adwordsexample.com
Adwordsgoogle.com
Adwords-select.com
Adwordselect.com
Adwordsselect.com
Adwordsselect.net
Adwordsselect.org
Akwan.com (still not registered as a Google domain)
Android.com (still not registered as a Google domain)
Answergoogle.com
Answer-google.com
Answersgoogle.com
Answers-google.com
AppliedSemantics.com
Appsem.com
Arabgoogle.com
Arabicgoogle.com
Askgoogle.com

Blogger.com
Blogspot.com

Catalogsgoogle.com
Chinagoogle.com
Cobrasearch.com

Deja.com
Deja.net
Dejadiscussion.com
Dejadiscussions.com
Deja-discussions.com
Dejanews.com
Dejanews.net
Dejanews.org
Dejastinks.com
Dejastinks.net
Dejasucks.net
Dejatracker.com
Deja-tracker.com
Dodgeball.com (still not registered as a Google domain)

Earthender.com
Earthender.net
Earthstream.com (still registered to Keyhole)
Earthviewer.com
Earthviewer.net
Earthviewer.org (still registered to Keyhole)
Elgoog.com
Elgoog.net
Elgoog.org

Firehunt.com (not registered to Google by using Google domain servers)
Foofle.com
Fourth-party.com
Fourthparty.net
Fourth-party.net
Fourthparty.org
Fourth-party.org
Froogel.com
Froogle.com
Froogol.com
Frooogle.com

Gbrowser.com
Gbrowser.net
Gbrowser.org
Gcalendar.com (currently registered to Data Docket*)
Gchat.biz
Gchat.us
Gdrive.com (currently registered to Data Docket*)

G00gle.com
Gewgle.Com
Gewgle.com    
Gewgol.Com
Gewgol.com    
Ggoogle.com
Ggoogle.com
Ggoogle.com    
Ggoogle.com
Ggooglers.net
Ggooglers.org
Gigagoogle.com
Gigagoogle.net
Gigagoogle.org

Gmail.com
Gmmgjd.net
Gmmgjd.org
Gmmgjdwap.com
Gngjd.com
Gogle.com
Gogle.com    
Gogole.com    
Googel.com    
Googel.com
Googil.comc
Google.biz    
Google.com     
Google.info    
Google.info
Google.net    
Google.org
Google.us    
Google.ws
Google1.com
Google2.com
Google3.com  
Google4mp3.com

Googleaccelerator.om
Google-access.com
Googleanswer.com
Google-answer.com
Googleanswers.com
Google-answers.com
Googlearabic.com
Googlebay.com
Googleblog.biz
Googleblog.info
Googleblog.com
Googleblog.net
Googleblog.org
Googleblows.com
Googleblows.net
Googleblows.org     
Googlebot.com
Googlebox.biz (registered to Data Docket but using Google domain servers)
Googlebox.com (registered to Data Docket but using Google domain servers)
Googlebox.info (registered to Data Docket but using Google domain servers)
Googlebox.net (registered to Data Docket but using Google domain servers)
Googlebox.org (registered to Data Docket but using Google domain servers)

Googlebrowserbutton.com
Googlebrowserbuttons.com
Googlebucks.com
Googlebutton.com
Googlebutton.net
Googlebutton.org
Googlebuttons.com
Googlebuy.com
Googlebuy.info (currently registered to Data Docket*)
Googlebuy.net (currently registered to Data Docket*)
Googlebuy.org (currently registered to Data Docket*)
Googlecache.com
Googlecalendar.net (currently registered to Data Docket*)
Googlecatalog.com
Googlecatalogs.com
Googlecom.com
Googlecompute.com     
Google-compute.com
Googlecompute.net
Googlecompute.org
Googlecomputers.com
Googlecomputing.com
Google-computing.com

Googledesktop.com
Google-desktop.com
Googledigital.info
Googledigital.net
Googledigital.org
Googledirectory.com
Googledirectory.net
Googledirectory.org
Googledoodle.com  
Googledoodle.net
Googledoodle.org
Googleearth.info
Googleearth.com
Googleearth.net
Googleearth.org

Googlee.com    
Googlefoundation.com
Googlefoundation.net
Googlefoundation.org (currently registered to Data Docket*)
Googlegear.com    
Googlegear.net    
Googlegear.org
Googlegoods.com
Googlegroups.com
Googleguy.com

Googleimages.com
Googleimageads.com
Google-inc.com
Googleit.com
Googleit.net
Googleit.org
Googlejobs.com
Googlejobs.net
Googlejournals.com
Googlelabs.net
Googlelabs.info
Googlelabs.net
Googlelabs.org
Googlelocal.net
Googlelocal.org

Googlemail.biz
Googlemail.com
Googlemail.info
Googlemail.org
Googlemail.us
Googlemaps.com
Googlemaps.org
Googlemovie.info
Googlemovie.net
Googlemovie.org
Googlemovies.info
Googlemovies.net
Googlemovies.org

Googlemusic.com
Googlenews.net
Googlenews.org
Googlenum.com

Googleoogle.com
Googleoogle.net
Googleoogle.org
Googlepage.org
Googleplex.com
Googleplex.org
Googleplus.com
Googleporn.com

Googleprint.biz
Googleprint.com
Googleprint.info
Googleprint.net
Googleprint.org
Googleprint.us
Googleproxy.com    
Googlequiz.com
Googlequiz.net
Googlequiz.org
Googleregistrar.com

Googleearth.com
Googleearth.infi
Googleearth.net
Googleearth.org
Googlesatellite.com
Googlesatellite.info
Googlesatellite.net
Googlesatellite.org
Googlesearch.com
Googlesearch.net
Googleseek.com
Googlesex.com
Googlesex.info
Googleshopping.com
Googleshopping.net
Googleshopping.org (currently registered to Data Docket*)
Googlesidebar.com
Googlesidebar.net
Googlesidebar.org (currently registered to Data Docket*)

Googlesimplex.com
Googlesms.biz (currently registered to Data Docket*)
Googlesms.info (currently registered to Data Docket*)
Googlesms.org (currently registered to Data Docket*)
Googlesms.net (currently registered to Data Docket*)
Googlesms.us (currently registered to Data Docket*)
Googlesponsoredlinks.com
Googlestore.com
Googlestuff.com
Google-stuff.com
Googlesucks.com
Googlesucks.net
Googlesucks.org
Googlesyndication.com

Googletv.com (currently registered to Data Docket*)
Googletv.net
Googletv.org
Googletalk.info (currently registered to Data Docket*)
Googletalk.net
Googletalk.org (currently registered to Data Docket*)
Googletoolbar.com
Googlevideo.biz
Googlevillage.com
Googlewifi.info
Googlewifi.net
Googlewifi.org
Googlewireless.info
Googlewireless.net
Googlewireless.org
Googleworld.org

Googli.com
Googlie.com
Googlr.com
Goolge.com
Gooogle.com
Gotgoogle.com
Gppgle.com
Gppglr.com
Groupsgoogle.com
Guugle.com     
Guugle.org
Igoogle.com
Igoogle.net
Igoogle.org

Kaltix.com
Kaltix.net
Kaltix.org
Keyhole.com
Keyholecorp.com
Keyholecorp.net
Keyholecorp.org (still registered to Keyhole)

Mobilegoogle.info
Mobilegoogle.net
Mobilegoogle.org
My-deja.com
Mydeja.net
My-deja.net
Mydejanews.com
My-dejanews.com
Mygoogle.com
My-google.com
Mygoogle.net
My-google.net
Mygoogle.org
My-google.org
Ngoogle.com
Numgoogle.com
Oingo.com
Orcit.com
Orcut.com
Orkat.com
Orkut.biz
Orkut.com
Orkut.org
Orkut.info

Porngoogle.com
Sergeybrin.com
Sergeybrin.net
Sergeybrin.org
Talageo.com
Toolbargoogle.com
Wapgmmgjd.com
Wapgoogle.com
Wapgoogle.com

Wappdapag.com
Wwapgmmgjd.com
Wwwadwordsselect.com
Wwwadwords-select.com
Wwwgoogle.com
Wwwgooglecom.com
Wwwgoogleoogle.com
Wwwgooglesyndication.com
Wwwwgoogle.com
Urchin.com (not registered to Google but using Google domain servers)
Urching.com
Urchinstats.com
Zipdash.com (acquired by Google but not registered to Google Inc. at the present time)

  • Share/Bookmark

Tags: , , , , , , , , , , , , , , ,

雅虎和谷歌都宣布robots.txt文件支持通配符

以下是雅虎Search Blog发表的官方声明和robots.txt通配符解决方案:
Yahoo! Search Crawler (Yahoo! Slurp) – Supporting wildcards in robots.txt

I was going through my notes from Danny Sullivan’s Open Feedback sessions that occur during the ?Meet the Crawlers? panel at Search Engine Strategies. One of the items on my list was a request for enhanced syntax in robots.txt to make it easier for webmasters to manage how search crawlers, including Slurp, access your content.

For those who may not be as familiar with search index terminology, webmasters use the robots.txt file to direct robots that visit their site, including search engine crawlers, which files should be crawled and which shouldn’t be. You can read about our support for robots directives in the help for Yahoo! Slurp.

Well, we can scratch that one off the list, since we have just updated Yahoo! Slurp to recognize two additional symbols in the robots.txt directives ? ‘*’ and ‘$’. The semantics of these is what is as widely understood for robots.txt files.

‘*’ – matches a sequence of characters

You can now use ‘*’ in robots directives for Yahoo! Slurp to wildcard match a sequence of characters in your URL. You can use this symbol in any part of the URL string you provide in the robots directive. For example,

User-Agent: Yahoo! Slurp
Allow: /public*/  #允许所有以public开头的目录被索引
Disallow: /*_print*.html
Disallow: /*?sessionid #这句的意思是拒绝一切包含sessionid参数的页面被搜索引擎索引。

The robots directives above will:

allow all directories that begin with ‘public’, such as ‘/public_html/’ or ‘/public_graphs/’ to be crawled
disallow any files or directories which contain ‘_print’, such as ‘/card_print.html’ or ‘/store_print/product.html’ to be crawled
disallow any files with ‘?sessionid’ in their URL string, such as ‘/cart.php?sessionid=342bca31? to be crawled
Note that a trailing ‘*’ is redundant since that is existing matching behavior for Slurp. So, the following two directives are equivalent:

User-Agent: Yahoo! Slurp
Disallow: /private*
Disallow: /private

‘$’ ? anchors at the end of the URL string

You can now also use ‘$’ in robots directives for Slurp to anchor the match to the end of the URL string. Without this symbol, Yahoo! Slurp would match all URLs against the directives, treating the directives as a prefix. For example:

User-Agent: Yahoo! Slurp
Disallow: /*.gif$
Allow: /*?$

The robots directives above will

Disallow all files ending in ‘.gif’ in your entire site. Note that without the ‘$’, this would disallow all files containing ‘.gif’ in their file path
Allow all files ending in ‘?’ to be included. This would not automatically allow files that just contain ‘?’ somewhere in the URL string
As you can see, this symbol only makes sense at the end of the string. Hence, when we see it, we assume that your directive terminates there and any characters after that symbol are ignored.

Oh, by the way, if you thought we didn’t support the ‘Allow’ tag, as you can see from these examples, we do.

If you have any questions about the new syntax or any particular cases you are concerned about, please write in at the Site Explorer forums or read up our area.

Next time you see me at SES, you should ask me what else is on my list!

Priyank Garg
Product Manager, Yahoo! Search

可以用google管理员工具测试,一般第一次提交很快就会抓取robots.txt,然后更新就慢了点

  • Share/Bookmark

Tags: , , , , , , , , , , , , , ,

Deleting of product data debris failed! Please see the debug log in your uploads directory for further information.

zen cart 打开Easy Populate 1.2.5.4报错,信息如下:

Deleting of product data debris failed! Please see the debug log in your uploads directory for further information.

居然到官方论坛也得不到什么好结果,只好开FTP进去看,在temp文件夹里有错误日志:ep_debug_log.txt

里面内容如下:

Product debris corresponding to the following product_id(s) cannot be deleted by EasyPopulate:
129:5a4af9136c93e2ee5a9f7f73f9ca5481
143:fbfa1d277568fbe8e24b017f1e280d76
154:465f6fe6a48b53cf3796d4b1aeabaff4
126:64ad7566763b920d2646dce5302e4d33
142:642050ed4f5280813d68bbfe5f0c4c29
153:796d6682c145097efe123b8efafc0939
124:0aeccd9106c2ebcb5818d102d2f24319
147:e69718e20cd902ed340bb229797e5ea7
167:5ab0f97452dd98016e7cc5161a94b0e8
It is recommended that you delete this corrupted data using phpMyAdmin.

有产品信息残留无法清除,用phpmyadmin搜了所有表,原来是顾客的购物车表里有残留信息

相应的表为:zen_customers_basket、zen_customers_basket_attributes

清空这两个表就OK了

这种情况一般发生在顾客购物车不为空时删除了产品

  • Share/Bookmark

Tags: , , , , , ,

什么是PAYPAL?如何申请PAYPAL?

版权声明:转载时请以超链接形式标明文章原始出处和作者信息及本声明
http://phoenixlyf.blogbus.com/logs/444828.html

一、什么是PAYPAL?如何申请PAYPAL?
Paypal是现在网络上流行的免费信用卡,现在对包括中国在内的近40个国家开放,Paypal支付将成为以后网上收钱的一个主要方式。但要注意的是:你要完全激活你的帐号,必须要有一张Master卡或Visa卡,否则现在只能申请一个帐号,以后有卡后才能激活。

进入PAYPAL的申请页面(按—-注册)按要求依次填入
First Name   Last Name   名   姓  
Street Address   市内地址,   上栏写不下写这里  
City   State / Province / Region*   城市   省  
Postal Code*   Country   邮政编码   国籍  
Country of which you are a citizen       国籍      
Home Telephone (country code first) 家庭电话,中国为86开头
Work Telephone* (country code first)   工作电话,同上  
Email Address (this will be your login name) 电子邮箱
Confirm Email Address   确认电子邮箱  
Your password must be at least 8 characters and is case sensitive.  
Create password   Confirm Password   密码(8位以上)   确认密码  
Select Security Question 1   Answer 1   找回密码问题1   答案1  
Select Security Question 2   Answer 2   找回密码问题2   答案2  
If you forget your password, we will ask you for the answers to your security questions.  
 
As a security measure, please enter the characters you see in the boxon the left into the box on the right. (The characters are not case sensitive.) Help?
  这里会显示几个随机字母,填写左边显示的字母
 
  Would you like this to be a Premier Account? Yes No 是否成为高级会员,建议选no
Get all of our premium features for a low fee of just 1.9% + 30¢ (blended rate) on incoming payments.
 
  Click here to indicate that you have read and agree to the terms of use.Please note that in order to send, receive, or withdraw money with PayPal, you will need to register and confirm a credit or debit card.
打勾表示同意规则
发送后下一页会要求输入Master卡或Visa卡的资料,如果你没有,可以打住不再继续。过一会儿您的邮箱会收到确认信,要将提供其中链接打开,再输入密码即可确认成功。
等您申请好卡后可登录进账号,进入左下角Add credit card填写信息即可激活账号即可!
二、申请办理Master卡或Visa卡的方法
*以工商银行的牡丹国际借记卡为例
去工商行申请国际借记卡(记得要带上身份证)。银行要求你填写一张申请表,你可以申请有效期1-5年可以,你填写之后要你交手续费和年费,手续费20元,年费50元/年,如:你申请2年有效期,你就要交120给银行了。 约过一个月左右(视你所在地方,如北京的朋友就不用等这么久了),银行通知你去拿卡,并要求你存入500美元,这500美元在存入一个星期后才会记录在你的卡上。(但是有些朋友办完卡后却不需要存入这么多钱,看来还是各地的规定不太一样啊)。
*关于牡丹卡的一些问题
为什么牡丹卡卡面上带有“Master Card”或“VISA”标志:中国工商银行于1990年2月加入了万事达卡国际组织,成为其主会员银行。“MasterCard”即为该组织的标志。1990年6月,中国工商银行以首席会员的名义加入了威士国际组织,“VISA” 即为该组织的标志。根据国际信用卡组织的规定,每个会员银行发行的信用卡卡面上必须带有 该组织的标志,因此,牡丹卡卡面上带有“Master Card”或“VISA”标志。
消费:牡丹国际卡在国内可在贴有牡丹卡的特约商户使用,在国外可在贴有VISA或MasterCard标志(配图)的商户使用。
 
存现:牡丹国际卡可办理人民币和外币存款业务。持卡人凭牡丹国际卡可在本、异地的发卡机构或储蓄所存款,牡丹国际卡无异地存款手续费。   
 
取现:凭牡丹国际卡在工商银行的储蓄所提取现金,取现时必须出示身份证件,取现手续费由发卡机构直接从持卡人帐户扣收。商务卡不得在境内支取现金。持卡人在国外,可在贴有VISA或MasterCard标志(配图)的自动取款机上支取当地货币。取现手续费按取现金额1%收取,最低收3元或3美元。    
  
对帐单:银行每月为牡丹国际卡持卡人寄发对帐单,持卡人凭对帐单与发卡机构对帐,并据以掌握其牡丹卡帐户情况。持卡人若发现对帐单上的交易不符,应在两周内与发卡机构核对。未收到或遗失对帐单的持卡人可要求发卡机构补寄对帐单,也可凭牡丹卡、身份证件到发卡机构申请补打对帐单。
 
自动取款机(ATM):牡丹国际卡在国外取现时,威士卡可在任何有VISA、PLUS标识的ATM上提取一定金额的当地货币,万事达卡可在有MasterCard标识的ATM机上提取一定金额的当地货币。取款时请按ATM机的提示进行操作,最后取出国际卡、现金和交易单据。取款时必须使用密码。
三、工商银行的国际借记卡激活Paypal的过程
当你的卡上有钱时,你要打电话给北京的总行,要求开通网上交易服务。你可以打这个电话查询有关事项和要求开通网上交易服务。010-66108502.登陆你的Paypal帐号。登陆之后会见到这样,在左上按Add credit card 进入,如图,并按说明填写。 当你通过之后,你的借记卡就会减少1美元。记住!你只要求确认一次就行了,否则,你再要求它一次确认,你的借记卡就会减少1美元,这是工商行的手续费,你作一笔交易,它就会收你1美元!假如你要求它多次,你就作了多笔交易,切记!请注意:此时你并没有完全激活Paypal卡。 假如你有传真机的话你就很快激活Paypal卡,你打上面那个电话,它有自动传真的。你按它的留言去做,它就会自动传真对帐单给你。打通了之后,操作是这样:输入1-1-你的卡号-你的银行密码-4。如果你没有传真机,你只能等它的月对帐单。
你的对帐单出来之后,在上面有一栏这样的:PayPal xxxx * Co 800-836-1859,那4个xxxx就是PayPal给你的确认码!你登陆Paypal,将这4个数字填上去,激活就行了。到这里你就真正激活Paypal。你的帐号会见到这样的了。
四、注册使用PayPal需要注意的几个问题
一、你必需有一张国际通用的信用卡,比如说Visa card(维萨卡)Master card(万事达卡)。目前PayPal只承认这两种信用卡!! 目前中国人民银行,工商银行,建设银行有信用卡的服务,申请时请注意是否为国际通用的,而且是否可以用于网上交易!
二、 PayPal要求注册时使用信用卡注册,目的在于2个:一个是在申请时可以即时验证你所提交的信用卡是否有效(因为你若是没有可以转帐的银行支票帐号的话,你只可以将PayPal帐号的钱转到你的信用卡上);另一方面,PayPal在注册时验证你所提交的信用卡资料后,将会在你这张信用卡的帐面扣1美元,对你的这张信用卡的有效性进行检验。
三、 即使是激活的帐户也无法用国际卡取钱,要取钱必须有美国银行的帐户。现在想取钱可以托美国的朋友帮忙,或者在网上购物。也可以把钱留着,等入世后,美国的银行进入中国,那时再申请一个帐户就可以取钱了。
四、注册后要想得到$5的奖励,必须先用国际卡激活帐户,再一次发给别人$100以上,才能得到$5。
五、没有必要推荐别人加入paypal,因为推荐别人加入奖励$5,好像这条规定只对美国会员有效。

  • Share/Bookmark

Tags: , , , , , , , , , , ,

Ask.com和bing(微软必应) sitemaps 提交方法

2007年4月,四大搜索引擎Google、Yahoo、Live Search和Ask 在同一天宣布支持sitemap robots 协议,使得网站地图sitemap 协议更好地得到普及。除此之后,Google 和Yahoo 还分别提供了专门的sitemaps 文件提交入口,这有助于搜索引擎更好地发现网站的sitemaps 文件。

据SEL 介绍,Ask.com 也开始提供向用户提供sitemaps 网站地图文件提交入口,不过有点与众不同。它是通过ping 工具来向Ask 提交的,即get参数,用法如下:

http://submissions.ask.com/ping?sitemap=http://www.crazylemon.net/sitemap.xml

注意要输入完整的sitemap 文件地址。如果看到“Your Sitemap submission was successful”提示界面即表示提交成功。

同时,微软必应(bing)也有提供sitemaps 网站地图文件提交入口,用法如下

http://cn.bing.com/webmaster/ping.aspx?sitemap=www.crazylemon.net/sitemap.xml

不管有没有效,都提示Thanks for submitting your sitemap.

很恶心

  • Share/Bookmark

Tags: , , , , , , ,

robots.txt for zen-cart

如果用的固定链接插件为Ultimate SEO URL

那么robots.txt可以如下:

User-agent: *
Disallow: /cache/
Disallow: /contrib/
Disallow: /docs/
Disallow: /extras/
Disallow: /htmlarea/
Disallow: /stats/
Disallow: /sitemap/
Disallow: /graphics/
Disallow: /login.html
Disallow: /privacy.html
Disallow: /conditions.html
Disallow: /contact_us.html
Disallow: /gv_faq.html
Disallow: /discount_coupon.html
Disallow: /unsubscribe.html
Disallow: /shopping_cart.html
Disallow: /ask_a_question.html
Disallow: /popup_image_additional.html
Disallow: /product_reviews_write.html
Disallow: /tell_a_friend.html
Disallow: /pages-popup_image.html?
Disallow: /popup_image_additional.html?
Disallow: /login.html
User-agent: Googlebot-Image
Disallow: /

如果您希望您的照片在谷歌图片搜索中出现请删除最后两行。

请不要将admin放入robots.txe,admin应该改成不容易猜测的名字并隐藏起来

  • Share/Bookmark

Tags: , , , , , , , , , , ,

linux IP 设置

即时生效:
# ifconfig eth0 192.168.1.102 netmask 255.255.255.0

# route add default gw 192.168.1.1

启动生效(永久):

vi /etc/sysconfig/network-scripts/ifcfg-eth0

加入

DEVICE=eth0

BOOTPROTO=static
IPADDR=192.168.1.102
NETMASK=255.255.255.0
GETEWAY=192.168.1.1

ONBOOT=yes
TYPE=Ethernet

注:BOOTPROTO只有在static(静态)模式下才可以使用设置的IP信息

修改dns
修改/etc/resolv.conf
修改后可即时生效,启动同样有效
形式
加入nameserver= ***.***.***.***
最多可有三个,作为上一个失败后的候选
修改host name
即时生效:
# hostname fc2
启动生效:
修改/etc/sysconfig/network
形式如下:
NETWORKING=yes
HOSTNAME=rh-linux.fc.org

  • Share/Bookmark

Tags: , , , , , , , ,

linux下top命令参数解释

top命令是Linux下常用的性能分析工具,能够实时显示系统中各个进程的资源占用状况,类似于Windows的任务管理器。下面详细介绍它的使用方法。
top – 01:06:48 up  1:22,  1 user,  load average: 0.06, 0.60, 0.48
Tasks:  29 total,   1 running,  28 sleeping,   0 stopped,   0 zombie
Cpu(s):  0.3% us,  1.0% sy,  0.0% ni, 98.7% id,  0.0% wa,  0.0% hi,  0.0% si
Mem:    191272k total,   173656k used,    17616k free,    22052k buffers
Swap:   192772k total,        0k used,   192772k free,   123988k cached
   PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND
  1379 root      16   0  7976 2456 1980 S  0.7  1.3   0:11.03 sshd
14704 root      16   0  2128  980  796 R  0.7  0.5   0:02.72 top
     1 root      16   0  1992  632  544 S  0.0  0.3   0:00.90 init
     2 root      34  19     0    0    0 S  0.0  0.0   0:00.00 ksoftirqd/0
     3 root      RT   0     0    0    0 S  0.0  0.0   0:00.00 watchdog/0
统计信息区
前五行是系统整体的统计信息。第一行是任务队列信息,同 uptime 命令的执行结果。其内容如下:
01:06:48
当前时间
up 1:22
系统运行时间,格式为时:分
1 user
当前登录用户数
load average: 0.06, 0.60, 0.48
系统负载,即任务队列的平均长度。
三个数值分别为 1分钟、5分钟、15分钟前到现在的平均值。
第二、三行为进程和CPU的信息。当有多个CPU时,这些内容可能会超过两行。内容如下:
Tasks: 29 total
进程总数
1 running
正在运行的进程数
28 sleeping
睡眠的进程数
0 stopped
停止的进程数
0 zombie
僵尸进程数
Cpu(s): 0.3% us
用户空间占用CPU百分比
1.0% sy
内核空间占用CPU百分比
0.0% ni
用户进程空间内改变过优先级的进程占用CPU百分比
98.7% id
空闲CPU百分比
0.0% wa
等待输入输出的CPU时间百分比
0.0% hi

0.0% si

最后两行为内存信息。内容如下:
Mem: 191272k total
物理内存总量
173656k used
使用的物理内存总量
17616k free
空闲内存总量
22052k buffers
用作内核缓存的内存量
Swap: 192772k total
交换区总量
0k used
使用的交换区总量
192772k free
空闲交换区总量
123988k cached
缓冲的交换区总量。
内存中的内容被换出到交换区,而后又被换入到内存,但使用过的交换区尚未被覆盖,
该数值即为这些内容已存在于内存中的交换区的大小。
相应的内存再次被换出时可不必再对交换区写入。
进程信息区
统计信息区域的下方显示了各个进程的详细信息。首先来认识一下各列的含义。
序号
列名
含义
a
PID
进程id
b
PPID
父进程id
c
RUSER
Real user name
d
UID
进程所有者的用户id
e
USER
进程所有者的用户名
f
GROUP
进程所有者的组名
g
TTY
启动进程的终端名。不是从终端启动的进程则显示为 ?
h
PR
优先级
i
NI
nice值。负值表示高优先级,正值表示低优先级
j
P
最后使用的CPU,仅在多CPU环境下有意义
k
%CPU
上次更新到现在的CPU时间占用百分比
l
TIME
进程使用的CPU时间总计,单位秒
m
TIME+
进程使用的CPU时间总计,单位1/100秒
n
%MEM
进程使用的物理内存百分比
o
VIRT
进程使用的虚拟内存总量,单位kb。VIRT=SWAP+RES
p
SWAP
进程使用的虚拟内存中,被换出的大小,单位kb。
q
RES
进程使用的、未被换出的物理内存大小,单位kb。RES=CODE+DATA
r
CODE
可执行代码占用的物理内存大小,单位kb
s
DATA
可执行代码以外的部分(数据段+栈)占用的物理内存大小,单位kb
t
SHR
共享内存大小,单位kb
u
nFLT
页面错误次数
v
nDRT
最后一次写入到现在,被修改过的页面数。
w
S
进程状态。
D=不可中断的睡眠状态
R=运行
S=睡眠
T=跟踪/停止
Z=僵尸进程
x
COMMAND
命令名/命令行
y
WCHAN
若该进程在睡眠,则显示睡眠中的系统函数名
z
Flags
任务标志,参考 sched.h
默认情况下仅显示比较重要的 PID、USER、PR、NI、VIRT、RES、SHR、S、%CPU、%MEM、TIME+、COMMAND 列。可以通过下面的快捷键来更改显示内容。
更改显示内容
通过 f 键可以选择显示的内容。按 f 键之后会显示列的列表,按 a-z 即可显示或隐藏对应的列,最后按回车键确定。
o 键可以改变列的显示顺序。按小写的 a-z 可以将相应的列向右移动,而大写的 A-Z 可以将相应的列向左移动。最后按回车键确定。
按大写的 FO 键,然后按 a-z 可以将进程按照相应的列进行排序。而大写的 R 键可以将当前的排序倒转。
命令使用
1. 工具(命令)名称
top
2.工具(命令)作用
显示系统当前的进程和其他状况; top是一个动态显示过程,即可以通过用户按键来不断刷新当前状态.如果在前台执行该命令,它将独占前台,直到用户终止该程序为止. 比较准确的说,top命令提供了实时的对系统处理器的状态监视.它将显示系统中CPU最“敏感”的任务列表.该命令可以按CPU使用.内存使用和执行时间对任务进行排序;而且该命令的很多特性都可以通过交互式命令或者在个人定制文件中进行设定.
3.环境设置
在Linux下使用。
4.使用方法
4.1使用格式
top [-] [d] [p] [q] [c] [C] [S] [s]  [n]
4.2参数说明
d 指定每两次屏幕信息刷新之间的时间间隔。当然用户可以使用s交互命令来改变之。
p 通过指定监控进程ID来仅仅监控某个进程的状态。
q该选项将使top没有任何延迟的进行刷新。如果调用程序有超级用户权限,那么top将以尽可能高的优先级运行。
S 指定累计模式
s 使top命令在安全模式中运行。这将去除交互命令所带来的潜在危险。
i  使top不显示任何闲置或者僵死进程。
c  显示整个命令行而不只是显示命令名
4.3其他
  下面介绍在top命令执行过程中可以使用的一些交互命令。从使用角度来看,熟练的掌握这些命令比掌握选项还重要一些。这些命令都是单字母的,如果在命令行选项中使用了s选项,则可能其中一些命令会被屏蔽掉。
  Ctrl+L 擦除并且重写屏幕。
  h或者? 显示帮助画面,给出一些简短的命令总结说明。
  k 终止一个进程。系统将提示用户输入需要终止的进程PID,以及需要发送给该进程什么样的信号。一般的终止进程可以使用15信号;如果不能正常结束那就使用信号9强制结束该进程。默认值是信号15。在安全模式中此命令被屏蔽。
  i 忽略闲置和僵死进程。这是一个开关式命令。
  q 退出程序。
  r 重新安排一个进程的优先级别。系统提示用户输入需要改变的进程PID以及需要设置的进程优先级值。输入一个正值将使优先级降低,反之则可以使该进程拥有更高的优先权。默认值是10。
  S 切换到累计模式。
  s 改变两次刷新之间的延迟时间。系统将提示用户输入新的时间,单位为s。如果有小数,就换算成m s。输入0值则系统将不断刷新,默认值是5 s。需要注意的是如果设置太小的时间,很可能会引起不断刷新,从而根本来不及看清显示的情况,而且系统负载也会大大增加。
  f或者F 从当前显示中添加或者删除项目。
  o或者O 改变显示项目的顺序。
  l 切换显示平均负载和启动时间信息。
  m 切换显示内存信息。
  t 切换显示进程和CPU状态信息。
  c 切换显示命令名称和完整命令行。
  M 根据驻留内存大小进行排序。
  P 根据CPU使用百分比大小进行排序。
  T 根据时间/累计时间进行排序。
    W 将当前设置写入~/.toprc文件中。这是写top配置文件的推荐方法。

  • Share/Bookmark

Tags: , , , , , , , , , , , , , , ,

linux添加ip的方法

cd /etc/sysconfig/network-scripts 

ls -l

可以看到有
ifcfg-eth0 等

新建文件ifcfg-ethX,X为现有的序号的递增,如:

vi ifcfg-eth1

填入:

# Broadcom Corporation NetXtreme BCM5721 Gigabit Ethernet PCI Express
DEVICE=eth1
BOOTPROTO=none
HWADDR=00:e0:81:41:28:ee
ONBOOT=yes
NETMASK=255.255.255.248
IPADDR=204.13.64.188
GATEWAY=205.209.161.17
TYPE=Ethernet

IPADDR值为你要添的IP

有多少IP就新增多少ifcfg-ethX文件

然后运行:

/etc/init.d/network reload

使添加的IP生效

  • Share/Bookmark

Tags: , , , , , ,

Linux用户管理(涉及命令及配置文件)

一、用户管理概念
1.用户管理的范围
用户帐号管理
组帐号管理
用户/组帐号的权限管理
用户帐号的环境设置
2.Linux系统用户管理特点
多用户平台(ALT+F1–12)
单用户模式中无需用户
管理方法有两种:命令、图形工具、
二、用户帐号的管理
1.用户帐号的分类
超级用户(UID=0):具有一切系统操作权限
普通用户(UID=500—MAXUID默认值60000):操作权限受到限制
伪用户(UID=1—499):限制了本机登录(只用于远程登录,建立用户时不会建立本地用户配置文件)
注:用户的UID的取值,除0以外,其它值不允许用户取相同的值
2.用户帐号包含的信息
用户名:用户的字符
口令:
UID:用户唯一标识符
GID:用户组的唯一标识符
所属组
用户主目录:用户登录的初始目录
SHELL类型:设置SHELL程序的种类
3.用户数据文件
(1)/etc/passwd
功能:存放系统的用户帐号信息
内容:用户名  密码 UID GID 所属组 用户主目录 SHELL
实例: u1 : x : 0 : 0 : u1     /home/u1 :/bin/bash
 注:如果采用了shadow,此处存放口令的为屏蔽字符,真正密码保存在/etc/shadow中
   如果不采用shadow,采用明文件显示,如果采用md5加密的话所存放的为密文
(2)/etc/shadow
功能:存放用户口令(加密过的口令)
实例: u1 : bq$# : 10750: 0: 999 :7 : -1 :-1 : 12546
说明: u1 用户名
         b1$# 加密的口令  
        10750 从1970.1.1开始计算,该口令修改后已过去了多少天
         0    需要再过多少天这个口令可以被修改
9999 密码的有效期
7 口令失效多少天前发出警告
-1 口令失效多少天之后禁用这个账户
-1 口令从1970.1.1计算,该口令已经禁用了多少天
12546 保留
4.用户管理的工具
(1)命令工具
1)建立用户
格式:useradd [参数] 用户名
参数:-u UID:指定用户的UID值
-g 组名:指定用户的所属组
-G 组名:指定用户附加组
-d 路径:指定用户主目录
-e 时间:指定用户有效日期
-s SHELL:指定SHELL的类型
-m :建立用户主目录
-M :不建立用户主目录
-r :建立一个伪用户
实例:1)# useradd u2
2)# useradd -g g2 u2
3)# useradd -e 03/28/04 –g g3 -d /etc/ u3
2)删除用户
格式:userdel [参数] 用户名
参数:-r : 删除用户主目录
实例:1)# userdel u2
2)# userdel u3
3)设置用户口令
格式:passwd [用户名]
实例:#passwd u2
4)修改用户信息
格式:usermod [参数] 用户名
参数:-l 新的用户名:修改用户主目录
-d 路径:修改用户主目录
-G 组名:修改附加组
实例:1)# usermod -d / u3
2)# usermod -G u2 u3
3)# usermod -l user3 u3
(2)手工修改数据库文件
# vi 文件名
(3)图形工具
RH 7.3以前版:Linuxconf
RH 8.0/9.0:redhat—config—user
(4)X-Windows
用户管理器
三、组帐号管理
1.组的分类
私用组:只能包含一个用户(由创建用户的自动创建)
标准组:可以包含多个用户
2.组的信息
组名:组的标识符号
GID:组的唯一标识符
口令
组的成员
3.组的管理文件
/etc/group
功能:存放系统组信息
内容: g1: x : 500 :u1,u2,u3
4.组帐号的管理工具
(1)命令
1)建立组
格式:groupadd [参数] 组名
参数:-g GID :指定GID的值
-r :建立伪用户组(1–499)
实例:1)# groupadd g2
2)# groupadd –r g3
2)删除组
格式:guoupdel 组名
实例:guoupdel G3
3)修改组的信息
格式:groupmod [参数] 组名
参数:-n 新组名:修改组的GID
-g GID:修改组的GID
实例:1)# groudmod -n group g1
2)# groupmod -g 860 u1,u2
4)添加/删除组成员
格式:gpasswd [参数] 组名
参数:-a 用户名 : 向指定组添加用户
-d 用户名 : 从指定组中删除用户
实例:1)#gpasswd -a u1 root
2)#gpasswd -d u1 root
5)显示用户所属组
格式:groups [用户名]
实例:1)#groups (显示当前用户所属组)
2)#groups root (显示root用户的所属组)
(2) 图形工具/X-WINDOWS
四.权限管理
1.文件权限
定义:是一种限制用户对文件操作的符号
分类:读:r或4
写: w或2
执行:x或1
2.权限设置的方法
(1)chmod
功能:设置用户的文件操作权限
格式:chmod [参数]<权限值><文件名>
参数:-c:只有在文件权限发生改变时才显示详细说明
-v:显示详细说明
-R:递归改变目录的权限
说明:权限值的表示方法
A 、8进制数字表示
r :4 w :2 x : 1 rw :6 rwx : 7 wx : 5 rx : 5
0:代表没有权限
实例:# chmod 754 /etc/grub.conf
B、字符表示方法:
r–:只读 rw-:读写 rwx :读写执行 -w-:写 -wx:写和执行
–x:执行 r-x :读和执行 —:无权限
C、增加或减少权限值
用户符号:u:拥有者
g:拥有者同组用户
o:其它用户
a:所有用户
实例:1)# chmod u+x file1
2)# chmod u-x,0+rw- file2
(2) chown
功能:改变文件拥有者
格式:chown [参数]<用户名><文件名>
参数:-R:递归改变目录的拥有者
-f:不显示拥有者的详细信息
实例:1)# chown user f1
2)# chown -R user1 /d1
(3)umask
功能:设置权限掩码(决定新建文件的权限)
格式:umask 权限值(超级用户默认为022,普通用户默认为002)
实例:# umask 044
计算公式:目录:777-umask

  • Share/Bookmark

Tags: , , , , , , , , , , , ,