Chinaunix首页 | 论坛 | 博客
  • 博客访问: 109173
  • 博文数量: 4
  • 博客积分: 1511
  • 博客等级: 上尉
  • 技术积分: 220
  • 用 户 组: 普通用户
  • 注册时间: 2007-01-08 22:37
文章分类
文章存档

2011年(3)

2009年(1)

分类: LINUX

2009-03-24 14:37:50

非常简单的维护网站的方法--sitecopy !
安装方法和使用都是异常的简单,也介绍下吧
1. install
  1. #cd /usr/local/src
  2. #wget http://www.manyfish.co.uk/sitecopy/sitecopy-0.16.6.tar.gz
  3. #tar zxvf sitecopy-0.16.6.tar.gz
  4. #cd sitecopy
  5. #mdkir /usr/local/sitecopy
  6. #./configure --prefix=/usr/local/sitecopy
  7. #make && make install
2. Create account for web management
  1. #groupadd webuser
  2. #useradd -g webuser -d /webroot/ webuser
  3. #passwd webuser
  4. #***********(your passwd)
  5. #mkdir /webroot


3. configure your sitecopy

  1. #su webuser
  2. $vi .sitecopyrc
  3. ----------------------------------------------------------------------------------
  4. site test
  5.         server 210.51.21.11
  6.         username webuser
  7.         password ******
  8.         protocol ftp
  9.         local /webroot
  10.         remote /webroot
  11.         exclude .svn
  12.         exclude *.fla
  13.         exclude *.bak
  14.         exclude *.fla.*
  15. -----------------------------------------------------------------------------------
  16. $mkdir .sitecopy
  17. $chmod 600 .sitecopyrc
  18. $chmod 700 .sitecopy
4. 使用sitecopy更新网站

  1. $/usr/local/sitecopy/bin/sitecopy -i test
  2. $/usr/local/sitecopy/bin/sitecopy -u test
Done!!
注意:设定管理网站的用户密码的时候避免使用'#'符号. 这样会让shell把#后面的字符当成命令,从而无法运行sitecopy
阅读(2079) | 评论(0) | 转发(0) |
0

上一篇:没有了

下一篇:无题

给主人留下些什么吧!~~