??xml version="1.0" encoding="utf-8" standalone="yes"?>欧美精选一区二区,热re91久久精品国99热蜜臀 ,国产精品成人品http://www.aygfsteel.com/alex/category/7589.html不求多得,只求一? about java,hibernate,spring,design,database,linux,etc. <br/><br/> 最q关心的内容关键?web快速开发方案,建模,workshop studio,Ajax zh-cnTue, 27 Feb 2007 20:47:11 GMTTue, 27 Feb 2007 20:47:11 GMT60vss真TMD是个烂货http://www.aygfsteel.com/alex/archive/2006/11/06/79360.htmlAlexAlexMon, 06 Nov 2006 04:00:00 GMThttp://www.aygfsteel.com/alex/archive/2006/11/06/79360.htmlhttp://www.aygfsteel.com/alex/comments/79360.htmlhttp://www.aygfsteel.com/alex/archive/2006/11/06/79360.html#Feedback7http://www.aygfsteel.com/alex/comments/commentRss/79360.htmlhttp://www.aygfsteel.com/alex/services/trackbacks/79360.html阅读全文

Alex 2006-11-06 12:00 发表评论
]]>
[转]在Redhat9 Linux下安装,配置Subversion 1.3.1http://www.aygfsteel.com/alex/archive/2006/08/10/62746.htmlAlexAlexThu, 10 Aug 2006 03:07:00 GMThttp://www.aygfsteel.com/alex/archive/2006/08/10/62746.htmlhttp://www.aygfsteel.com/alex/comments/62746.htmlhttp://www.aygfsteel.com/alex/archive/2006/08/10/62746.html#Feedback0http://www.aygfsteel.com/alex/comments/commentRss/62746.htmlhttp://www.aygfsteel.com/alex/services/trackbacks/62746.html By: Wu Yin Date: 2006-06-30 Email: lazy_fox#msn.com LinkQ?/td> http://blog.csdn.net/wooin/archive/2006/07/11/903974.aspx 版权信息Q?/td> 该文章版权由Wu Yin所有。可在非商业目的下Q意传播和复制?br /> 对于商业目的下对本文的Q何行为需l作者同意?br /> 联系方式Qlazy_fox#msn.com
1. 本文需要两个文Ӟhttpd和subversion?br /> ·httpd是web服务器,用来通过web讉KsubversionQ?a >q里是官方网站,q里是它的下载网,
  q里可以下蝲到httpd-2.2.2.tar.bz2?br /> ·subversion是本文的主角,q里是他的官方网站,q里是它的下载网,
  q里可以下蝲到subversion-1.3.1.tar.bz2
2. 新徏一个用Psvnroot
最好不要让root用户参与到svn的权限管理和日常的运行和l护工作中来Q但是下面的一些安装和配置操作q是 需要root用户来完成的Q因为有些操作只有root才能做?
3. ~译安装httpd (root用户操作)Q?br />
//解压apache2安装?/font>
# tar xvzf httpd-2.2.2.tar.gz
//q入解压后的目录
# cd httpd-2.2.2
//配置apache安装Q前两个参数是必要加的Q你q可以根据您的需要添加其他的参数?/font>
//后面的参数制定你要把apache安装哪里
# ./configure --enable-dav --enable-so --prefix=/usr/local/apache2/
# make
//安装
# make install
# cd /usr/local/apache2/bin
//启动apache服务
# ./apachectl start
//打开览器http://localhost/如果有测试页"It works!"出现则证明已l安装成功?/font>
3. 安装Subversion
//解压SubVersion安装?(root用户q行下面的操?
# tar xvzf Subversion-1.3.1.tar.gz
//q入解压后的目录
# cd Subversion-1.3.1
//配置subversion安装
#./configure --with-apxs=/usr/local/apache2/bin/apxs --prefix=/usr/local/subversion
--with-apr=/usr/local/apache2 --with-apr-util=/usr/local/apache2 --with-ssl --with-zlib
--enable-maintainer-mode
# make
//安装
# make install
//创徏库文件所在的目录 (svnroot用户q行下面的操?
# mkdir /home/svnroot/repository
//q入subversion的bin目录
# cd /usr/local/subversion/bin
//创徏仓库"test"
# ./svnadmin create /home/svnroot/repository/test
# cd /home/svnroot/repository/test
//看看是不是多了些文gQ如果是则说明Subversion安装成功?/font>
# ls –l
# cd /usr/local/subversion/bin
//q条语句把路径/home/user/import下找到的文g导入C创徏的Subversion 仓库中去Q?/font>
//提交后的修订版ؓ1?/font>
# ./svn import /home/user/import file:///home/svnroot/repository/test –m "注释"
//不让其他人有该目录的权限
# chmod 700 /home/svnroot/repository
4. 修改Apache配置文g
# cd /usr/local/apadche2/bin
//启动Apache
# ./apachect1 start
# vi /usr/local/apache2/conf/httpd.conf
   //在最下面d
   LoadModule dav_svn_module modules/mod_dav_svn.so
   LoadModule authz_svn_module modules/mod_authz_svn.so
   <Location /svn>
   DAV svn
   SVNParentPath /home/svnroot/repository/ //svn父目?
   AuthzSVNAccessFile /home/svnroot/repository/authz.conf //权限配置文g
   AuthType Basic //q接cd讄
   AuthName "Subversion.zoneyump" //q接框提C?
   AuthUserFile /home/svnroot/repository/authfile //用户配置文g
   Require valid-user //采用何种认证
   </Location>
   //其中authfile是通过"htpasswd [–c] /home/svnroot/repository/authfile username password"来创建的
   //"Require valid-user"告诉apache在authfile中所有的用户都可以访问。如果没有它Q?br />    //则只能第一个用户可以访问新建库

5. 重启apache
# ./usr/local/apache2/bin/apachectl restart
//打开览器访问http://localhost/svn/test/Q如果有东西昄p明成功?/font>
6. 权限理
1)增加用户
# htpasswd [-c] /home/svnroot/repository/authfile wooin
//W一ơ设|用h使用-c表示新徏一个用h件。回车后输入用户密码Q完成对用户的增?/font>
# htpasswd authfile 用户?加入新的用户)
2)权限分配
# vi /home/svnroot/repository/authz.conf
   [test:/] //q表C,仓库test的根目录下的讉K权限
   wooin = rw //test仓库wooin用户hd写权?
   bao = r //test仓库bao用户hL?
   [test2:/] //test2仓库根目录下的访问权?
   wooin = r //wooin用户在test2仓库根目录下只有L?
   bao = //bao用户?test2仓库根目录下无Q何权?
   [/] //q个表示在所有仓库的根目录下
   * = r //q个表示Ҏ有的用户都具有读权限
   #[groups] //q个表示组讄
   #svn1-developers = wooin, bao //q个表示某群l里的成?
   #svn2-developers = wooin
   #[svn1:/]
   #@svn1-developers = rw //如果在前面加上@W号Q则表示q是个群l权限设|?/font>
这个设|完成后。重启ApacheQ就可以通过
http://localhost/svn/test
q个URL来访问仓库了Q当Ӟ受权限的限制Q必L合法用户才能讉K且具有相应的权限
7. 一些备忘:
1. svn checkout http://localhost/svn/hello.world

2. svn commit 时的默认~辑器的环境变量$SVN_EDITOR=vi需要手动设定,用kate好像有问?br />
3. 如果linux的登录用户名密码都和svn的其中一个用户名密码相同Ӟ在checkout的时候不会要求输 入用户名密码直接可以checkout出来。比如:linux有个用户wooinQsvn也有一个用户wooinQƈ且密? 都是一LQ当用wooindlinux后,执行checkoutQ可以直接提取出源码文gQ不用输入认证信息?br />
4. 在svn使用q程中牵扯到几种权限Q文件系l的权限Qlinuxpȝ权限Qsvn用户的权限,apacheq程的权限?br />
文gpȝ的权限,linuxpȝ权限Q这里相同的意思,是qx大家使用linux时文件夹和文件的讉K权限。在 svn建立仓库Q文件夹Q配|文件的时候用svnroot用户Qƈ仓库权限设|ؓ700Q不允许其他用户直接通过 文gpȝ查看Q只能由svnrootq行理?br />
apacheq程的权限:因ؓ所有跟仓库传输的操作都是通过apacheq程q行的,所以即使你lsvn用户讄? 很大的权限,但是apacheq程没有讉K仓库或者相x件的权限也没有用Qapacheq程的权限设|在 /usr/local/apache2/conf/httpd.conf 文g中配|,扑ֈ文g中的q两行:
User daemon # daemon改ؓsvnrootQ让apacheq程以svnroot的n份运?
Group daemon

svn用户的权限:是在repository/authz.conf文g中设|的权限信息Q是svn用来理仓库讉K权限的?br />
5. svn服务器设|有两种方式Qhttp ?svnserve。这里介l的是httpҎ

6. ?etc/profile的结设|一些svn启动时要做的工作
# start apache server for svn
/usr/sbin/apachectl start
export SVN_EDITOR=vi

7. APR libraries 安装 SVN 的时候最好指?--with-apr= ?--with-apr-util= 参数?Apache 安装的根目录
QServerRootQ下Q而不是用缺省的 SVN 安装包中自带?apr 。否则如果你安装?Apache
版本不同有可能导?APR 库不匚wQ出现类|
Can't set position pointer in file '/svn/test/db/revs/1': Invalid argument 的错误?br /> Updated 2006-04-20 16:30 -- 比如说如果你安装的是apache 2.2.0版本Q就需要在~译安装svn的时候指?
--with-apxs?-with-apr参数C的apache2.2.0安装目录下:
./configure --prefix=${subversionInstallFolder} /
--with-apxs=${apacheInstallFolder}/bin/apxs /
--with-apr=${apacheInstallFolder} /
--with-apr-util=${apacheInstallFolder} /
--with-ssl /
--with-zlib /
--enable-maintainer-mode
   
   
   

参考资料:
1. SVN學習{記
2. Subversion版本理器简单配|说?/a>
3.
关于Subversion的安装、配|和权限理


Alex 2006-08-10 11:07 发表评论
]]>
[转]Subversion版本理器简单配|说?/title><link>http://www.aygfsteel.com/alex/archive/2006/08/10/62745.html</link><dc:creator>Alex</dc:creator><author>Alex</author><pubDate>Thu, 10 Aug 2006 03:05:00 GMT</pubDate><guid>http://www.aygfsteel.com/alex/archive/2006/08/10/62745.html</guid><wfw:comment>http://www.aygfsteel.com/alex/comments/62745.html</wfw:comment><comments>http://www.aygfsteel.com/alex/archive/2006/08/10/62745.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/alex/comments/commentRss/62745.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/alex/services/trackbacks/62745.html</trackback:ping><description><![CDATA[ <span id="ArticleContent1_ArticleContent1_lblContent"> <span id="wmqeeuq" class="tpc_content">key words: svn subversion安装<br /><br />一、Subversion的下载与安装<br />Subversion的官方网站:<a target="_blank"><font color="#003366">http://subversion.tigris.org/</font></a><br />可以在官方网站上下蝲Subversion的最新版本。本说明使用的是1.1.4的Win32版?br />下蝲下来Subversion安装文g后,直接安装可以了。这里假讄l上已经安装好了Apache了,q样QSubversion安装的时候选择Apache方式Q它׃自动的配|相关的模块到Apache里?br /><br />二、Subversion的徏立与使用仓库使用?br />$svnadmin create /path/to/repos<br />在这里,我们假设讄D盘svn目录下的svn1和svn2两个目录Z库?br />svnadmin create d:/svn/svn1<br />svnadmin create d:/svn/svn2<br />q样Q我们用的时候,可以向里面提交文g?br />仓库的用,必须先把服务搭徏h才行。我们等后面的服务器配置后再讌Ӏ?br /><br />三、Subversion服务器的搭徏<br />我们使用与Apache模块的方式运行?br />首先Q把我们需要的SVN模块加蝲上,修改Apache的配|文件httpd.confQ?br /><br />LoadModule dav_svn_module modules/mod_dav_svn.so<br />LoadModule dav_module modules/mod_dav.so<br />LoadModule authz_svn_module modules/mod_authz_svn.so<br /><br />然后配置仓库Q?br /><br /><Location /svn><br />  DAV svn<br />  SVNParentPath d:/svn<br /></Location><br />然后Q配|验证方式:<br />q里使用旦Apache的验证方式:<br /><br />htpasswd -cm d:/svn/svn-auth-file user1<br />然后Q会提示输入密码Q这里就加入了一个用户了。然后再加一个用P<br />htpasswd -m d:/svn/svn-auth-file user2<br /><br />然后修改配置Q?br /><Location /svn><br />DAV svn<br />SVNParentPath d:/svn<br />AuthType Basic<br />AuthName “Subversion repository?br />AuthUserFile d:/svn/svn-auth-file<br />Require valid-user<br />AuthzSVNAccessFile d:/svn/svn-access-file<br /></Location><br />下面Q就要写q个svn-access-file文g了,它是用来控制用户讉K仓库的权限的Q我们把说明写在后面<br />[svn1:/]               //q表C,仓库svn1的根目录下的讉K权限<br />harry = rw             // svn1仓库harry用户hd写权?br />sally = r               // svn1仓库sally用户hL?br />[svn2:/]               //svn2仓库根目录下的访问权?br />harry = r               // harry用户在svn2仓库根目录下只有L?br />sally =               // sally用户?svn2仓库根目录下无Q何权?br />#[/]               // q个表示在所有仓库的根目录下<br />#* = r               // q个表示Ҏ有的用户都具有读权限<br />#[groups]               // q个表示组讄<br />#svn1-developers = harry, sally           // q个表示某群l里的成?br />#svn2-developers = sally<br />#[svn1:/]             <br />#@svn1-developers = rw       // 如果在前面加上@W号Q则表示q是个群l权限设|?br /><br />这个设|完成后。重启ApacheQ就可以通过<br /><a href="http://localhost/svn/svn1" target="_blank"><font color="#003366">http://localhost/svn/svn1</font></a><br /><a href="http://localhost/svn/svn2" target="_blank"><font color="#003366">http://localhost/svn/svn2</font></a><br />q两个URL来访问仓库了Q当Ӟ要受权限的限Ӟ必须是合法用h能访问且h相应的权?br />客户端的使用Q可以通过许多客户端GUI软g来用。比如TortoiseSVN很好用?br />官方|址Q?a target="_blank"><font color="#003366">http://tortoisesvn.tigris.org/</font></a></span> </span> <img src ="http://www.aygfsteel.com/alex/aggbug/62745.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/alex/" target="_blank">Alex</a> 2006-08-10 11:05 <a href="http://www.aygfsteel.com/alex/archive/2006/08/10/62745.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>一ơweb发布q程的相关配|?/title><link>http://www.aygfsteel.com/alex/archive/2006/02/24/32284.html</link><dc:creator>Alex</dc:creator><author>Alex</author><pubDate>Fri, 24 Feb 2006 04:52:00 GMT</pubDate><guid>http://www.aygfsteel.com/alex/archive/2006/02/24/32284.html</guid><wfw:comment>http://www.aygfsteel.com/alex/comments/32284.html</wfw:comment><comments>http://www.aygfsteel.com/alex/archive/2006/02/24/32284.html#Feedback</comments><slash:comments>4</slash:comments><wfw:commentRss>http://www.aygfsteel.com/alex/comments/commentRss/32284.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/alex/services/trackbacks/32284.html</trackback:ping><description><![CDATA[     摘要: keyword: 配置 Tomcat配置 MySql配置 server.conf my.ini 启动参数 虚拟机参?jsp预编?Author: Alex发布环境: Tomcat5 + MySql4 +Hibernate + Win2003 一.MySql配置文g my.ini文g配置Code highlighting produced by Actipro CodeHighlighte...  <a href='http://www.aygfsteel.com/alex/archive/2006/02/24/32284.html'>阅读全文</a><img src ="http://www.aygfsteel.com/alex/aggbug/32284.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/alex/" target="_blank">Alex</a> 2006-02-24 12:52 <a href="http://www.aygfsteel.com/alex/archive/2006/02/24/32284.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>svn相关http://www.aygfsteel.com/alex/archive/2006/02/20/31571.htmlAlexAlexSun, 19 Feb 2006 16:12:00 GMThttp://www.aygfsteel.com/alex/archive/2006/02/20/31571.htmlhttp://www.aygfsteel.com/alex/comments/31571.htmlhttp://www.aygfsteel.com/alex/archive/2006/02/20/31571.html#Feedback0http://www.aygfsteel.com/alex/comments/commentRss/31571.htmlhttp://www.aygfsteel.com/alex/services/trackbacks/31571.html1.svn 命o要HOWTO

摘要:
  1. svnadmin create myProject
  2. svnadmin dump /path/to/svnroot > /backup/svnBackup_20060101.dumpfile
  3. svnadmin load /path/to/svnroot < /backup/svnBackup_20060101.dumpfile
  4. svnserve -d -r /path/to/svnroot
apache的配|不利,L提示打开密码文gp|,下次再试下吧
subversion.conf配置
# Needed to do Subversion Apache server.
LoadModule dav_svn_module     modules/mod_dav_svn.so

# Only Needed if you decide to do "per-directory" access control.
LoadModule authz_svn_module   modules/mod_authz_svn.so

#
# Example location directive.
#
<Location /svn>
   DAV svn
 #  SVNParentPath /var/svn
   SVNPath /var/svn/projects
   AuthType Basic
   AuthUserFile /var/svn/myPass
   AuthName "Authorization Realm"
   Require valid-user
#   AuthzSVNAccessFile /var/svn/authz
#
#   # Limit write permission to list of valid users.
#   
<LimitExcept GET PROPFIND OPTIONS REPORT>
#      # Require SSL connection for password protection.
#      # SSLRequireSSL
#
#      AuthType Basic
#      AuthName "Authorization Realm"
#      AuthUserFile /usr/svn/projects/conf/passwd
#      Require valid-user
#   
</LimitExcept>
</Location>


2.SubVersion定期完整备䆾脚本(Linux)

#!/bin/sh
#
# subversion data backup script
# by scud http://www.jscud.com
# 2005-11-27
#
# subversion完整备䆾的脚?调整好后使用crontab -e 攑ֈ自动执行里面卛_.
#
#备䆾日志文g
LogFile=/backup/svn/svnbak.log

DATE=`date +%Y%m%d`

#备䆾目录
BakDir=/backup/svn/data

#日常备䆾目录,如果?br>DailyDir=/backup/svn/daily

#要备份的目列表文g,只有目?br>ProjectLst=/backup/svn/project.lst

#所有项目都保存在这个目录下
SvnDir=/var/svn

#svnadminE序的\?br>SVNADMIN=/usr/bin/svnadmin

echo " " >> $LogFile
echo " " >> $LogFile
echo "-------------------------------------------" >> $LogFile
echo $(date +"%y-%m-%d %H:%M:%S") >> $LogFile
echo "--------------------------" >> $LogFile

cd $BakDir

#d目列表
PROJECTLIST=`cat $ProjectLst`


for project in  $PROJECTLIST
do
    projectdata=$SvnDir/$project
    destdir=$BakDir/$project
    dumpfile=$DATE.$project.tgz
   
   
    if [ -f $BakDir/$dumpfile ]
    then
        echo "backup file have exist!" >>$LogFile
    else

     $SVNADMIN hotcopy $projectdata $destdir --clean-logs

     tar czvf $dumpfile $destdir >/dev/null
   
     rm -fr $project
 
 echo "backup $project done into $dumpfile ">>$LogFile

    fi
   
    ## delete old tgz 此处Ҏcrontab的时间调?例如一周一ơ备?此处保留?份备?以前的删?br>    oldfile="$BakDir/"$(date +%y%m%d --date=?8 days ago?.$project.tgz
 
 if [ -f $oldfile ]  
 then  
   rm -f $oldfile >> $LogFile 2>&1  
   echo "[$oldfile]Delete Old File Success!" >> $LogFile  
 else  
   echo "[$oldfile]No Old Backup File!" >> $LogFile  
 fi
   
done


#delete previous daily backup files
cd $DailyDir
rm -f *

3.subversion锁定解除、升U、备份与恢复





Alex 2006-02-20 00:12 发表评论
]]>
[转脓]vsftp配置详解http://www.aygfsteel.com/alex/archive/2006/02/19/31567.htmlAlexAlexSun, 19 Feb 2006 15:17:00 GMThttp://www.aygfsteel.com/alex/archive/2006/02/19/31567.htmlhttp://www.aygfsteel.com/alex/comments/31567.htmlhttp://www.aygfsteel.com/alex/archive/2006/02/19/31567.html#Feedback0http://www.aygfsteel.com/alex/comments/commentRss/31567.htmlhttp://www.aygfsteel.com/alex/services/trackbacks/31567.htmlvsftp配置详解

好些东西曄做过了但是过了一D|间就忘记?原来vsftpd配置很熟?现在要用的时候照样得??悲哀?看来q是那句?好记性不如烂W头?


Alex 2006-02-19 23:17 发表评论
]]>
վ֩ģ壺 | ˹| | | | | ɽ| | | | | | | | ԭ| | ̨| | Ӫ| | ʲ| | ƽ| | | | | Զ| | | | | | | Ϫ| ɽ| | | | Զ| |