CentOS 7 下安装 SVN (HTTPS + SSH)
2016-03-26 15:36
411 查看
这2天安装下面指导CentOS 7 下安装 SVN (HTTPS + SSH) , 一切都很正常.
CentOS安装SVN服务器并配置HTTPS连接
除了下面的配置一开始没注意到,费了点时间.
chcon -R -t httpd_sys_content_t svn库目录
chcon -R -t httpd_sys_rw_content_t svn库目录
然后,想加个钩子,让开发人员提交的时候必须写注释。然后有下面的错误.
Commit blocked by pre-commit hook (exit code 255) with no output.
找了好久,有下面的解决方案.
Svn pre-commit hook not getting executed
Finally got a solution for this. The root cause was the SELinux not allowing the pre-commit script to get executed through the httpd service. I get rid of that by running this line
chcon -t httpd_exec_t pre-commit
有点奇怪,为什么用YUM 安装的SVN server 是1.7的版本? 官方的都到了1.9了....
CentOS安装SVN服务器并配置HTTPS连接
除了下面的配置一开始没注意到,费了点时间.
chcon -R -t httpd_sys_content_t svn库目录
chcon -R -t httpd_sys_rw_content_t svn库目录
然后,想加个钩子,让开发人员提交的时候必须写注释。然后有下面的错误.
Commit blocked by pre-commit hook (exit code 255) with no output.
找了好久,有下面的解决方案.
Svn pre-commit hook not getting executed
Finally got a solution for this. The root cause was the SELinux not allowing the pre-commit script to get executed through the httpd service. I get rid of that by running this line
chcon -t httpd_exec_t pre-commit
有点奇怪,为什么用YUM 安装的SVN server 是1.7的版本? 官方的都到了1.9了....
相关文章推荐
- 借助matlab神经网络工具箱实现蠓虫分类
- Cocoa Touch(五):网络请求 NSURLSession/AFNetworking, GCD, NSURLResquest
- VirtualBox中centos网络配置
- HttpClient抓取网页返回乱码的解决办法
- 防御型体系:一种新的网络安全体系架构
- 使用HttpURLConnection 与 sae 进行数据交互
- HTTP Servlet 重要的几个方法
- TCP/IP 协议详解
- Kubernetes网络配置方案
- $POST 、$HTTP_RAW_POST_DATA、php://input三者之间的区别
- 最详细的Log4j使用教程-http://www.codeceo.com/article/log4j-usage.html
- Okhttp封装、网络层扩展
- 获取手机网络连接状态
- 【BZOJ3651】网络通信
- 【PA2014】【BZOJ3716】Muzeum
- 如何在你写的应用中跳转到手机系统网络设置页面去,看别人应用代码的时候看到的
- STC89C52单片机串口调试(http://blog.sina.com.cn/s/blog_7cae472801015idp.html)
- Linux网络配置基础篇
- 虚拟机virtualBox 搭建 Keepalived+lvs dr+httpd 负载均衡
- 网络流例题学习