| | 1 | [[TOC]] |
| | 2 | |
| | 3 | = Service = |
| | 4 | |
| | 5 | == PostgreSQL Server == |
| | 6 | |
| | 7 | 通过下载源码编译安装,没有修改编译选项。 |
| | 8 | |
| | 9 | || data path || owner/process user || |
| | 10 | || /data/pg_data/ || postgres || |
| | 11 | |
| | 12 | == Trac == |
| | 13 | |
| | 14 | 使用 yum 安装 python26,使用 easy_install 安装 trac 和 psycopg2 package; |
| | 15 | |
| | 16 | 修改过 /usr/bin/python /usr/bin/easy_install link: |
| | 17 | {{{ |
| | 18 | #!sh |
| | 19 | mv /usr/bin/python /usr/bin/python.bak; |
| | 20 | ln -s /usr/bin/python26 /usr/bin/python |
| | 21 | }}} |
| | 22 | |
| | 23 | || data path || process owner/user || |
| | 24 | || /data/trac_data || apache || |
| | 25 | |
| | 26 | 用户帐号密码使用 htpasswd 生成。 |
| | 27 | |
| | 28 | == Git Repositories == |
| | 29 | |
| | 30 | 使用 yum 安装。 |
| | 31 | |
| | 32 | || data path || process owner/user || |
| | 33 | || /data/git_data/ || git_user || |
| | 34 | |
| | 35 | 所有用户使用公钥 以 git_user 访问仓库。 |
| | 36 | |
| | 37 | 用户 git_user 加入 apache 组; |
| | 38 | 用户 apache 加入 git_user 组; |
| | 39 | |
| | 40 | 设置 Git post-receive hook 在用户 commit 后,同步到 Trac 数据库。 |