博客详情

idea(三)--subversion-1.10、tortoiseSVN-1.10安装、idea自定义插件下载 (原创)

作者: 朝如青丝暮成雪
发布时间:2018-07-29 14:05:49  文章分类:Intellij Idea   阅读(1057)  评论(0)

如题。

貌似最新版idea(2018.1.x、2018.2)中不支持低版本的svn了,客户机上需要安装tortoiseSVN 1.10 的新版本,服务器上需要安装subversion-1.10.2 新版本。


文章参考 :

https://blog.csdn.net/qq_27868061/article/details/81094187

https://blog.csdn.net/wl_1013/article/details/80956329


一、centos7中安装subversion-1.10.2 

1、下载subversion、apr、apr-util、sqlite-amalgamation:

wget https://mirrors.tuna.tsinghua.edu.cn/apache/subversion/subversion-1.10.2.tar.gz
wget https://mirrors.tuna.tsinghua.edu.cn/apache/apr/apr-util-1.6.1.tar.gz
wget https://mirrors.tuna.tsinghua.edu.cn/apache/apr/apr-1.6.3.tar.gz
wget https://www.sqlite.org/2018/sqlite-amalgamation-3240000.zip


2、安装编译环境工具
yum install unzip openssh-clients zlib zlib-devel gcc-c++ -y


3、安装apr、apr-util

yum install expat-devel

tar -zxvf apr-1.6.3.tar.gz 
cd ./apr-1.6.3
./configure --prefix=/usr/local/apr 
 make && make install

tar -zxvf apr-util-1.6.1.tar.gz 
cd ./apr-util-1.6.1
./configure --prefix=/usr/local/apr-util --with-apr=/usr/local/apr 
 make && make install


4、编译安装subversion

unzip sqlite-amalgamation-3240000.zip

tar -zxvf subversion-1.10.2.tar.gz
mv sqlite-amalgamation-3240000 subversion-1.10.2/sqlite-amalgamation

cd  subversion-1.10.2
./configure --prefix=/usr/local/svn  --with-apr=/usr/local/apr \
--with-apr-util=/usr/local/apr-util --with-sqlite=/root/subversion-1.10.2/sqlite-amalgamation/sqlite3.c \
--with-lz4=internal --with-utf8proc=internal

make && make install


5、安装完subversion后,配置svn bin环境变量

 vi /etc/profile 修改path

 PATH=$PATH:/usr/local/svn/bin

:x保存退出

source /etc/profile  


6、启动、停止svn 服务器

    mkdir -p /var/data/svn


    svnserve -d -r /var/data/svn      启动svn

    #   pkill  svnserve    停止svn、杀死进程



7、 创建一个仓库www,修改其conf中配置

    cd /var/data/svn/

    svnadmin create www 

   cd www/conf  进入配置文件目录,修改配置。

 vi   svnserve.conf ,修改如下:

 anon-access = none
auth-access = write
password-db = passwd
authz-db = authz


vi passwd ,修改如下:
zhangsan=123456
lisi=123456

vi authz ,修改如下:
some_user=zhangsan,lisi
[/]
@some_user=rw
*=


chmod  -R a+w  /var/data/svn #设置可写入权限


从svn仓库下载

svn checkout  svn://127.0.0.1/www   ,回车

 输入用户名zhangsan、密码123456等ok



 二、windows中安装tortoiseSVN-1.10

      TortoiseSVN-1.10.1.28295-x64.zip 下载

      链接:https://pan.baidu.com/s/1HQAL70zAImRd38pWTLm20Q 密码:e2rs   ,其中包含安装包和中文语言包。

      注意,安装时请一定要勾选安装command line client tools (默认没有勾选,需要勾选上),next 。

      找到idea中版本控制中 subversion,选择tortoiseSVN安装目录中\bin\svn.exe 即可。


三、idea中安装自定义插件 

 idea的插件在线下载安装方式比较坑,网络不好的,经常下不下来的。推荐大家使用本地离线安装方式。

  http://plugins.jetbrains.com/   idea的插件网站,可以到这上面搜索,如svn-disconnect ,然后下载到本地,再从本地安装插件。


  ok!!




关键字:  idea  centos  svn  subversion
评论信息
暂无评论
发表评论

亲,您还没有登陆,暂不能评论哦! 去 登陆 | 注册

博主信息
   
数据加载中,请稍候...
文章分类
   
数据加载中,请稍候...
阅读排行
 
数据加载中,请稍候...
评论排行
 
数据加载中,请稍候...

Copyright © 叮叮声的奶酪 版权所有
备案号:鄂ICP备17018671号-1

鄂公网安备 42011102000739号