Posted on 2015-03-27 10:36
skycity 阅读(165)
评论(0) 编辑 收藏 所属分类:
操作系统
@import url(http://www.blogjava.net/CuteSoft_Client/CuteEditor/Load.ashx?type=style&file=SyntaxHighlighter.css);@import url(/css/cuteeditor.css);
@import url(http://www.blogjava.net/CuteSoft_Client/CuteEditor/Load.ashx?type=style&file=SyntaxHighlighter.css);@import url(/css/cuteeditor.css);
在
/Library/LaunchDaemons下
新建svn.sh,内容如下
/usr/bin/svnserve -d -r /Users/YingBo/svn/repository
chmod +x svn.sh
新建com.skycity.svn.plist,内容如下
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>KeepAlive</key>
<true/>
<key>Label</key>
<string>com.skycity.svn</string>
<key>ProgramArguments</key>
<array>
<string>/Library/LaunchDaemons/svn.sh</string>
</array>
</dict>
</plist>
设置开机自动启动
sudo launchctl load -w /Library/LaunchDaemons/com.skycity.svn.plist
设置开机不自动启动
sudo launchctl unload -w /Library/LaunchDaemons/com.skycity.svn.plist
Lyyb2001