日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問(wèn) 生活随笔!

生活随笔

當(dāng)前位置: 首頁(yè) > 运维知识 > linux >内容正文

linux

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

發(fā)布時(shí)間:2024/2/28 linux 36 豆豆
生活随笔 收集整理的這篇文章主要介紹了 linux安装trac+svn+apache+wike,windos中Trac+apache+svn的安装与配置 小編覺(jué)得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.

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

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

創(chuàng)建兩個(gè)文件

在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執(zhí)行easy_install Genshi安裝

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

第五步:安裝psycopg2-2.5.4

Svn

第六步:安裝trac1.0 在DOS里c:/python27/Script執(zhí)行 easy_install Trac==1.0

第七步:安裝apache

第七步:Creating a Project Environment

1、??手動(dòng)創(chuàng)建path/to路徑執(zhí)行trac-admin /path/to/myproject initenv

第八步:更改權(quán)限chown -R apache.apache /path/to/myproject

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

第九步:增加用戶(hù) trac-admin /path/to/myproject permission add admin TRAC_ADMIN

第十步:密碼驗(yàn)證

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])))

將上面的代碼保存到一個(gè)新文本文件中,放到c盤(pán)下 trac-digest.py, C:\Python24>python c:\trac-digest.py -u admin -p admin >>c:\ digest.txt會(huì)在c:\目錄下生成一個(gè)digest.txt的密碼文件,該文件的格式是“用戶(hù)名:范圍名(readlm名稱(chēng),默認(rèn)是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

第十三步:創(chuàng)建svn庫(kù)及用戶(hù)

第十四步:svn和trac結(jié)合(待定,還未親自配置成功過(guò),)

注:centos6.5親自配置過(guò),是可以使用,一鍵安裝包即可

詳情請(qǐng)?jiān)儐?wèn)QQ:1183810577

總結(jié)

以上是生活随笔為你收集整理的linux安装trac+svn+apache+wike,windos中Trac+apache+svn的安装与配置的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。

如果覺(jué)得生活随笔網(wǎng)站內(nèi)容還不錯(cuò),歡迎將生活随笔推薦給好友。