Chinaunix首页 | 论坛 | 博客
  • 博客访问: 430223
  • 博文数量: 114
  • 博客积分: 3361
  • 博客等级: 中校
  • 技术积分: 1060
  • 用 户 组: 普通用户
  • 注册时间: 2010-05-18 13:14
文章分类

全部博文(114)

文章存档

2012年(1)

2011年(84)

2010年(29)

分类: Python/Ruby

2011-02-25 21:34:06

可以参考的说明,
我的创建过程:
『只要输入创建命令,名称,链接字符串(可以直接回车)』
  1. wang@wang-Lenovo-B460:~/Documents/trac$ trac-admin ~/Documents/trac/first-trac/ initenv
  2. 在/home/wang/Documents/trac/first-trac处创建一个新的Trac环境
  3. Trac先要询问一些和环境相关的问题,以初始化和准备项目数据库。
  4. 请输入您项目的名称。
  5. 此名称将在页面标题和描述中使用。
  6. first-trac
  7. 请指定所用数据库的连接字符串。缺省情况下,
  8. 将在环境目录中创建一个本地SQLite数据库。
  9. 也可以使用一个已存在的PostgreSQL数据库
  10. (具体的连接字符串语法请查看Trac文档)。
  11. 数据库连接字符串 [sqlite:db/trac.db]>
  12. 创建和初始化项目
  13. 安装缺省Wiki页
  14. 从/home/wang/.python-eggs/Trac-0.13dev_r10602-py2.6.egg-tmp/trac/wiki/default-pages/TracBrowser中导入了TracBrowser
  15. 从/home/wang/.python-eggs/Trac-0.13dev_r10602-py2.6.egg-tmp/trac/wiki/default-pages/RecentChanges中导入了RecentChanges
  16. 从/home/wang/.python-eggs/Trac-0.13dev_r10602-py2.6.egg-tmp/trac/wiki/default-pages/TracModPython中导入了TracModPython
  17. 从/home/wang/.python-eggs/Trac-0.13dev_r10602-py2.6.egg-tmp/trac/wiki/default-pages/TracRss中导入了TracRss
  18. 从/home/wang/.python-eggs/Trac-0.13dev_r10602-py2.6.egg-tmp/trac/wiki/default-pages/TracSyntaxColoring中导入了TracSyntaxColoring
  19. 从/home/wang/.python-eggs/Trac-0.13dev_r10602-py2.6.egg-tmp/trac/wiki/default-pages/WikiNewPage中导入了WikiNewPage
  20. 从/home/wang/.python-eggs/Trac-0.13dev_r10602-py2.6.egg-tmp/trac/wiki/default-pages/TracNavigation中导入了TracNavigation
  21. 从/home/wang/.python-eggs/Trac-0.13dev_r10602-py2.6.egg-tmp/trac/wiki/default-pages/CamelCase中导入了CamelCase
  22. 从/home/wang/.python-eggs/Trac-0.13dev_r10602-py2.6.egg-tmp/trac/wiki/default-pages/WikiFormatting中导入了WikiFormatting
  23. 从/home/wang/.python-eggs/Trac-0.13dev_r10602-py2.6.egg-tmp/trac/wiki/default-pages/TracIni中导入了TracIni
  24. 从/home/wang/.python-eggs/Trac-0.13dev_r10602-py2.6.egg-tmp/trac/wiki/default-pages/TracFineGrainedPermissions中导入了TracFineGrainedPermissions
  25. 从/home/wang/.python-eggs/Trac-0.13dev_r10602-py2.6.egg-tmp/trac/wiki/default-pages/TracInstall中导入了TracInstall
  26. 从/home/wang/.python-eggs/Trac-0.13dev_r10602-py2.6.egg-tmp/trac/wiki/default-pages/WikiProcessors中导入了WikiProcessors
  27. 从/home/wang/.python-eggs/Trac-0.13dev_r10602-py2.6.egg-tmp/trac/wiki/default-pages/TracWorkflow中导入了TracWorkflow
  28. 从/home/wang/.python-eggs/Trac-0.13dev_r10602-py2.6.egg-tmp/trac/wiki/default-pages/TracUpgrade中导入了TracUpgrade
  29. 从/home/wang/.python-eggs/Trac-0.13dev_r10602-py2.6.egg-tmp/trac/wiki/default-pages/TracBackup中导入了TracBackup
  30. 从/home/wang/.python-eggs/Trac-0.13dev_r10602-py2.6.egg-tmp/trac/wiki/default-pages/InterMapTxt中导入了InterMapTxt
  31. 从/home/wang/.python-eggs/Trac-0.13dev_r10602-py2.6.egg-tmp/trac/wiki/default-pages/TracPermissions中导入了TracPermissions
  32. 从/home/wang/.python-eggs/Trac-0.13dev_r10602-py2.6.egg-tmp/trac/wiki/default-pages/TracStandalone中导入了TracStandalone
  33. 从/home/wang/.python-eggs/Trac-0.13dev_r10602-py2.6.egg-tmp/trac/wiki/default-pages/TracLinks中导入了TracLinks
  34. 从/home/wang/.python-eggs/Trac-0.13dev_r10602-py2.6.egg-tmp/trac/wiki/default-pages/WikiPageNames中导入了WikiPageNames
  35. 从/home/wang/.python-eggs/Trac-0.13dev_r10602-py2.6.egg-tmp/trac/wiki/default-pages/TitleIndex中导入了TitleIndex
  36. 从/home/wang/.python-eggs/Trac-0.13dev_r10602-py2.6.egg-tmp/trac/wiki/default-pages/TracAccessibility中导入了TracAccessibility
  37. 从/home/wang/.python-eggs/Trac-0.13dev_r10602-py2.6.egg-tmp/trac/wiki/default-pages/TracInterfaceCustomization中导入了TracInterfaceCustomization
  38. 从/home/wang/.python-eggs/Trac-0.13dev_r10602-py2.6.egg-tmp/trac/wiki/default-pages/InterTrac中导入了InterTrac
  39. 从/home/wang/.python-eggs/Trac-0.13dev_r10602-py2.6.egg-tmp/trac/wiki/default-pages/WikiHtml中导入了WikiHtml
  40. 从/home/wang/.python-eggs/Trac-0.13dev_r10602-py2.6.egg-tmp/trac/wiki/default-pages/WikiMacros中导入了WikiMacros
  41. 从/home/wang/.python-eggs/Trac-0.13dev_r10602-py2.6.egg-tmp/trac/wiki/default-pages/TracUnicode中导入了TracUnicode
  42. 从/home/wang/.python-eggs/Trac-0.13dev_r10602-py2.6.egg-tmp/trac/wiki/default-pages/TracChangeset中导入了TracChangeset
  43. 从/home/wang/.python-eggs/Trac-0.13dev_r10602-py2.6.egg-tmp/trac/wiki/default-pages/WikiDeletePage中导入了WikiDeletePage
  44. 从/home/wang/.python-eggs/Trac-0.13dev_r10602-py2.6.egg-tmp/trac/wiki/default-pages/TracSupport中导入了TracSupport
  45. 从/home/wang/.python-eggs/Trac-0.13dev_r10602-py2.6.egg-tmp/trac/wiki/default-pages/TracGuide中导入了TracGuide
  46. 从/home/wang/.python-eggs/Trac-0.13dev_r10602-py2.6.egg-tmp/trac/wiki/default-pages/InterWiki中导入了InterWiki
  47. 从/home/wang/.python-eggs/Trac-0.13dev_r10602-py2.6.egg-tmp/trac/wiki/default-pages/TracFastCgi中导入了TracFastCgi
  48. 从/home/wang/.python-eggs/Trac-0.13dev_r10602-py2.6.egg-tmp/trac/wiki/default-pages/TracAdmin中导入了TracAdmin
  49. 从/home/wang/.python-eggs/Trac-0.13dev_r10602-py2.6.egg-tmp/trac/wiki/default-pages/TracImport中导入了TracImport
  50. 从/home/wang/.python-eggs/Trac-0.13dev_r10602-py2.6.egg-tmp/trac/wiki/default-pages/TracWiki中导入了TracWiki
  51. 从/home/wang/.python-eggs/Trac-0.13dev_r10602-py2.6.egg-tmp/trac/wiki/default-pages/TracPlugins中导入了TracPlugins
  52. 从/home/wang/.python-eggs/Trac-0.13dev_r10602-py2.6.egg-tmp/trac/wiki/default-pages/TracRoadmap中导入了TracRoadmap
  53. 从/home/wang/.python-eggs/Trac-0.13dev_r10602-py2.6.egg-tmp/trac/wiki/default-pages/TracRevisionLog中导入了TracRevisionLog
  54. 从/home/wang/.python-eggs/Trac-0.13dev_r10602-py2.6.egg-tmp/trac/wiki/default-pages/TracEnvironment中导入了TracEnvironment
  55. 从/home/wang/.python-eggs/Trac-0.13dev_r10602-py2.6.egg-tmp/trac/wiki/default-pages/WikiRestructuredTextLinks中导入了WikiRestructuredTextLinks
  56. 从/home/wang/.python-eggs/Trac-0.13dev_r10602-py2.6.egg-tmp/trac/wiki/default-pages/WikiRestructuredText中导入了WikiRestructuredText
  57. 从/home/wang/.python-eggs/Trac-0.13dev_r10602-py2.6.egg-tmp/trac/wiki/default-pages/TracRepositoryAdmin中导入了TracRepositoryAdmin
  58. 从/home/wang/.python-eggs/Trac-0.13dev_r10602-py2.6.egg-tmp/trac/wiki/default-pages/TracSearch中导入了TracSearch
  59. 从/home/wang/.python-eggs/Trac-0.13dev_r10602-py2.6.egg-tmp/trac/wiki/default-pages/TracLogging中导入了TracLogging
  60. 从/home/wang/.python-eggs/Trac-0.13dev_r10602-py2.6.egg-tmp/trac/wiki/default-pages/TracTicketsCustomFields中导入了TracTicketsCustomFields
  61. 从/home/wang/.python-eggs/Trac-0.13dev_r10602-py2.6.egg-tmp/trac/wiki/default-pages/PageTemplates中导入了PageTemplates
  62. 从/home/wang/.python-eggs/Trac-0.13dev_r10602-py2.6.egg-tmp/trac/wiki/default-pages/TracNotification中导入了TracNotification
  63. 从/home/wang/.python-eggs/Trac-0.13dev_r10602-py2.6.egg-tmp/trac/wiki/default-pages/TracQuery中导入了TracQuery
  64. 从/home/wang/.python-eggs/Trac-0.13dev_r10602-py2.6.egg-tmp/trac/wiki/default-pages/TracTickets中导入了TracTickets
  65. 从/home/wang/.python-eggs/Trac-0.13dev_r10602-py2.6.egg-tmp/trac/wiki/default-pages/TracCgi中导入了TracCgi
  66. 从/home/wang/.python-eggs/Trac-0.13dev_r10602-py2.6.egg-tmp/trac/wiki/default-pages/TracModWSGI中导入了TracModWSGI
  67. 从/home/wang/.python-eggs/Trac-0.13dev_r10602-py2.6.egg-tmp/trac/wiki/default-pages/TracTimeline中导入了TracTimeline
  68. 从/home/wang/.python-eggs/Trac-0.13dev_r10602-py2.6.egg-tmp/trac/wiki/default-pages/SandBox中导入了SandBox
  69. 从/home/wang/.python-eggs/Trac-0.13dev_r10602-py2.6.egg-tmp/trac/wiki/default-pages/TracReports中导入了TracReports
  70. 从/home/wang/.python-eggs/Trac-0.13dev_r10602-py2.6.egg-tmp/trac/wiki/default-pages/WikiStart中导入了WikiStart
  71. ---------------------------------------------------------------------
  72. 'first-trac' 的项目环境已经建立。
  73. 您现在可以通过编辑以下文件来配置环境:
  74. /home/wang/Documents/trac/first-trac/conf/trac.ini
  75. 如果您想试用一下这个新的项目环境,请尝试运行Trac独立Web服务器 `tracd`:
  76. tracd --port 8000 /home/wang/Documents/trac/first-trac
  77. 然后使用您的浏览器访问。
  78. 在那里,您可以浏览已安装Trac版本的文档,包括进行进一步配置的信息
  79. (比如将Trac部署到真正的Web服务器上)。
  80. 最新的文档也可以在项目网站上找到:
  81. 恭喜您!
这样就创建好了,
下面看下目录:
  1. wang@wang-Lenovo-B460:~$ ls Documents/trac/first-trac/
  2. attachments conf db htdocs log plugins README templates VERSION
ok!!!



阅读(1455) | 评论(0) | 转发(0) |
0

上一篇:python创建sqlite数据库

下一篇:运行trac

给主人留下些什么吧!~~