linux上:
1.启动svn svnserve -dr /usr/local/svn
停止svn操作 ps -aux|grep svn 停止kill svn的id
2.检出svn checkout svn://localhost/版本库名
3.添加 svn add *
4提交svn commit -m "fix bug"
lnmp搭建域名
1.在/home/wwwroot/下 lnmp vhosts add
2./etc/hosts 下配置域名
3.重启 lnmp restart
4.chmod -R 777 文件名 修改文件权限
svn自动更新:
在 usr/local/svn vi/hooks 下添加:
#!/bin/sh
export LANG=en_US.UTF-8
/usr/bin/svn update /home/wwwroot/default/testiweb
--username svn账号 --password svn密码
chown -R www /home/wwwroot/default/testiweb
chgrp -R www /home/wwwroot/default/testiweb
--------------------------
路径均为linux上边检出的路径
svn基本操作
最新推荐文章于 2023-07-03 15:49:41 发布