windows7 和 centos 共享文件夹配置

1. 安装 samba
yum -y install samba

2. 配置 samba
# vim /etc/samba/smb.conf

[global]

workgroup = wordgroup
display charset = UTF-8
unix charset = UTF-8
dos charset = cp936
server string = Samba Server Version %v

security = share
passdb backend = tdbsam

load printers = no
cups options = raw

[www]
comment = WWW Directories
path = /home/www
browseable = yes
writable = yes
public = yes
create mask = 0755
valid users = www
username map = /etc/samba/smbusers

注意:valid users = www 为系统用户www, 为运行 nginx, php 的用户

3. 运行
# service smb restart
好了,在 windows 7 按 win+r 键运行
//ip

国外广告联盟有哪些

收益受损风险 - 您需要修正一些 ads.txt file 问题,以免收入严重受损。

google.com/adsense
地球人都知道的google adsense,以点击单价高和无故封号而著称
publisher.yahoo.com
传说中的雅虎YPN,有美国身份才能申请,不比GG差多少,刚出来的时候造就了NNN个作弊发家的百万富翁
adbrite.com
有亚马逊和alexa为背景的广告平台,有点像阿里妈妈的形式
linkshare.com
以CPS为主的联盟,支持对中国地址发支票,但事实上以中国身份申请不到什么好广告
affiliatefuture.co.uk
英系公司中的强者
network.hydramedia.com
传说中的九头蛇公司,也算是顶级信誉了,号难申请
cpaempire.com
也是个大规模的公司(记忆中好像是个女人开的),曾经也是作弊者的乐园,上次血洗以后就很少人提了
incentaclick.com
是很多国外小联盟的上家,以CPL和CPS为主,给的价格很不错,但你得能批到帐号
tradedoubler.com
英国的公司,要有英国银行账号才能申请,这个问题可以找英国的朋友解决
CJ.com
世界第一重量级的广告联盟,曾经禁止中国注册,后来开放了,但很多好广告是直接拒绝中国身份的
shareasale.com
一家我不想提的联盟,但规模确实很大,鄙视新手的公司
zanox.com
超大型的欧洲公司,前两年进军中国,但没造成多大影响,习惯了美系公司的同学会觉得很不适应
clickbank.com
四大虚拟品销售平台之一,是很多adwords玩家的主要收入来源,比CJ更适合新手
axill.com
一个深受作弊影响的日付公司,它的一些上家对它的LEAD有效率很不满意,所以这家公司经常疯狂屠杀操作手法有问题的affiliates
zangocash.com
插件类广告的极品,有特殊手法推广的同学才会觉得爽
clickbooth.com
注册需要电话确认的公司,特点不太突出
affiliatewindow.com
数一数二的英系公司,批号要从信用卡里刷几英镑,不过批号了会返还
azoogleads.com
美系公司中的佼佼者,shoemoney那个秃头一直极度推崇的公司

解决wordpress中访问googleapis.com 访问慢

wordpress

wordpress中的很多样式需要google支持,国内访问又慢,好在360给我们提供了公共资源,直接替换即可:

先查下包含googleapis的代码:(目的是确定能够find出代码)

#find . -name "*.php" -o -name "*.css" -o -name "*.js" -o -name "*.html" -o -name "*.js" -type f |xargs grep googleapis


./wp-content/themes/my-money/style.css:@import url(http://fonts.googleapis.com/css?family=Source+Sans+Pro:400);

./wp-content/themes/my-money/fw/mythemes.class.php: @import url(http://fonts.googleapis.com/css?family=Source+Sans+Pro:200,400);
./wp-content/themes/my-money/media/admin/css/admin.css:@import url("http://fonts.googleapis.com/css?family=Oswald&v1");
./wp-content/themes/my-money/media/admin/css/admin.css:@import url("http://fonts.googleapis.com/css?family=PT+Sans+Narrow&v1");
./wp-includes/js/tinymce/plugins/compat3x/css/dialog.css:@import url(//fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,600italic,300,400,600&subset=latin-ext,latin);
./wp-includes/script-loader.php: $scripts->add( 'prototype', '//ajax.googleapis.com/ajax/libs/prototype/1.7.1.0/prototype.js', array(), '1.7.1');
./wp-includes/script-loader.php: $scripts->add( 'scriptaculous-root', '//ajax.googleapis.com/ajax/libs/scriptaculous/1.9.0/scriptaculous.js', array('prototype'), '1.9.0');
./wp-includes/script-loader.php: $scripts->add( 'scriptaculous-builder', '//ajax.googleapis.com/ajax/libs/scriptaculous/1.9.0/builder.js', array('scriptaculous-root'), '1.9.0');
./wp-includes/script-loader.php: $scripts->add( 'scriptaculous-dragdrop', '//ajax.googleapis.com/ajax/libs/scriptaculous/1.9.0/dragdrop.js', array('scriptaculous-builder', 'scriptaculous-effects'), '1.9.0');
./wp-includes/script-loader.php: $scripts->add( 'scriptaculous-effects', '//ajax.googleapis.com/ajax/libs/scriptaculous/1.9.0/effects.js', array('scriptaculous-root'), '1.9.0');
./wp-includes/script-loader.php: $scripts->add( 'scriptaculous-slider', '//ajax.googleapis.com/ajax/libs/scriptaculous/1.9.0/slider.js', array('scriptaculous-effects'), '1.9.0');
./wp-includes/script-loader.php: $scripts->add( 'scriptaculous-sound', '//ajax.googleapis.com/ajax/libs/scriptaculous/1.9.0/sound.js', array( 'scriptaculous-root' ), '1.9.0' );
./wp-includes/script-loader.php: $scripts->add( 'scriptaculous-controls', '//ajax.googleapis.com/ajax/libs/scriptaculous/1.9.0/controls.js', array('scriptaculous-root'), '1.9.0');
./wp-includes/script-loader.php: $open_sans_font_url = "//fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,600italic,300,400,600&subset=$subsets";


看来并不多的代码,直接替换吧:

#find . -name "*.php" -o -name "*.css" -o -name "*.js" -o -name "*.html" -o -name "*.js" -type f |xargs sed -i 's/googleapis.com/useso.com/g'

替换完成,进行确认:

find . -name "*.php" -o -name "*.css" -o -name "*.js" -o -name "*.html" -o -name "*.js" -type f |xargs grep useso


./wp-content/themes/my-money/style.css:@import url(http://fonts.useso.com/css?family=Source+Sans+Pro:400);
./wp-content/themes/my-money/fw/mythemes.class.php: @import url(http://fonts.useso.com/css?family=Source+Sans+Pro:200,400);
./wp-content/themes/my-money/media/admin/css/admin.css:@import url("http://fonts.useso.com/css?family=Oswald&v1");
./wp-content/themes/my-money/media/admin/css/admin.css:@import url("http://fonts.useso.com/css?family=PT+Sans+Narrow&v1");
./wp-includes/js/tinymce/plugins/compat3x/css/dialog.css:@import url(//fonts.useso.com/css?family=Open+Sans:300italic,400italic,600italic,300,400,600&subset=latin-ext,latin);
./wp-includes/script-loader.php: $scripts->add( 'prototype', '//ajax.useso.com/ajax/libs/prototype/1.7.1.0/prototype.js', array(), '1.7.1');
./wp-includes/script-loader.php: $scripts->add( 'scriptaculous-root', '//ajax.useso.com/ajax/libs/scriptaculous/1.9.0/scriptaculous.js', array('prototype'), '1.9.0');
./wp-includes/script-loader.php: $scripts->add( 'scriptaculous-builder', '//ajax.useso.com/ajax/libs/scriptaculous/1.9.0/builder.js', array('scriptaculous-root'), '1.9.0');
./wp-includes/script-loader.php: $scripts->add( 'scriptaculous-dragdrop', '//ajax.useso.com/ajax/libs/scriptaculous/1.9.0/dragdrop.js', array('scriptaculous-builder', 'scriptaculous-effects'), '1.9.0');
./wp-includes/script-loader.php: $scripts->add( 'scriptaculous-effects', '//ajax.useso.com/ajax/libs/scriptaculous/1.9.0/effects.js', array('scriptaculous-root'), '1.9.0');
./wp-includes/script-loader.php: $scripts->add( 'scriptaculous-slider', '//ajax.useso.com/ajax/libs/scriptaculous/1.9.0/slider.js', array('scriptaculous-effects'), '1.9.0');
./wp-includes/script-loader.php: $scripts->add( 'scriptaculous-sound', '//ajax.useso.com/ajax/libs/scriptaculous/1.9.0/sound.js', array( 'scriptaculous-root' ), '1.9.0' );
./wp-includes/script-loader.php: $scripts->add( 'scriptaculous-controls', '//ajax.useso.com/ajax/libs/scriptaculous/1.9.0/controls.js', array('scriptaculous-root'), '1.9.0');
./wp-includes/script-loader.php: $open_sans_font_url = "//fonts.useso.com/css?family=Open+Sans:300italic,400italic,600italic,300,400,600&subset=$subsets";


 

 

哈哈,完成。

利用nginx做小偷站配置方法

山寨对方的网站,但是反向代理后的网站还是有对方的绝对链接时,怎么办?所以要用替换链接方法。

1 使用官方的的模块 编译参数–with-http_sub_module
ub_filter 源网站链接 替换自己的链接;
sub_filter_once off;
只能匹配1行
http://wiki.nginx.org/HttpSubModule
2 使用第三方模块
svn checkout http://substitutions4nginx.googlecode.com/svn/trunk/substitutions4nginx-read-only
编译参数–add-module=模块地址
http://wiki.nginx.org/HttpSubsModule#Installation
3 自己加广告等等代码可以
sub_filter ” ‘你的XXX代码’;
sub_filter_once on;
更为详细
相信大家都已经很熟悉 Apache 和 Nginx, 其实它们本身都有关键词替换功能,也就是说,你根本不需要安装任何额外的软件,甚至连 php/mysql 都省了,只要用 Apache 或者 nginx 就可以实现网站克隆/伪原创。
要点只有2个:
1. 反向代理
2. 关键词替换
下面就讲讲过程 (centos-32bit)
1. nginx + substitutions 安装
nginx 自带一个Substitution模块,但该模块只能写一行,所以我们改用 substitutions
下面是安装一些预备软件
复制内容到剪贴板
代码:
yum -y –noplugins install wget zip
yum -y –noplugins install unzip
yum -y –noplugins install gcc
yum -y –noplugins install make
yum -y –noplugins install pcre-devel
yum -y –noplugins install openssl-devel

下载软件
复制内容到剪贴板

代码:
wget -c http://www.nginx.org/download/nginx-1.0.8.tar.gz //下载nginx
svn checkout http://substitutions4nginx.googlecode.com/svn/trunk/ substitutions4nginx-read-only //下载substitutions
编译软件
复制内容到剪贴板
代码:
tar zxf nginx-1.0.8.tar.gz
cd nginx-1.0.8.tar.gz
./configure ./configure –add-module=path/substitutions4nginx-read-only //注意这里的path是相对应的真实路径
make
make install
此时,nginx应该安装在于 /usr/local/nginx 下面
配置 nginx.conf
复制内容到剪贴板
代码:
server_name www.urdomain.com;
location / {
subs_filter ca-pub-9805743306566114 ca-pub-98057433063434; //把google ad 的用户号 ca-pub-9805743306566114 改成你自己的,比如 ca-pub-98057433063434
subs_filter 6121088089 612108343455; //把google ad 的广告号 6121088089 改成你自己的,比如 612108343455 ,你懂的!:D
proxy_pass www.urdomain.com; //反向代理美国主机村。 最好找一些带有google 广告的网站,主机村在 google 收录 34万条,百度收录几乎没有,这或许是.info 的失败,也是为什么我们选择这样的网站来反代的原因。
index index.html index.htm;
}

记住subs_filter 命令的格式,你想替换设么就随你了。比如我把网站的网址 www.urdomain.com替换成了 www.urdomain-2.com
另外, 反向代理的个数是不限制的。只要你掌握了规则,一个网站下可以包含n多个网站的镜像。 一个nginx 上也可以跑 n多个网站。就看你自己怎么运用了。
别忘了吧logo地址替换成自己的.

建立博客站群月赚3000刀

转载自老外文章:

From $1000 dollar a month to $1500
Quote Originally Posted by Qbar View Post
Hurrah!
For the first time I break my target of 1000 dollar in a month with Adsense!
I reached $1,028.62)
Well was lucky in January.
But will be difficult to match this performance -for me it's one- next month:
- google isn't fair on click pricing
- and the fact if that February is shorter than Juanuary by two days
Let's work harder then!
Quote Originally Posted by Qbar View Post
I've got a network of entertainment blogs (80 hosted on blogger) that accounts for 70% of my monthly revenue and a TV site -not a blog- that accounts for the remaining 30%.
80 blogs may seem a lot at first: but actually it is not.
I'm competing on niches and having one site per topic allow "to overperform" in Google serps despite my sites being modest. My blogs have only 10 pages max, 4 in average (but they are meaningful, not made for adsense spam pages) so they are easy to set up.
I read alot on digitalpoint and what i won't forget is that your url name does influence your ranking in google: so i just use my keywords to make my urls.
Besides for each page/post i make i systematically list them in 10 selected social bookmarking sites.
And because i have more than 80 sites now, i do have some -limited in general but real in my niches- influence on serps by my own: with my network I can give a serp boost to the new pages i may make.
As a result I don't make use of advertising yet.
Still a lot of work to do though before i reach 1500 dollars (my next target is indeed 1000 euros, around 1500 dollars as of today).
My strategy has a big weakness though: i rely entirely on Adsense, but there isn't any real alternative so far for me.
Damned, every night i pray to find a real competiter to Adsense!
I went close to 3000 dollars end of August but then I was heavily smart priced by Adsense... All stats were roughly the same but because my Earnings per clik (EPC = revenue / number of clicks) decreased (it means that a click is getting less valuable) and my revenue just went down the drain: from 3000 to 1200 --> -60% !!!
I read that many people were affected by a general decrease in September and end of October: well I was damn hit! Even more hit than others actually...
Have a look to this EPC graph over the year 2009 (it's not against the TOS, I just show the curve without any number):
The red circle is when I took a stance against smart pricing and tried to get out of it.
About smart pricing first:
- I confirm that smart pricing can affect you whole account (so one bad site can weaken the revenue of the others)
- if you do what is needed to get out of it: one week can be enough to recover a bit
How to get out of smart pricing: (from my experience)
- check your sites that generate impressions but no click, and take ads out of them!
- I had too many ads on my sites (before I had a square, 2 banners and a link unit), all was fine until Adsense considered it was too much in September... So I decided to show only one or two ads per page now, and I stopped using link units (link units had a good ctr, but low epc, hence negatively impacting my whole account...)
Quite soon, my EPC went up and even outperformed my previous average. But because I'm showing less ads, ctr is much lower (ads area has been reduced indeed, so people are less likely to click on ads ) so my revenue is just back at $2000.
To sum up, if you want to get out of smart pricing:
- export your data in an excel file and calculate your EPC every day (also, make a colum, variation of EPC), EPC is probably the most important indicator (but google does not make it easy for your to check... isn't that strange?...)! You have to check your EPC every day!
- cut the bad apples (sites with impressions but no clicks)
- less ads brings more money (use a skyscraper, a leaderboard or a big square)
- avoid links units!
Comment:
What I did to get out of Smart Pricing makes me think that Adsense is categorizing sites: if your ctr is too high or too low compared to your niche market then you may get smart-priced... Be better than average, but not by too much!
Diversification
I was using only Adsense int he past, but following the epc decrease, I turned to some other networks. I strongly suggest to use kontera (inline text advertising) and tribal fusion (CPM)
My new revenue for december
Adsense: around 2100
Kontera: 400
Tribal Fusion: 350
Total around $2850
I was really depressed when my EPC went down... If you're victim of smart pricing: you know there is a way out by now!

了解Google Adsense Smart Price机制原理提高广告收益

paypal提现

大家都知道google的广告是按点击付费的,所以有很多站长为了提高网站广告的点击率会自己去点、请朋友去点或者加入GOOGLE广告互点联盟,甚至有些站长会利用软件去刷流量骗点击,其实这些方法虽然短期内可能会给你带来一定的收益,但长远来看你还是亏了,你的谷歌账号甚至会被K掉而且还收不到钱,为什么这么说呢?你有必要了解一下Google Adsense Smart Price机制才能不被k站。首先,不管是百度广告还是在google的广告里每个关键词的定价都是不一样的,相应的客户在你网站上点击不同关键词你的收入也不一样,但有时候你会发现,即使是点击同样的词它的单价却变低了,这里且不考虑关键词本身的价格会有波动,事实上影响google广告单价的幕后英雄是 Smart Price 机制, 说白了就是google为平衡广告发布者的利益设置的价格平衡系统, 有以下几点大家要格外注意:了解Google Adsense Smart Price机制原理提高广告收益

1. Smart Price 会影响整个帐户, 而不是单个通道(每个google adsense账户中可以设置多个通道,站长可以把不同通道里的广告放到不同的位置从而比较各通道的收益找出最佳的广告投放位置。)
2. Smart Price 的活动周期以周为单位的;
3. Smart Price 的活动周期以月为单位的;
Smart Price 的目的就是为了广告发布商(AdWords) 平衡价格, 简单地说如果来自一个Adsense帐户的引导没有最终为广告发布商带来效益, 在下一个 Smart Price的活动周期单价就会下降, GG有自己的和已经给广告发布商的分别评价系统.
Smart Price 即为保护广告发布商的利益, 其实也为GG自己考虑, 它需要真正能为广告发布商带来效益才是其广告计划的发展根本 .
一个坏的通道, 会影响整个帐户,所以不建议大家为了提高眼前的收益去铤而走险,因小失大。
在网页投放广告方面, 因为 Smart Price, 如果着眼于颜色一体, 浏览者的误点击, 或者浏览者无意点击等等, 这样的点击不会为广告发布商带来任何效益, 所以不久会影响帐户的 Smart Price, 从而影响整个帐户. 这就象左派武功一样, 虽然短时间内很见效, 但长远考虑就不及正宗武功那样深厚了.到后来, 别人0.5点击率的单价会远高于你1.5-2.0(或者更高)点击率的单价, 而你的点击率再回到0.5的时候, 你的价格已经惨不忍睹, 就象黄河水一样, 河堤会越来越高.
所以关键还是建设好网页的内容, 上面有浏览者真正需要的资料, 而广告的放置我们可以看看国外许多真正的大网站, 一般是独立的, 鲜明的, 相关的形式出现,让浏览者能选择其真正感兴趣的内容, 从而产生真正的价值这些大网站不是不知道各种技巧, 但其实只有这样才是真正的广告投放之道.