如何用dw做网站首页,在线技能培训平台,湖南招标网官网,招牌图片效果图设计制作1、检查系统是否已经安装如果安装就卸载 检查#xff1a;
svnserve --version
卸载#xff1a;
yum remove subversion
2、安装
yum install subversion
3、建立SVN库#xff08;文件位置可自由#xff09; 创建仓库文件夹#xff1a;
mkdir -p /opt/svn/repositor…
1、检查系统是否已经安装如果安装就卸载 检查
svnserve --version
卸载
yum remove subversion
2、安装
yum install subversion
3、建立SVN库文件位置可自由 创建仓库文件夹
mkdir -p /opt/svn/repository
用svn管理员身份创建一个仓库
svnadmin create /opt/svn/repository
4、权限配置 authz文件配置设置哪些用户可以访问哪些目录进入/opt/svn/repository/conf上面生成的文件夹下 进行配置 authz文件配置vi authz,向authz文件追加以下内容,左边是用户名右边是读写权限(r、w、rw、no access), 每个目录的读写权限都可精细控制
5、启动svn 本人建议指定端口的启动方式如果建立多个仓库也便于管理。 svn默认端口为3690需要在防火墙添加才可在svn客户端访问 再次我选择用3691端口启动 启动命令
svnserve -d -r /opt/svn/repository --listen-port 3690
6.查看svn进程 ps -ef|grep svn可以看到服务启动成功想要重新启动则kill -9 pid再重新使用命令启动
svnserve -d -r /opt/svn/repository --listen-port 3690
备注如果部署在阿里云等云服务器上记得要去阿里云安全组打开3690端口
默认配置文件 : 1.在authz中添加用户访问权限
[/]
#admim rw
#users rw
wyg rw
2.在passwd文件中添加用户列表
[users]
#harry harryssecret
wygwyg123
3.在svnserve.conf 中添加或者修改如下配置
[general]
anon-access none
auth-access write
password-db passwd
authz-db authz
realm /opt/svn/repository 常用操作
1.检出 (需要到检出的项目所在目录下执行该指令)
svn checkout svn://106.12.117.1/project/workfile2022/kehoufuwuxt/5.code/khfw/ khfw --username wyg
2.更新代码
svn update svn 服务地址迁移relocate
#relocate前的svn服务器获取uuid svnlook uuid /opt/svn/repository/
#被relocate的svn服务器设置uuid svnadmin setuuid /opt/svn/repository/ 328817f2-0388-41ec-8938-0ebed7a758aa