- 论坛徽章:
- 0
|
搞定sitecopy !
安装方法和使用都是异常的简单,也介绍下吧
1. install
#cd /usr/local/src
#wget
http://www.manyfish.co.uk/sitecopy/sitecopy-0.16.6.tar.gz
#tar zxvf sitecopy-0.16.6.tar.gz
#cd sitecopy
#mdkir /usr/local/sitecopy
#./configure --prefix=/usr/local/sitecopy
#make && make install
2. Create account for web management
#groupadd webuser
#useradd -g webuser -d /webroot/ webuser
#passwd webuser
#***********(your passwd)
#mkdir /webroot
3. configure your sitecopy
#su webuser
$vi .sitecopyrc
----------------------------------------------------------------------------------
site test
server 210.51.21.11
username webuser
password ******
protocol ftp
local /webroot
remote /webroot
exclude .svn
exclude *.fla
exclude *.bak
exclude *.fla.*
-----------------------------------------------------------------------------------
$mkdir .sitecopy
$chmod 600 .sitecopyrc
$chmod 700 .sitecopy
4. 使用sitecopy更新网站
$/usr/local/sitecopy/bin/sitecopy -i test
$/usr/local/sitecopy/bin/sitecopy -u test
Done!!
*注意:设定管理网站的用户密码的时候避免使用'#'符号. 这样会让shell把#后面的字符当成命令,从而无法运行sitecopy
本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/29834/showart_1877881.html |
|