mac下svn开机自启动配置
2016-06-16 10:57
435 查看
在 /Library/LaunchDaemons下
步骤:
在/Library/LaunchDaemons下新建org.tigris.subversion.svnserve.plist。
org.tigris.subversion.svnserve.plist内容:
提示:查看svnserve路径方法:
红色字体,第一个是你的账户名,第二个是你的svnserve所在路径,自己改自己的,第三个是你数据仓库,自己改自己的。
参考资料:https://www.zennaware.com/cornerstone/helpbook/pages/appendix/launchd.html
http://blog.csdn.net/whyliu_/article/details/9045589
步骤:
在/Library/LaunchDaemons下新建org.tigris.subversion.svnserve.plist。
org.tigris.subversion.svnserve.plist内容:
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist version="1.0"> <dict> <key>Disabled</key> <false/> <key>UserName</key> <string>Lovell</string> <key>Label</key> <string>org.tigris.subversion.svnserve</string> <key>ProgramArguments</key> <array> <string>/opt/subversion/bin/svnserve</string> <string>--inetd</string> <string>--root</string> <string>/Users/Lovell/Desktop/develop-work/svn-workspace/svn</string> </array> <key>ServiceDescription</key> <string>SVN Version Control System</string> <key>Sockets</key> <dict> <key>Listeners</key> <array> <dict> <key>SockFamily</key> <string>IPv4</string> <key>SockServiceName</key> <string>svn</string> <key>SockType</key> <string>stream</string> </dict> <dict> <key>SockFamily</key> <string>IPv6</string> <key>SockServiceName</key> <string>svn</string> <key>SockType</key> <string>stream</string> </dict> </array> </dict> <key>inetdCompatibility</key> <dict> <key>Wait</key> <false/> </dict> </dict> </plist>
提示:查看svnserve路径方法:
which svnserve
红色字体,第一个是你的账户名,第二个是你的svnserve所在路径,自己改自己的,第三个是你数据仓库,自己改自己的。
#授权开机启动权限给root,否则报/Library/LaunchDaemons/org.tigris.subversion.svnserve.plist: Path had bad ownership/permissions无权限错误 sudo chown -R root /Library/LaunchDaemons/org.tigris.subversion.svnserve.plist #授权svn仓库的使用权限给当前用户 sudo chown -R Lovell /Users/Lovell/Desktop/develop-work/svn-workspace/svn 电脑重启,可用。
参考资料:https://www.zennaware.com/cornerstone/helpbook/pages/appendix/launchd.html
http://blog.csdn.net/whyliu_/article/details/9045589
相关文章推荐
- http://www.csdn.net/article/2013-05-27/2815444-5-html5-features-you-must-know
- 剑指offer:旋转数组的最小数字
- java学习、java知识:成为Java高手的25个学习要点
- List及Map遍历的几种方式
- 5天玩转C#并行和多线程编程
- 管理最大的挑战是怎么激活人,尤其是激发年轻人
- snmpwalk高延时问题分析
- 使用MyBatis(十)一对多集合的嵌套结果
- html5 canvas绘制矩形和圆形的实例代码
- SVN与Git的最主要的区别
- Jdk1.6 JUC源码解析(1)-atomic-AtomicXXX
- linux ext4无法使用超过16T磁盘的解决办法
- iOS - property,strong,weak,retain,assign,copy,nomatic 的区别及使用
- 关于java集合排序
- eclipse NoClassDefFoundError错误
- Android ScrollView去掉滚动条
- Swift 解析 JSON
- Elasticsearch 2.3.2 从oracle中同步数据
- 写论文时,给目录和正文分别设置从1开始的页码
- cvc-complex-type.2.4.a: Invalid content was found starting with element 'async-supported'. One of