SVN的“Invalid authz configuration”错误的解决方法
2014-01-13 11:48
253 查看
在修改配置文件(authz)后,客户端可能会报“Invalid authz configuration”的错误提示!
客户端没有提示错误原因,但在服务器端有一个方法,可以检查配置文件(authz)错在了哪里;
具体方法如下:
root@server:~# svnauthz-validate /data/svn/LQPLAY/conf/authz
svnauthz-validate: /data/svn/LQPLAY/conf/authz:167: Option must end with ':' or '='
它查出了是配置文件(authz)的第167行,出现了错误。
然后,可以用如下命令,编辑它并保存:
root@server:~# vi /data/svn/LQPLAY/conf/authz
Shift+: set number (显示行号)
Shift+: 167 (直接跳转到167行)
我发现是本该写为(gaojs = rw),不小心写成了(gaojs - rw)。
字母键(I-Insert),从浏览模式,切换到插入模式;
(Shift+:, 从浏览模式,切换到底行命令模式)
(Esc,从其他模式,退出到浏览模式)
修改后保存退出!
Shift+: wq (Write & Quit)
查看SVN的目录在哪里?
root@server:~# whereis svn
svn: /usr/bin/svn /usr/bin/X11/svn /usr/share/man/man1/svn.1.gz
查看SVN的进程是哪些?
root@server:~# ps aux | grep svn
root 1527 0.0 0.0 69640 1092 ? Ss 10:53 0:00
svnserve -d -r /data/svn/LQPLAY
root 5144 0.0 0.0 13592 936 pts/2 S+ 11:58 0:00 grep --color=auto svn
启动SVN的服务(-d:Deamon; -r:Root)
root@server:~# svnserve -d -r /data/svn/LQPLAY
查看SVN的服务是否正常(端口号3690是否存在)
root@server:~# netstat -ntlp
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 0.0.0.0:3690 0.0.0.0:* LISTEN 1527/svnserve
客户端没有提示错误原因,但在服务器端有一个方法,可以检查配置文件(authz)错在了哪里;
具体方法如下:
root@server:~# svnauthz-validate /data/svn/LQPLAY/conf/authz
svnauthz-validate: /data/svn/LQPLAY/conf/authz:167: Option must end with ':' or '='
它查出了是配置文件(authz)的第167行,出现了错误。
然后,可以用如下命令,编辑它并保存:
root@server:~# vi /data/svn/LQPLAY/conf/authz
Shift+: set number (显示行号)
Shift+: 167 (直接跳转到167行)
我发现是本该写为(gaojs = rw),不小心写成了(gaojs - rw)。
字母键(I-Insert),从浏览模式,切换到插入模式;
(Shift+:, 从浏览模式,切换到底行命令模式)
(Esc,从其他模式,退出到浏览模式)
修改后保存退出!
Shift+: wq (Write & Quit)
查看SVN的目录在哪里?
root@server:~# whereis svn
svn: /usr/bin/svn /usr/bin/X11/svn /usr/share/man/man1/svn.1.gz
查看SVN的进程是哪些?
root@server:~# ps aux | grep svn
root 1527 0.0 0.0 69640 1092 ? Ss 10:53 0:00
svnserve -d -r /data/svn/LQPLAY
root 5144 0.0 0.0 13592 936 pts/2 S+ 11:58 0:00 grep --color=auto svn
启动SVN的服务(-d:Deamon; -r:Root)
root@server:~# svnserve -d -r /data/svn/LQPLAY
查看SVN的服务是否正常(端口号3690是否存在)
root@server:~# netstat -ntlp
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 0.0.0.0:3690 0.0.0.0:* LISTEN 1527/svnserve
相关文章推荐
- SVN的“Invalid authz configuration”错误解决方法
- svn: followed by invalid utf-8 sequence错误的解决方法
- svnserver 启动不了服务 报错误1053的解决方法
- ImageLoader must be init with configuration before using 错误解决方法
- Tomcat 400错误:Invalid character found in the request target. 问题解决方法
- Android ImageLoader must be init with configuration before using 错误解决方法
- HEAP[xxx.exe]:Invalid Address specified to RtlValidateHeap 错误的解决方法总结
- 【错误解决方法】void[] is an invalid type
- HEAP[xxx.exe]:Invalid Address specified to RtlValidateHeap 错误的解决方法总结
- svn: Aborting commit: 'E:\myeclipse\workplaces\……“ remains in conflict错误的解决方法
- linux下"没有设置 SVN_EDITOR...."错误解决方法
- ruby环境sass编译中文出现Syntax error: Invalid GBK character错误解决方法
- linux 驱动开发 Invalid module format 和 File exists 错误解决方法
- svn: generic failure 错误解决方法
- Struts2中的Unable to load configuration错误的分析与解决方法
- ImageLoader must be init with configuration before using 错误解决方法
- Jquery.ajax不能解析json对象,报Invalid JSON错误的原因和解决方法
- MyEclipse+Tomcat 启动时出现A configuration error occured during startup错误的解决方法
- [MyBatis]Invalid bound statement (not found)错误解决方法总结
- [SVN]TortoiseSVN报“500 Internal Server Error”错误的解决方法