为了方面在linux上管理taocode上的代码文件等,在linux上安装svn如下
svn安装
下载安装subversion
[zzx@localhost 3rdparty]$ sudo yum install -y subversion
查看subversion是否安装好
[zzx@localhost 3rdparty]$ rpm -qa | grep subversion
subversion-1.6.11-15.el6_7.i686
本人自己使用的是taocode,所以这个的链接是taocode的,各人可以有不同。
svn checkout path (path是服务器的目录)
简写:svn co path
[zzx@localhost 3rdparty]$ svn co http://code.taobao.org/svn/yun-iot/
**********************************
如出现下面错误
Password for 'zzx':
svn: Server sent unexpected return value (403 Forbidden) in response to OPTIONS request for 'http://code.taobao.org/svn/yun-iot'
是因为当你的虚拟机和SVN的ID不一致,解决方法: svn co --username=SVN的ID path
*********************************
[zzx@localhost 3rdparty]$ svn co --username=xiongzhizhu http://code.taobao.org/svn/yun-iot //svn的ID是自己taocode注册的用户名
Authentication realm: <http://code.taobao.org:80> code.taobao.org
Password for 'xiongzhizhu':
-----------------------------------------------------------------------
ATTENTION! Your password for authentication realm:
<http://code.taobao.org:80> code.taobao.org
can only be stored to disk unencrypted! You are advised to configure
your system so that Subversion can store passwords encrypted, if
possible. See the documentation for details.
You can avoid future appearances of this warning by setting the value
of the 'store-plaintext-passwords' option to either 'yes' or 'no' in
'/h