svn 启动命令讲解

 

 

svn默认端口是3690

 

svn启动命令详解

svn启动命令详解

 svnserve --help

usage: svnserve [-d | -i | -t | -X] [options]

 

Valid options:

  -d [--daemon]            : daemon mode #在后台运行

  -i [--inetd]             : inetd mode #以inetd模式运行

  -t [--tunnel]            : tunnel mode #以隧道模式运行

  -X [--listen-once]       : listen-once mode (useful for debugging) #调试模式

  -r [--root] ARG          : root of directory to serve #指定根目录

  -R [--read-only]         : force read only, overriding repository config file #只读,覆盖库的配置文件

  --config-file ARG        : read configuration from file ARG #从文件读取配置

  --listen-port ARG        : listen port #指定监听svn端口

                             [mode: daemon, listen-once]

  --listen-host ARG        : listen hostname or IP address #监听主机名或者IP地址

                             [mode: daemon, listen-once]

  -T [--threads]           : use threads instead of fork [mode: daemon] #线程的使用

  --foreground             : run in foreground (useful for debugging) #在前台运行(调试模式)

                             [mode: daemon]

  --log-file ARG           : svnserve log file #指定日志文件

 

 

  --pid-file ARG           : write server process ID to file ARG #指定pid文件路径

                             [mode: daemon, listen-once]

  --tunnel-user ARG        : tunnel username (default is current uid's name) #隧道用户名(默认UID的名称)

                             [mode: tunnel]

  -h [--help]              : display this help #查看帮助

  --version                : show program version information #显示程序版本信息

 

 

 

svn项目

[root@mysql pro]# pwd
/data/pro
[root@mysql pro]# ls
public

 

配置并启动svn服务

-d代表后台运行 -r 指定根目录 

/data/svndata/wy 项目目录路径

[root@mysql pro]# svnserve -d -r /data/svndata/wy

 

查看SVN端口

[root@mysql pro]# netstat -tnpl|grep svn
tcp        0      0 0.0.0.0:3690                0.0.0.0:*                   LISTEN      2095/svnserve  

 

 

posted @ 2018-11-22 12:04  minger_lcm  阅读(2023)  评论(0编辑  收藏  举报