Review Board on Ubuntu System(I)Installing and create sites

本文详细介绍了如何在Ubuntu系统上通过安装Python、memcached等依赖,使用Easy Install工具安装ReviewBoard,并创建站点的过程。同时,还涉及了数据库配置、权限设置、修改配置文件以及设置自定义域名等步骤。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

Review Board on Ubuntu System(I)Installing and create sites

1. Installing
1.1. Installing Python Setuptools
>sudo apt-get install python-setuptools

upgrade the tool
>sudo easy_install -U setuptools

1.2. Installing Python Development Headers
>sudo apt-get install python-dev

1.3. Installing memcached
>sudo apt-get install memcached
>sudo easy_install python-memcached

1.4. Installing patch
>sudo apt-get install patch

1.5. Installing Review Board
>easy_install ReviewBoard
This will automatically download and install the latest stable release of Review Board and the required
versions of its core dependencies.

1.6. Installing Database Bindings
mysql is already on my system.
>sudo easy_install mysql-python

1.7. Installing Source Control Components
Git
>sudo apt-get install git-core

1.8. Installing Amazon S3 Support(optional)
>sudo easy_install django-storages

1.9. Installing PyLucene(optional)
>sudo apt-get install pylucene

2. Creating Sites
2.1 database
prepare the database, connect to my local mysql and create a schema named 'reviewboard'

2.2 Beginning Installation
>sudo rb-site install /var/www/reviews.sillycat.com

2.3 Changing Permissions
>sudo chown -R www-data /var/www/reviews.sillycat.com/htdocs/media/uploaded

2.4 configuration in apache
/var/www/reviews.sillycat.com/conf/
>cd /etc/apache2/sites-available
>cp /var/www/reviews.sillycat.com/conf/apache-modpython.conf reviews.sillycat.com.conf
>cd ../sites-enabled
>sudo ln -s ../sites-available/reviews.sillycat.com.conf

Install some modules
>sudo apt-get install libapache2-mod-python libapache2-mod-python-doc
>sudo root
>/etc/init.d/apache2 restart

>vi /etc/hosts
127.0.0.1 reviews.sillycat.com

>vi /etc/apache2/sites-enabled/reviews.sillycat.com.conf
change the port from 80 to 81. Because I have install many other web servers on my system. 80 is taken by nignx.

>vi /etc/apache2/ports.conf
add 2 lines there
NameVirtualHost *:81
Listen 81
NameVirtualHost *:86
Listen 86

visit this URL:
http://reviews.sillycat.com:86/reviews/

references:
http://blog.youkuaiyun.com/Uranuslei/archive/2009/02/23/3926704.aspx
http://www.reviewboard.org/
http://www.reviewboard.org/docs/manual/dev/admin/installation/linux/
http://www.reviewboard.org/docs/manual/dev/admin/sites/creating-sites/#creating-sites
http://blog.youkuaiyun.com/Uranuslei/article/details/3926704
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值