首页 > 技术文章 正文
火车头Web发布配置批量添加

 2021-07-28 10:36:29

做过站群的人,特别是数量非常大的人,都用过火车头,但是在用的过程中,最蛋疼的是什么呢?我个人觉得最蛋疼的就是火车头里面的web发布配置的添加,你几个站,十几个站那倒没什么,如果几

 

 

做过站群的人,特别是数量非常大的人,都用过火车头,但是在用的过程中,最蛋疼的是什么呢?我个人觉得最蛋疼的就是火车头里面的web发布配置的添加,你几个站,十几个站那倒没什么,如果几百上千个,要添加几百上千次,这都算了,如果一个站有文章跟视频两个发布模块,有的甚至更多的不同发布模块,那得分别都添加一次web发布配置,人都会搞死。经过一段时间摸索,总结出火车头web发布配置批量添加的方法。
一,首先,咱们在安装火车头的服务器上,下载安装SQLite Developer
我是在chinaz下载的,SqliteDev_v3.92版本,下载地址:http://down.chinaz.com/soft/22711.htm
二,进入火车的安装目录下的Configuration目录下,找到Configuration 目录下有个:config.db3这个文件。
1,先进火车头,按照你的需要添加一个web发布配置
2,打开SQLite Developer这个软件,然后加载config.db3这个数据库,找到表:WebPost
3,右键查询,把你添加的web发布配置的这个数据复制出来,得到所要用的字段,然后依据这个字段,写成插入语句。
我这里是a1.com跟a2.com两个站的视频,文章两个不同模块的sql插入语句。
视频模块插入sql

insert into MAIN.[WebPost] (WebPostName,XmlData,ModifyOn) values ('a1.com','<?xml version="1.0" encoding="utf-8"?><root><Cookies></Cookies><Encoding>GB2312</Encoding><GlobalVar></GlobalVar><LoginType>2</LoginType><Fid></Fid><FName></FName><ModuleName>马克斯 CMS4.0 视频 添加_更新(HTML)</ModuleName><Password></Password><SiteUrl>http://www.a1.com/admin</SiteUrl><UserAgent></UserAgent><UserName></UserName><AcceptLanguage>zh-cn,cn,en,en-us</AcceptLanguage><TimeOut>30</TimeOut><ProxyServer></ProxyServer><ProxyPort>1023</ProxyPort><ProxyUsername></ProxyUsername><ProxyPassword></ProxyPassword></root>','2014/5/29 15:51:03');
insert into MAIN.[WebPost] (WebPostName,XmlData,ModifyOn) values ('a2.com','<?xml version="1.0" encoding="utf-8"?><root><Cookies></Cookies><Encoding>GB2312</Encoding><GlobalVar></GlobalVar><LoginType>2</LoginType><Fid></Fid><FName></FName><ModuleName>马克斯 CMS4.0 视频 添加_更新(HTML)</ModuleName><Password></Password><SiteUrl>http://www.a2.com/admin</SiteUrl><UserAgent></UserAgent><UserName></UserName><AcceptLanguage>zh-cn,cn,en,en-us</AcceptLanguage><TimeOut>30</TimeOut><ProxyServer></ProxyServer><ProxyPort>1023</ProxyPort><ProxyUsername></ProxyUsername><ProxyPassword></ProxyPassword></root>','2014/5/29 15:51:03');

文章模块插入sql

insert into MAIN.[WebPost] (WebPostName,XmlData,ModifyOn) values ('http://www.a1.com','<?xml version="1.0" encoding="utf-8"?><root><Cookies></Cookies><Encoding>GB2312</Encoding><GlobalVar></GlobalVar><LoginType>2</LoginType><Fid></Fid><FName></FName><ModuleName>马克斯电影系统文章免登陆WEB在线发布模块--淘宝版</ModuleName><Password></Password><SiteUrl>http://www.a1.com/admin</SiteUrl><UserAgent></UserAgent><UserName></UserName><AcceptLanguage>zh-cn,cn,en,en-us</AcceptLanguage><TimeOut>30</TimeOut><ProxyServer></ProxyServer><ProxyPort>1023</ProxyPort><ProxyUsername></ProxyUsername><ProxyPassword></ProxyPassword></root>','2014/8/29 8:56:07'); insert into MAIN.[WebPost] (WebPostName,XmlData,ModifyOn) values ('http://www.a2.com','<?xml version="1.0" encoding="utf-8"?><root><Cookies></Cookies><Encoding>GB2312</Encoding><GlobalVar></GlobalVar><LoginType>2</LoginType><Fid></Fid><FName></FName><ModuleName>马克斯电影系统文章免登陆WEB在线发布模块--淘宝版</ModuleName><Password></Password><SiteUrl>http://www.a2.com/admin</SiteUrl><UserAgent></UserAgent><UserName></UserName><AcceptLanguage>zh-cn,cn,en,en-us</AcceptLanguage><TimeOut>30</TimeOut><ProxyServer></ProxyServer><ProxyPort>1023</ProxyPort><ProxyUsername></ProxyUsername><ProxyPassword></ProxyPassword></root>','2014/8/29 8:56:07');

 

 

这个软件有一个注册,当试过过了之后会要求注册才能继续使用 
解决方法 
开始–> 运行 –>cmd,或者是window+R组合键,调出命令窗口 
复制:reg delete “HKEY_CURRENT_USERSharpPlusSqliteDev” /v “StartDate” /f 粘贴到窗口中,回车,搞定

 

原文链接:https://www.yuepc.com/info/147977.html

  •  标签: