VPS数据转移

Posted by zuzhihui in Linux技术 on 2010/07/30 with No Comments

由于各种原因,比如VPS降级,换数据中心,换物理服务器等,都需要开通一个新VPS,然后把老VPS上面的内容转移到新VPS上面去。本文介绍怎样有效的转移VPS的数据。

能把整个VPS镜像转移走吗?

理论上是可以,实际上不好操作,我们不提供此类转移方法

从Linux VPS转移到Linux VPS

无论是自己辛辛苦苦编译配置的环境,还是很多零碎的小文件,我们都建议通过rsync进行转移。rsync能断点续传,会比较差异,只转移有差异的文件,另外rsync也非常稳定,效率也非常高。

如果两个VPS都是同一版本的Linux,那么在老VPS上编译配置好的环境在新VPS上面照样可以使用。可以把配置文件,程序文件,库文件等集中到一个目录下和数据文件一起rsync到新VPS上面。使用rsync,这些要转移的琐碎的文件没有必要打包,rsync处理小文件的效率非常高,另外打包起来速度也比较慢。

您所要做的就是把需要转移的文件都集中到一个目录下,比如/home,然后在老VPS上面开一个rsync服务器,在新VPS上面运行rsync命令转移即可。

我们的博客上有一些怎样使用rsync的文章可以参考。如果您看了这些博客也不会使用rsync,没关系,把需要转移的文件都集中到一个目录下,然后提交服务单,让我们帮您转移即可。

Windows VPS转移

可惜Windows不支持rsync,只能用其他协议来转移了,没有特别好的方法。

在老VPS上配置一个HTTP服务器,把需要转移的文件放到Web上,然后在新VPS上面通过迅雷等软件下载这些文件即可。

当然也可以使用FTP等协议。

kloxo中新建域名之后需要重启web服务才可以生效

Posted by yar999 in Linux技术 on 2010/07/29 with No Comments

在kloxo中新建完域名之后需要重启web服务才可以生效,kloxo默认使用的是lighttpd做为web服务。有些时候可能某些特殊需要把web服务切换成apache了,怎么看当前是那个程序在做web服务呢?

登录Kloxo进去以后,在首页左侧点击”Server: Linux”,然后在下拉出来的列表中点击”Command Center”,这时候右侧就会出现命令中心的界面,在该界面中的”Command”输入框中输入”netstat -tlnp | grep 80″(不带引号),然后点击右下角的 Execute,这个时候您可以在Output文本域中看到web服务的输出信息:
如果形如”tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 1584/lighttpd “,那么您可以在”Command”输入框中输入”/etc/init.d/lighttpd restart”(不带引号),然后点右下角的Execute来重启lighttpd。

如果形如”tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 1584/httpd “,那么您可以在”Command”输入框中输入”/etc/init.d/httpd restart”(不带引号),然后点右下角的Execute来重启httpd。

1584是pid号,实际情况中可能不一样。重启了lighttpd或者httpd就是重启了web服务,这样您新建的域名就可以生效了,您就可以通过您新建的域名来访问您的网站了

在Kloxo控制面板里面给网站安装SSL证书(二)

Posted by yar999 in Linux技术 on 2010/07/16 with No Comments

配置证书

接着上篇
http://rashost.com/blog/kloxo-ssl-certificate
在Kloxo控制面板里面给网站安装SSL证书

我们在
http://my.rashost.com
购买证书之后,证书是以txt文件的格式通过邮件的方式给您的,形如

—–BEGIN CERTIFICATE—–



—–END CERTIFICATE—–

我们登录进kloxo管理界面之后,点击admin->Resources->Ssl Certificates,
然后在右边的标签栏点击Add Upload Txt
在 Ssl Certificate Name 后面的文本框里面写上证书的名字(例如我们写个exp.com)
在 Certificate 后面的文本域里面写上通过邮件发给您的txt证书的内容(—–BEGIN CERTIFICATE—–和—–END CERTIFICATE—-不可省略)

Key 后面的文本域里的内容是 在Kloxo控制面板里面给网站安装SSL证书 这篇博客新建的那个证书的key的内容。

在 CACert 后面的文本域里面写上/home/kloxo/httpd/ssl/eth0___localhost.ca这个文件的内容

(eth0___localhost.ca是个文本文件,可以ssh登录之后执行
cat /home/kloxo/httpd/ssl/eth0___localhost.ca
来查看这个文件的内容)

然后点击Add按钮就添加了exp.com这个证书

分配证书
点击admin->Resources->Ipaddresses,
在右边点击您的vps的ip,然后在出现的新界面中点击Configure Domain标签,然后在Domain那个下拉框中选择您需要把当前ip指向哪个域名,我这里选一个exp.com的域名,然后点update
接下来在当前界面中点击Ssl Configuration Home标签,然后在Certificate那个下拉框中选择您需要为当前ip使用哪个证书,我们选择刚刚添加的那个名为exp.com的证书,然后点update

做到这里您就可以通过

https://exp.com来访问您的网站了

评价瑞豪开源,免费送VPS内存

Posted by zuzhihui in 客户服务 on 2010/07/11 with No Comments

为了扩大瑞豪开源的知名度,为了提高服务质量。现推出“评价瑞豪开源,免费送VPS内存”的活动,欢迎各位客户参加!

任何客户都可以参加活动,具体步骤如下:

  1. 客户写一篇有关瑞豪开源的文章,文章内容可以是使用瑞豪开源产品的介绍,感受等等,内容不限
  2. 客户把文章发布到一个或多个网站上,可以是博客,论坛等网站。注意不要发到不受欢迎的地方从而被当做是垃圾文章
  3. 客户提交服务单,把您文章的URL地址写入服务单里面
  4. 我们收到服务单后,会用几天的时间进行审核,然后回复服务单,送内存。

增加内存的多少取决于很多因素,比如下面几点就是一些有用的技巧,有利于增加更多免费内存:

  • 文章标题中要出现如下字样:“瑞豪开源(RASHOST)”,中英文都要出现
  • 文章正文内容中要多次出现如下字样:“瑞豪开源(RASHOST)”,中英文都要出现
  • 文章中有指向http://rashost.com的链接
  • 文章内容力求真实

网站改版纪念

Posted by zuzhihui in 最新消息 on 2010/07/09 with No Comments

今天,我们网站换了一个Drupal主题,这个新主题是Sky。老的Drupal主题今天退役。

下面是新主题支持的文本格式示例。

Lorem gypsum dolor sit amet, consectetuer adipiscing elit. Vivamus tincidunt nisi sed mauris. Vestibulum sed magna. Morbi at nunc tempus magna malesuada consectetuer. Quisque non nisi. Integer malesuada eleifend sapien. Proin in augue eu lorem venenatis pharetra. Nunc varius volutpat nisl. Vestibulum non sapien. Phasellus vel pede. Vestibulum malesuada. Donec eget dui sed libero hendrerit fermentum. Fusce suscipit sapien non tortor. Vestibulum pharetra ante non est. Ut ac eros. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Ut vitae erat.

This is an example of a citation and an acronym:

Drupal is the best CMS

This is an example of an ordered list:

  1. First item on the list
  2. Second item on the list
  3. Third item on the list

This is an example of an unordered list:

  • First item on the list
  • Second item on the list
  • Third item on the list

This is an example of a table:

table heading 1 table heading 2
table cell 1 table cell 2
table cell 3 table cell 4

This is an example of a definition list:

definition title 1
definition description 1
definition title 2
definition description 2
blah blah
Error MessageParagraph inside a message

  1. First item on the list
  2. Second item on the list
  3. Third item on the list
Status MessageParagraph inside a message

  1. First item on the list
  2. Second item on the list
  3. Third item on the list
Warning MessageParagraph inside a message

  1. First item on the list
  2. Second item on the list
  3. Third item on the list
HelpParagraph inside a message

  1. First item on the list
  2. Second item on the list
  3. Third item on the list
Back to Top

2007-2017 © 北京瑞豪开源科技有限公司 京ICP备13004995号-2