阿里云centos安装svn和submin
概述
没有找到可以让团队方便使用的云盘,暂时搭建一个svn凑合用一下
svn有三种安装方式
| 安装方式 | 服务程序 | 服务协议 | 用户和密码 | 授权 | 系统配置 |
|---|---|---|---|---|---|
| svn独立安装 | svnserve | svn | passwd文件(明文密码) | authz文件 | svnserve.conf文件 |
| apache+svn安装 | httpd | http WebDAV | htpasswd命令(密文密码) | authz文件 | httpd.conf文件 |
| apache+svn+submin | httpd+ pythonCGI | http WebDAV | WebUI(sqlite3) | WebUI(authz文件) | submin2-admin命令 |
一、安装apache
检查apache是否安装
rpm -qa|grep httpd
使用yum安装apache
yum -y install httpd
记住安装的版本号
httpd.x86_64 0:2.4.6-31.el7.centos
启动apache测试apache是否可用
注意:在centos7中使用systemctl替换了servicesystemctl start httpd.service
systemctl status httpd.service
浏览器输入IP查看是否能显示以下页面
5. apache安装路径
/etc/httpd
二、安装SVN
检查svn是否安装
rpm -qa|grep subversion
阿里云已经安装了svn,如果没有安装使用 yum install subversion 命令安装
使用命令查看版本
svnserve --version
记住版本号svnserve,版本 1.7.14 (r1542130)
安装apache对svn的支持模块
yum install mod_dav_svn #安装完成后apache的modules目录下会多两个文件
mod_authz_svn.so
mod_dav_svn.so
安装python对svn的支持
yum install subversion-python
三、安装submin
可以参照 https://ssl.supermind.nl/collab/projects/submin/browser/INSTALL
submin依赖
- If you want subversion, you also need apache. If only git is needed, you can also install nginx.
- Python 2.x Python 2.7 preferred, but 2.6 should work,使用python —version查看python 版本
- Subversion
下载最新版本 http://supermind.nl/submin/current/submin-2.2.1-1.tar.gz
上传到服务器 sftp
解压文件
tar -xzvf submin-2.2.1-1.tar.gz
安装
cd submin-2.2.1-1/
python setup.py install
验证安装
执行 submin2-admin 成功显示当前版本配置submin
submin2-admin /opt/submin/ initenv your@email.address
邮箱很重要, submin会将管理员设置初始口令的链接发到这邮箱中
/opt/submin这个目录不要提前建,安装命令的向导一步步设置就可以了,说明很清楚.
这一步需要注意
Please provide a location for the Subversion repositories. For new Subversion
repositories, the default setting is ok. If the path is not absolute, it will
be relative to the submin environment. If you want to use an existing
repository, please provide the full pathname to the Subversion parent
directory (ie. /var/lib/svn).
Path to the repository? [svn]>
这个目录我设置的时 /opt/svn,注意这个目录apache一定要有写权限,否则会报以下错误
E165002 /opt/svn is an existing repository
因为submin是用apache用户启动的,最简单的方式是将该目录所有者设置为apache,执行以下命令
chown apache:apache /opt/svn/
配置apache
生成配置文件submin2-admin /opt/submin/ apacheconf create all
建立软链接配置apache,注意Apache版本
ln -s /opt/submin/conf/apache-2.4-webui-cgi.conf /etc/httpd/conf.d/
ln -s /opt/submin/conf/apache-2.4-svn.conf /etc/httpd/conf.d/
重启apache
systemctl restart httpd.service
报错 Can’t load driver file apr_dbd_sqlite3.so
submin2默认需要sqlite3做数据库yum -y install apr-util-sqlite apr-util
再次重启OK
四、邮箱设置
- 配置 submin时,需要配置管理员邮箱
/usr/lib/python2.7/site-packages/submin/email/fallback.py
def sendmail(sender, receiver, message):
msg_e = message.encode('utf-8')
try:
smtp.send(sender, receiver, msg_e)
except SendEmailError:
# this can still raise SendEmailError
local.send(sender, receiver, msg_e)
优先使用stmp发邮件。 异常时使用本地的sendmail,配置smtp
submin2-admin /opt/submin config set smtp_hostname smtp.exmail.qq.com
submin2-admin /opt/submin config set smtp_port 25
submin2-admin /opt/submin config set smtp_username svn@xxxxx.com
submin2-admin /opt/submin config set smtp_password xxxxxx
submin2-admin /opt/submin config set smtp_from "svn <svn@xxxx.com>"
submin2-admin /opt/submin config set commit_email_from "svn <svn@xxxx.com>"
五、诊断submin
执行以下命令
submin2-admin /opt/submin/ diagnostics
如果有问题参照说明修改对应错误
我设置出现了以下问题:
To disable, run the following command: submin2-admin /opt/submin config set vcs_plugins svn
如果不禁用git,以后的操作都会报git没有设置的错误
六、管理员重置密码
- 访问系统进入登录界面

- 点击forgot your password

输入admin,点击重置,以下命令配置的邮箱将会受到密码重置邮件
submin2-admin /opt/submin/ initenv your@email.address
- 点击重置邮件进入系统,点击admin菜单进入用户设置界面,修改密码

七、新建仓库sharing
- 点击左侧菜单右下角的新建仓库按钮

- 进入新建页面

输入名称,选择svn创建仓库
八、授权
点击左侧菜单最下面中间两个人的按钮,新建组

点击左侧菜单最下面的左侧一个人的按钮,新建用户

新建完成用户后,用户会收到密码重置邮件,同时系统进入修改用户信息页面,可以将用户添加到developer组

设置权限,点击左侧需要授权的仓库按钮

针对特定的路径设置组或用户并设置对应的读写权限,这里我给developer设置root的读写权限
- 使用浏览器访问svn地址测试
阿里云centos安装svn和submin的更多相关文章
- 阿里云(centos)下svn 服务器搭建
安装说明 系统环境:阿里云centos安装方式:yum install subversion 检查已安装版本 #检查是否安装了低版本的SVN[root@localhost /]# rpm -qa su ...
- 阿里云centos安装oracle
目录 阿里云centos安装oracle 阿里云默认没有swap分区,oracle安装需要 安装Oracle所需的依赖包 创建用户和组 关闭SELINUX(阿里云缺省关闭) 开始安装 使用" ...
- 阿里云centos 安装和配置 DokuWiki
安装 1) 添加虚拟主机:由于我的 阿里云CentOs服务器 安装了oneinstack的一键部署PHP.JAVA.Nginx等环境,所以域名配置很方便,照着文档一步一步做就可以了 cd /root/ ...
- 阿里云centos安装ftp与svn过程
1.下载xshell或者secureCRT 2.登录centos或者服务器 3.安装vsftpd [root@xxx]# yum install vsftpd //安装vsftpd [root@xxx ...
- 阿里云 CentOS 安装JDK
初用阿里云,使用centOS linux64操作系统 . 自己上传jdk文件总是安装失败,原因估计是因为我的网络不好,导致文件损坏. 解决办法,直接在linux命令行模式下,到官网下载 jdk,命令如 ...
- 阿里云centos安装docker-engine实践
近日在阿里云ECS服务器(centos系统)中安装docker,参考官方指南 https://docs.docker.com/engine/installation/linux/centos/ 大概 ...
- 关于阿里云centos7安装svn,客服端无法链接的问题
阿里云的centos7的版本中,通过yum安装了subversion之后,svn客服端无法链接svn服务器. 首先确定服务器的安全组策略中的3690端口是否打开 然后确定svnserve配置是否正确, ...
- 阿里云 centos 安装apache和php
mysql使用阿里云的rds httpd服务 1. 安装apr和apr-util 2. 安装 httpd apache.org,apr.apache.org 安装命令: ./configure --p ...
- 阿里云CentOS安装PostgreSQL
在PostgreSQL官方文档:https://www.postgresql.org/download/linux/redhat/ 有选项和说明 1.检查有没安装:rpg -ga | grep pos ...
随机推荐
- 使用openfiler设置SMB/CIFS共享总是不通过的一例与解决办法
最近使用openfiler进行空闲存储的集中化管理与多主机节点共享,等设置到了SMB/CIFS的时候总是通过不了,前提需要开启的LDAP内建在openfiler也都开启并设置好了,但就是无法通过&qu ...
- 1Z0-053 争议题目解析695
1Z0-053 争议题目解析695 考试科目:1Z0-053 题库版本:V13.02 题库中原题为: 695.Identify two options that Oracle recommends w ...
- Hibernate之加载策略(延迟加载与即时加载)和抓取策略(fetch)
假设现在有Book和Category两张表,表的关系为双向的一对多,表结构如下: 假设现在我想查询id为2的那本书的书名,使用session.get(...)方法: Session session=H ...
- jQuery-1.9.1源码分析系列(二)jQuery选择器续1
在分析之前说一点题外话. ownerDocument和 documentElement的区别 ownerDocument是Node对象的一个属性,返回的是某个元素的根节点文档对象:即document对 ...
- inno setup读取注册表遇到的一个坑
一.背景 目前,公司针对PR开发的一个插件需要发布到64位系统上.该插件包括一个prm格式的文件和若干个DLL文件.其中,prm文件需要复制到PR公共插件目录下,DLL需要复制到Windows系统目录 ...
- mysql数据库权限及编码
CREATE DATABASE IF NOT EXISTS yourdbname DEFAULT CHARSET utf8 COLLATE utf8_general_ci; 在tigase中,发送消息 ...
- eclipse中怎么用cmd
1:点击Run-----External tools------External tools configurations - 如果所示, name:就是工具配置的名字 location:cmd.ex ...
- hadoop 集群的配置
在经过几天折腾,终于将hadoop环境搭建成功,整个过程中遇到各种坑,反复了很多遍,光虚拟机就重新安装了4.5次,接下来就把搭建的过程详细叙述一下 0.相关工具: 1,系统环境说明: 我这边给出我的集 ...
- PKCS#1规范阅读笔记2--------公私钥ASN.1结构
PKCS#1种介绍了哈希算法的OID等的ASN.1结构,因为使用ASN.1的解码工具(比如:ASN1View)时,会自动显示出各OID的含义,所以这里就不说明了.下面就只简单摘抄一下RSA公私钥的AS ...
- MyEclipse 2016 CI 4新增BootStrap模板
Live Preview with CodeLive 目前CodeLive还只有Live Preview这一个功能,在后续的版本中会陆续添加新功能. 新增Bootstrap模板 在模板面板中选择相应的 ...