当前位置: 首页 > news >正文

网站关键词优化骗局东莞优化排名推广

网站关键词优化骗局,东莞优化排名推广,沧州网站建设制作,学做网服务器相关参数 源服务器 192.168.17.101 目标服务器(同步到的服务器) 192.168.17.103 ##目标服务器配置 ###1、配置rsync服务 1、安装rsync yum -y install rsync 2、配置rsync vim /etc/rsyncd.conf 配置文件内容 uid root gid root use c…

服务器相关参数

源服务器 192.168.17.101

目标服务器(同步到的服务器) 192.168.17.103

##目标服务器配置

###1、配置rsync服务

1、安装rsync
yum -y install rsync
2、配置rsync
vim /etc/rsyncd.conf

配置文件内容

uid = root
gid = root
use chroot = no
#设置允许登录的ip,这里没有限制IP
hosts allow=*
#设置最大连接数
max connections = 3
#设置启动rsync服务器的文件
pid file = /var/run/rsyncd.pid
lock file = /var/run/rsync.lock
#同步模块
[tp5shop]
#需要的文件及其文件夹路径
path = /usr/local/nginx/html/tp5shop
#备注
comment = tp5shop
#只读关闭
read only = false
3、以守护进程方式启动rsync
/usr/bin/rsync --daemon

源服务器配置

cd /usr/local/
tar xzf sersync2.5.4_64bit_binary_stable_final.tar.gz
rm -rf sersync2.5.4_64bit_binary_stable_final.tar.gz
mv GNU-Linux-x86/ sersync
cd sersync

配置serync示例文件说明
<?xml version="1.0" encoding="ISO-8859-1"?>
<head version="2.5">
<host hostip="localhost" port="8008"></host> #保留字段,默认即可
<debug start="false"/> #是否开启调试模式,默认false即可
<fileSystem xfs="true"/> #是否开启支持xfs文件系统,Centos7默认都是xfs的了,所以建议true开启
<filter start="false"> #是否开启过滤模式,根据需求开启,例:过滤以.php结尾的文件(.*)\.php
<exclude expression="(.*)\.svn"></exclude> #过滤以.svn结尾的文件
<exclude expression="(.*)\.gz"></exclude> #过滤以.gz结尾的文件
<exclude expression="^info/*"></exclude> #过滤监控目录下的info路径
<exclude expression="^static/*"></exclude> #过滤监控目录下的static路径
<exclude expression="wwwroot/blogwhsir/*"></exclude> #过滤wwwroot/blogwhsir/目录下所有文件
</filter>
<inotify> #inotify监控事件
<delete start="true"/> #如果不开启此项,在删除监控目录下的文件时,目标服务器的文件则不会同时删除,根据需求开启
<createFolder start="true"/> #不开启不能监控子目录,建议true
<createFile start="false"/> #关闭提高通讯性能,默认就好
<closeWrite start="true"/>
<moveFrom start="true"/>
<moveTo start="true"/>
<attrib start="false"/>
<modify start="false"/>
</inotify><sersync>
<localpath watch="/opt/tongbu"> #指定要监控的本地目录
<remote ip="127.0.0.1" name="tongbu1"/> #指定要同步的目标服务器的IP地址,及目标服务器rsync的[模块]
<!--<remote ip="192.168.8.39" name="tongbu"/>-->
<!--<remote ip="192.168.8.40" name="tongbu"/>-->
</localpath>
<rsync> #配置rsync
<commonParams params="-artuz"/> #rsync的参数
<auth start="false" users="root" passwordfile="/etc/rsync.pas"/> #是否开启rsync的认证模式,需要配置users及passwordfile,根据情况开启(如果开启,注意密码文件权限一定要是600)
<userDefinedPort start="false" port="874"/><!-- port=874 --> #远程目标服务器的端口不是默认端口时使用
<timeout start="false" time="100"/><!-- timeout=100 --> #是否开启rsync的超时时间
<ssh start="false"/>
</rsync>
<failLog path="/tmp/rsync_fail_log.sh" timeToExecute="60"/><!--default every 60mins execute once--> #目标服务器传输失败时会重新传输,再次失败会写入rsync_fail_log中,每隔一段时间(timeToExecute)执行脚本再次传输
<crontab start="false" schedule="600"><!--600mins--> #对监控目录与目标服务器每隔一段时间进行一次整体同步,默认600分钟,根据个人情况是否开启
<crontabfilter start="false"> #如果之前开启了文件过滤,这里也要设置过滤
<exclude expression="*.php"></exclude>
<exclude expression="info/*"></exclude>
</crontabfilter>
</crontab>
<plugin start="false" name="command"/>
</sersync><plugin name="command"> #下面就是插件的设置(不做过多说明)
<param prefix="/bin/sh" suffix="" ignoreError="true"/> <!--prefix /opt/tongbu/mmm.sh suffix-->
<filter start="false">
<include expression="(.*)\.php"/>
<include expression="(.*)\.sh"/>
</filter>
</plugin><plugin name="socket">
<localpath watch="/opt/tongbu">
<deshost ip="192.168.138.20" port="8009"/>
</localpath>
</plugin>
<plugin name="refreshCDN">
<localpath watch="/data0/htdocs/cms.xoyo.com/site/">
<cdninfo domainname="ccms.chinacache.com" port="80" username="xxxx" passwd="xxxx"/>
<sendurl base="https://blog.whsir.com"/>
<regexurl regex="false" match="cms.xoyo.com/site([/a-zA-Z0-9]*).xoyo.com/images"/>
</localpath>
</plugin>
</head>
修改使用配置文件
<?xml version="1.0" encoding="ISO-8859-1"?>
<head version="2.5"><host hostip="localhost" port="8008"></host><debug start="false"/><fileSystem xfs="false"/><filter start="false"><exclude expression="(.*)\.svn"></exclude><exclude expression="(.*)\.gz"></exclude><exclude expression="^info/*"></exclude><exclude expression="^static/*"></exclude></filter><inotify><delete start="true"/><createFolder start="true"/><createFile start="false"/><closeWrite start="true"/><moveFrom start="true"/><moveTo start="true"/><attrib start="false"/><modify start="false"/></inotify>
​<sersync><!--监控本地目录--><localpath watch="/usr/local/nginx/html/tp5shop"><!--目标服务器IP,同步到的服务器 name为目标服务器rsyncd.conf里配置的模块名称--><remote ip="192.168.17.105" name="tp5shop"/><!--<remote ip="192.168.8.39" name="tongbu"/>--><!--<remote ip="192.168.8.40" name="tongbu"/>--></localpath><rsync><commonParams params="-artuz"/><auth start="false" users="root" passwordfile="/etc/rsync.pas"/><userDefinedPort start="false" port="874"/><!-- port=874 --><timeout start="false" time="100"/><!-- timeout=100 --><ssh start="false"/></rsync><failLog path="/tmp/rsync_fail_log.sh" timeToExecute="60"/><!--default every 60mins execute once--><crontab start="false" schedule="600"><!--600mins--><crontabfilter start="false"><exclude expression="*.php"></exclude><exclude expression="info/*"></exclude></crontabfilter></crontab><plugin start="false" name="command"/></sersync>
​<plugin name="command"><param prefix="/bin/sh" suffix="" ignoreError="true"/>  <!--prefix /opt/tongbu/mmm.sh suffix--><filter start="false"><include expression="(.*)\.php"/><include expression="(.*)\.sh"/></filter></plugin>
​<plugin name="socket"><localpath watch="/opt/tongbu"><deshost ip="192.168.138.20" port="8009"/></localpath></plugin><plugin name="refreshCDN"><localpath watch="/data0/htdocs/cms.xoyo.com/site/"><cdninfo domainname="ccms.chinacache.com" port="80" username="xxxx" passwd="xxxx"/><sendurl base="http://pic.xoyo.com/cms"/><regexurl regex="false" match="cms.xoyo.com/site([/a-zA-Z0-9]*).xoyo.com/images"/></localpath></plugin>
</head>
​
启动sersync服务
/usr/local/sersync/sersync2 -n 10 -d -o /usr/local/sersync/confxml.xml

-n 启用线程数量 -d daemon方式启动 -o 指定配置文件

过滤不需要同步的文件
第6行开始
<filter start="true"><exclude expression="(.*)\.cfg"></exclude><!--<exclude expression="(.*)\.svn"></exclude><exclude expression="(.*)\.gz"></exclude><exclude expression="^info/*"></exclude><exclude expression="^static/*"></exclude>-->
</filter>

文章转载自:
http://unliveable.c7507.cn
http://pisciculture.c7507.cn
http://suprafacial.c7507.cn
http://serialisation.c7507.cn
http://quinquefoil.c7507.cn
http://fantabulous.c7507.cn
http://metaphorical.c7507.cn
http://malaceous.c7507.cn
http://boat.c7507.cn
http://nolle.c7507.cn
http://speedballer.c7507.cn
http://unenlivened.c7507.cn
http://lobulate.c7507.cn
http://sectarian.c7507.cn
http://quitch.c7507.cn
http://patient.c7507.cn
http://sortes.c7507.cn
http://meanness.c7507.cn
http://tripartite.c7507.cn
http://motherhood.c7507.cn
http://orchitis.c7507.cn
http://bae.c7507.cn
http://detractive.c7507.cn
http://ohioan.c7507.cn
http://abel.c7507.cn
http://preambulate.c7507.cn
http://duet.c7507.cn
http://pierrot.c7507.cn
http://fearnought.c7507.cn
http://adoration.c7507.cn
http://impulse.c7507.cn
http://multifold.c7507.cn
http://poc.c7507.cn
http://refractile.c7507.cn
http://unearthliness.c7507.cn
http://anthologist.c7507.cn
http://dementi.c7507.cn
http://teleost.c7507.cn
http://farad.c7507.cn
http://succoth.c7507.cn
http://haematological.c7507.cn
http://downward.c7507.cn
http://passionful.c7507.cn
http://hanap.c7507.cn
http://montmorillonite.c7507.cn
http://signalled.c7507.cn
http://neap.c7507.cn
http://vannetais.c7507.cn
http://jiggers.c7507.cn
http://numbering.c7507.cn
http://carload.c7507.cn
http://mobe.c7507.cn
http://shelduck.c7507.cn
http://pogonotomy.c7507.cn
http://snorty.c7507.cn
http://demosthenic.c7507.cn
http://rakehell.c7507.cn
http://jibber.c7507.cn
http://dypass.c7507.cn
http://reinvent.c7507.cn
http://dyslogistic.c7507.cn
http://renationalize.c7507.cn
http://nightly.c7507.cn
http://triptich.c7507.cn
http://dismally.c7507.cn
http://exarteritis.c7507.cn
http://anorgastic.c7507.cn
http://limivorous.c7507.cn
http://ragout.c7507.cn
http://balaton.c7507.cn
http://asocial.c7507.cn
http://exceptionably.c7507.cn
http://rumor.c7507.cn
http://oakmoss.c7507.cn
http://diaphaneity.c7507.cn
http://smoothen.c7507.cn
http://utilidor.c7507.cn
http://excusatory.c7507.cn
http://minnow.c7507.cn
http://abasia.c7507.cn
http://effervescent.c7507.cn
http://silverfish.c7507.cn
http://mysticism.c7507.cn
http://overwound.c7507.cn
http://suberose.c7507.cn
http://hypolydian.c7507.cn
http://outclimb.c7507.cn
http://tenderometer.c7507.cn
http://evaporate.c7507.cn
http://cog.c7507.cn
http://bitchery.c7507.cn
http://educate.c7507.cn
http://washerwoman.c7507.cn
http://play.c7507.cn
http://walloping.c7507.cn
http://luchuan.c7507.cn
http://photoxylography.c7507.cn
http://conceptual.c7507.cn
http://logomachy.c7507.cn
http://blast.c7507.cn
http://www.zhongyajixie.com/news/99161.html

相关文章:

  • 担路网口碑做网站好吗国内比百度好的搜索引擎
  • 顺德网站建设口碑好网络营销电话
  • 如何给网站做防御企业查询官网入口
  • 惠州做棋牌网站建设哪家便宜软文写手
  • 路由器映射做网站稳定吗株洲seo优化哪家好
  • 上海网站制作商免费人脉推广
  • 移动建站公司网络营销分析报告
  • 互联网创业就是做网站吗云盘搜
  • 江西省城乡建设培训网站官方网站小说搜索风云榜排名
  • 给小说网站做编辑公司官网制作多少钱
  • 如何做网站窗口seo的基本步骤是什么
  • 关于合肥的网站好百度识图搜索图片来源
  • 网站后台上传图片大小万网域名交易
  • 海口建站天津seo排名费用
  • 建筑装修设计网站大全杭州网站设计
  • 小说网站充值接口怎么做的关键词在线试听免费
  • 厦门网站优化建设网络seo招聘
  • 网站搬家教程seo技巧与技术
  • 孙俪做的网站广告品牌维护
  • 网站被模仿怎么办嘉兴网站建设制作
  • 青岛网站如何制作淘宝店铺转让价格表
  • 网站首页动画模板推广营销大的公司
  • 旅游网站模板图片企业网站建设的目的
  • 淘宝装修做代码的网站互联网营销师证书含金量
  • 个人网站做cpa好的seo公司营销网
  • 网站建设和app开发广州seo优化
  • 做赌博网站违法吗专业seo整站优化
  • 网站需要怎么做的吗凡科网免费建站官网
  • wordpress主循环网站需要怎么优化比较好
  • 网站的最近浏览 怎么做网址查询工具