From e928f5d9bc2ac15833a30a24f4e84414c9a6961d Mon Sep 17 00:00:00 2001 From: cfs <1591286668@qq.com> Date: Fri, 25 Mar 2016 14:14:17 +0800 Subject: [PATCH 1/4] =?UTF-8?q?=E6=9C=AC=E5=9C=B0=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/resources/conf.properties | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/resources/conf.properties b/src/main/resources/conf.properties index 8969474..83bc27a 100644 --- a/src/main/resources/conf.properties +++ b/src/main/resources/conf.properties @@ -1,6 +1,6 @@ -db.url=jdbc:mysql://192.168.1.223:3306/rk_svnadmin?useUnicode=true&characterEncoding=utf-8 +db.url=jdbc:mysql://127.0.0.1:3306/rk_svnadmin?useUnicode=true&characterEncoding=utf-8 db.username=root -db.password=root +db.password= db.maxActive=50 mail.HostName=smtp.exmail.qq.com mail.SmtpPort=465 From 1cefe2e2af307b2525ac7784a802eb437d50aed5 Mon Sep 17 00:00:00 2001 From: cfs <1591286668@qq.com> Date: Fri, 25 Mar 2016 14:23:04 +0800 Subject: [PATCH 2/4] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E5=88=B0=E6=9C=AC?= =?UTF-8?q?=E5=9C=B0=EF=BC=8C=E7=95=99=E7=94=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 5ffae47..18be956 100644 --- a/pom.xml +++ b/pom.xml @@ -52,7 +52,7 @@ org.nutz nutz - 1.r.54.r5 + 1.r.55 org.nutz From 3f4780913ab39296d6a56740b3ded544e3d4d1dc Mon Sep 17 00:00:00 2001 From: cfs <1591286668@qq.com> Date: Fri, 25 Mar 2016 16:34:31 +0800 Subject: [PATCH 3/4] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=AF=B4=E6=98=8E?= =?UTF-8?q?=E6=96=87=E4=BB=B6=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 118 ++++++++++++++++++++---------------------------------- fl.md | 57 ++++++++++++++++++++++++++ 2 files changed, 101 insertions(+), 74 deletions(-) create mode 100644 fl.md diff --git a/README.md b/README.md index 3a93655..c196787 100644 --- a/README.md +++ b/README.md @@ -1,77 +1,47 @@ -1. create database rk_svnadmin -2. mvn eclipse:eclipse -Dwtpversion=1.0 +# 1、SVN统一管理平台 +现状: + 主要用于统一管理SVN,以及SVN中的项目、用户、权限等。已经存在的类似工具,参考Svn Admin。 + 目前已经实现用户权限配置、项目添加管理等功能。正在实现用户组管理、邮件提醒功能。 + 正在不断完善。。。 +目标: + 实现在通过 web浏览器管理Svn的项目,管理项目的用户,管理项目的权限。使得管理配置Svn更简便,再也不需要每次都到服务器修改配置文件。 +# 2、环境搭建 +## 1、所需要的基础开发软件工具 +* svn服务端[需要管理这个东西] +* Java[基于这个语言开发的] +* Tomcat[Web容器,你懂得] +* Eclipse[集成开发工具,这个可以是别的] +* maven[项目依赖管理工具] +* ehcache[缓存工具] +* freemarker[静态页生成工具] +* quartz Scheduler[定时任务工具] +* shiro[权限管理工具] +* nutz[mvc框架,主要就是用来展示这货的。hi 羊驼炒鸭梨 ,你要给力奥!] +* mysql[数据库,这个可以是其他的任何关系型数据库,只要JDBC可以连接基本没有压力] +* 恩,基本就是上面这些东西啦。 -服务器启动完手动执行alter +## 2、开始环境搭建 + 首先,要使用git将github上面的这个项目更新到本地。这个步骤,可以是使用git直接更新也可以使用eclipse中的egit直接在开发环境中更新到本地[mvn eclipse:eclipse -Dwtpversion=1.0]。 + 编译代码,下载相关的依赖jar包。憋紧张,这个过程是集成开发工具配合maven完成的。你只需要静静的看着。 + 然后,创建数据库[create database rk_svnadmin],然后,将config.properties文件中的数据库地址、用户名和密码修改完成。之后,启动项目。 + 静静的等待吧,骚年! + Tomcat启动完成之后,在浏览器中输入http://localhost:8080/rk_svnadmin/user/login + ok.看到登录页面了吧?接下来输入用户名:admin 密码:123 点击登录,被问我怎么知道的,在代码中有,不信自己去看。 + 环境搭建完毕,接下来,骚年,尽情的释放你的洪荒之力吧!! + 对了,数据库还没完,添上关联关系 + 完手动执行alter -``` -alter table pj_gr add constraint FK_Relationship_2 foreign key (pj) references pj (pj) on delete restrict on update restrict; -alter table pj_gr_auth add constraint FK_Reference_6 foreign key (pj, gr) references pj_gr (pj, gr) on delete restrict on update restrict; -alter table pj_gr_usr add constraint FK_Reference_10 foreign key (pj, gr) references pj_gr (pj, gr) on delete restrict on update restrict; -alter table pj_gr_usr add constraint FK_Reference_9 foreign key (usr) references usr (usr) on delete restrict on update restrict; -alter table pj_usr add constraint FK_Reference_5 foreign key (pj) references pj (pj) on delete restrict on update restrict; -alter table pj_usr add constraint FK_Reference_7 foreign key (usr) references usr (usr) on delete restrict on update restrict; -alter table pj_usr_auth add constraint FK_Reference_11 foreign key (pj) references pj (pj) on delete restrict on update restrict; -alter table pj_usr_auth add constraint FK_Reference_8 foreign key (usr) references usr (usr) on delete restrict on update restrict; -``` + …… + alter table pj_gr add constraint FK_Relationship_2 foreign key (pj) references pj (pj) on delete restrict on update restrict; + alter table pj_gr_auth add constraint FK_Reference_6 foreign key (pj, gr) references pj_gr (pj, gr) on delete >restrict on update restrict; + alter table pj_gr_usr add constraint FK_Reference_10 foreign key (pj, gr) references pj_gr (pj, gr) on delete >restrict on update restrict; + alter table pj_gr_usr add constraint FK_Reference_9 foreign key (usr) references usr (usr) on delete restrict on update restrict; + alter table pj_usr add constraint FK_Reference_5 foreign key (pj) references pj (pj) on delete restrict on >update restrict; + alter table pj_usr add constraint FK_Reference_7 foreign key (usr) references usr (usr) on delete restrict on update restrict; + alter table pj_usr_auth add constraint FK_Reference_11 foreign key (pj) references pj (pj) on delete restrict on update restrict; + alter table pj_usr_auth add constraint FK_Reference_8 foreign key (usr) references usr (usr) on delete restrict on update restrict; + …… -Centos安装apache+svn结合的SVN服务器 - -#1、yum安装下列的一些包: - -yum install apr apr-util httpd httpd-devel subversion mod_dav_svn mod_auth_mysql - -#2、建立svn的目录 - -mkdir -p /code/svndata - -#3、创建一个库就叫SVN: - -svnadmin create /code/svndata/svn - - -正常安全以上软件后,会在/etc/httpd/modules目录下生成mod_dav_svn.so、mod_authz_svn.so两个模块 -cp /etc/httpd/conf/httpd.conf /etc/httpd/conf/httpd.conf.bak - -#4、配置apache的httpd.conf -vim /etc/httpd/conf/httpd.conf - -添加 - -LoadModule dav_svn_module modules/mod_dav_svn.so - -LoadModule authz_svn_module modules/mod_authz_svn.so - - -chown -R apache:apache /code/svndata/svn/ - -chmod -R 755 /code/svndata/svn/ - - -#5、要关闭selinux的保护设置为禁用: - -vi /etc/selinux/config - -修改SELINUX=disabled - -保存 - -不重启Linux服务器关闭SeLinux的方法 - -setenforce 0 - -#6、关闭防火墙: - -/etc/init.d/iptables stop - - -#7、测试: - -http://服务器IP/svn - -输入用户名和密码可以登录表示成功! - -#启动httpd - -service httpd start - -管理系统配置请参考[管理系统配置请参考](https://github.com/yuexiaoyun/svnadmin/blob/master/doc/SvnAdmin_Manual_zh_CN.pdf) \ No newline at end of file +## 3、附录 + Centos安装apache+svn结合的SVN服务器请参考[Centos安装apache+svn结合的SVN服务器](fl.md) + 管理系统配置请参考[管理系统配置请参考](https://github.com/yuexiaoyun/svnadmin/blob/master/doc/SvnAdmin_Manual_zh_CN.pdf) \ No newline at end of file diff --git a/fl.md b/fl.md new file mode 100644 index 0000000..03a976f --- /dev/null +++ b/fl.md @@ -0,0 +1,57 @@ +#1、yum安装下列的一些包: + +yum install apr apr-util httpd httpd-devel subversion mod_dav_svn mod_auth_mysql + +#2、建立svn的目录 + +mkdir -p /code/svndata + +#3、创建一个库就叫SVN: + +svnadmin create /code/svndata/svn + + +正常安全以上软件后,会在/etc/httpd/modules目录下生成mod_dav_svn.so、mod_authz_svn.so两个模块 +cp /etc/httpd/conf/httpd.conf /etc/httpd/conf/httpd.conf.bak + +#4、配置apache的httpd.conf +vim /etc/httpd/conf/httpd.conf + +添加 + +LoadModule dav_svn_module modules/mod_dav_svn.so + +LoadModule authz_svn_module modules/mod_authz_svn.so + + +chown -R apache:apache /code/svndata/svn/ + +chmod -R 755 /code/svndata/svn/ + + +#5、要关闭selinux的保护设置为禁用: + +vi /etc/selinux/config + +修改SELINUX=disabled + +保存 + +不重启Linux服务器关闭SeLinux的方法 + +setenforce 0 + +#6、关闭防火墙: + +/etc/init.d/iptables stop + + +#7、测试: + +http://服务器IP/svn + +输入用户名和密码可以登录表示成功! + +#启动httpd + +service httpd start \ No newline at end of file From 558d3012e6388dccde08ad9ad6526b15aa5e6687 Mon Sep 17 00:00:00 2001 From: paopaofish <994987301@qq.com> Date: Fri, 25 Mar 2016 17:03:53 +0800 Subject: [PATCH 4/4] Update README.md MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修正了下格式 --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index c196787..400a97c 100644 --- a/README.md +++ b/README.md @@ -43,5 +43,5 @@ …… ## 3、附录 - Centos安装apache+svn结合的SVN服务器请参考[Centos安装apache+svn结合的SVN服务器](fl.md) - 管理系统配置请参考[管理系统配置请参考](https://github.com/yuexiaoyun/svnadmin/blob/master/doc/SvnAdmin_Manual_zh_CN.pdf) \ No newline at end of file + Centos安装apache+svn结合的SVN服务器请参考[Centos安装apache+svn结合的SVN服务器](fl.md) + 管理系统配置请参考[管理系统配置请参考](https://github.com/yuexiaoyun/svnadmin/blob/master/doc/SvnAdmin_Manual_zh_CN.pdf)