linux安装trac+svn+apache+wike,windos中Trac+apache+svn的安装与配置

第一步:安装python2.7.8(傻瓜安装)

第二步:安装setuptools(傻瓜安装)

创建两个文件

在C:\Python27\Lib\site-packages下altinstall.pth

import os, site; site.addsitedir(os.path.expanduser(‘~/lib/python2.7‘))

在C:\Python27\Lib\distutils下pydistutils.cfg

[install]

install_lib = ~/lib/python2.7

# This next line is optional but often quite useful; it directs EasyInstall

# and the distutils to install scripts in the user‘s "bin" directory.  For

# Mac OS X framework Python builds, you should use /usr/local/bin instead,

# because neither ~/bin nor the default script installation location are on

# the system PATH.

#

install_scripts = ~/bin

第三部:安装Genshi 在DOS里c:/python27/Script执行easy_install Genshi安装

第四步:安装postgresql-9.2.9-1-windows

第五步:安装psycopg2-2.5.4

Svn

第六步:安装trac1.0 在DOS里c:/python27/Script执行 easy_install Trac==1.0

第七步:安装apache

第七步:Creating a Project Environment

1、  手动创建path/to路径执行trac-admin /path/to/myproject initenv

第八步:更改权限chown -R apache.apache /path/to/myproject

第八步:tracd --port 8080 /path/to/myproject

第九步:增加用户 trac-admin /path/to/myproject permission add admin TRAC_ADMIN

第十步:密码验证

from optparse import OptionParser

# The md5 module is deprecated in Python 2.5

try:

from hashlib import md5

except ImportError:

from md5 import md5

realm = ‘trac‘

# build the options

usage = "usage: %prog [options]"

parser = OptionParser(usage=usage)

parser.add_option("-u", "--username",action="store", dest="username", type = "string",

help="the username for whom to generate a password")

parser.add_option("-p", "--password",action="store", dest="password", type = "string",

help="the password to use")

parser.add_option("-r", "--realm",action="store", dest="realm", type = "string",

help="the realm in which to create the digest")

(options, args) = parser.parse_args()

# check options

if (options.username is None) or (options.password is None):

parser.error("You must supply both the username and password")

if (options.realm is not None):

realm = options.realm

# Generate the string to enter into the htdigest file

kd = lambda x: md5(‘:‘.join(x)).hexdigest()

print ‘:‘.join((options.username, realm, kd([options.username, realm, options.password])))

将上面的代码保存到一个新文本文件中,放到c盘下 trac-digest.py, C:\Python24>python c:\trac-digest.py -u admin -p admin >>c:\ digest.txt会在c:\目录下生成一个digest.txt的密码文件,该文件的格式是“用户名:范围名(readlm名称,默认是trac):密码的密文”。

第十一步:C:\Python27\Scripts>tracd -p 8080 --auth="myproject,c:/digest.txt,trac" c:/path/to

/myproject

第十二步:安装:VisualSVN-4.0.9.msi    VisualSVN-Server-2.7.2    端口8443

第十三步:创建svn库及用户

第十四步:svn和trac结合(待定,还未亲自配置成功过,)

注:centos6.5亲自配置过,是可以使用,一键安装包即可

详情请询问QQ:1183810577

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值