发表于: 2019-12-01 22:02:20

1 1379


今日完成

  • 链接:svn://120.92.4.210/student/
  • linux上安装svn
    • 检测是否安装:rpm -qa subversion
    • 卸载:yum remove subversion
    • 安装SVN服务器:yum install httpd httpd-devel subversion mod_dav_svn mod_auth_mysql/yum -y install subversion
    • 验证安装
    • 查看版本:svnserve --version
    • 安装完成后要建立SVN库
      • mkdir -p /opt/svn/repositories
      • svnadmin create /opt/svn/repositories
    • 查看/opt/svn/repositories文件夹包含了conf,db,format,hooks,locks,README.txt等文件:说明一个SVN库已经建立
    • 用户密码passwd配置
      • 进入/opt/svn/repositories/conf文件夹下passwd文件:写上用户名、密码
    • 用户的权限配置
      • 进入/opt/svn/repositories/conf文件夹下authz:给该用户访问所有库的权限
    • 配置svnserve.conf文件
      • anon-access=none
      • auth-access=write
      • password-db=passwd
      • authz-db=authz
      • realm=/opt/svn/repositories
    • 阿里云要配置3690的端口号
  • 启动与停止
    • 启动svn:svnserve -d -r /opt/svn(启动时候目录层级到你建立的仓库的上一级,即先到svn路径时再启动)
    • 查看svn进程:ps -ef|grep svn|grep -v grep
    • 检测svn端口:netstat -ln |grep 3690
    • 停止svn:killall svnserve
    • svnserve -d -r /var/svnrepos--listen-port=3690
  • 导出与更新
    • checkout:svn checkout 路径
    • update:svn update(要在有.svn的地方进行更新)
  • 修真院改权限
    • FinalShell:连接对应服务器
      • Ip:120.92.4.210
      • 用户:root
      • 密码:PTT$%@_jnshu%_255
      • 端口号:55899
    • 进入/data/svn-repository/student/conf,修改配置文件
      • authz:直接添加姓名
      • passwd:账户名密码默认 姓名=姓名

明日计划

准备开始复盘


返回列表 返回列表
评论

    分享到