linux+python+django+reviewboard

system:

linux: centos: 6.4


0. install :

http://www.reviewboard.org/docs/manual/1.7/admin/installation/linux/


1.
yum install python-setuptools python-devel


2. add epel source file epel-release-6-8.noarch [14 KiB]

from: http://mirrors.hustunique.com/epel/6/i386/repoview/epel-release.html


3. yum install ReviewBoard


4. install apache

yum install httpd httpd-devel


5. install sql:

yum install mysql mysql-server mysql-devel

sudo service mysqld start

###
创建数据库、数据库用户for ReviewBoard(这块要注意数据库的字符集设置,默认是UTF-8,如果你要用其他中文字符编码标准,这里就需要显式指定,查查mysql的Manual吧)
mysql -u root -p  /* 用root用户登录 */
mysql> create database reviewboard;
Query OK, 1 row affected (0.00 sec)
mysql> create user 'reviewboard'@'localhost' identified by 'reviewboard';  /* 前一个reviewboard是访问数据库的用户名,后一个reviewboard是密码 */
Query OK, 0 rows affected (0.00 sec)
mysql> grant all on reviewboard.* to 'reviewboard'@'localhost';  /* 前一个reviewboard是数据库的名字,而后一个reviewboard则是访问数据库的用户名 */
Query OK, 0 rows affected (0.00 sec)
mysql> exit 

or:

 easy_install psycopg2

psql - postgres
create user abc with password 'abc';
create database reviewboard owner abc;
grant all privileges on reviewboard to abc;



6. configure apache.

If you have a sites-available directory in your Apache configuration directory (for example, /etc/apache2/sites-available, then you should rename your configuration file to match your site (e.g., reviews.example.com.conf) and put it in that directory. Then create a symbolic link from that file to the sites-enableddirectory. This is the most common setup on Debian or Ubuntu-based distributions. So for example:

$ cd /etc/apache2/sites-available
$ cp /var/www/reviews.example.com/conf/apache-wsgi.conf reviews.example.com.conf
$ cd ../sites-enabled
$ ln -s ../sites-available/reviews.example.com.conf .

If you do not have a sites-available or sites-enabled directory, you’ll need to embed the configuration file in your global Apache configuration file (usually/etc/httpd/httpd.conf or /etc/httpd/apache2.conf).

/var/www/reviews.example.com/conf/apache-wsgi.conf
============ IMPORTANT ============ 

IF NO sites-available, In that case, you should do: manually copy content of /var/www/reviews.example.com/conf/apache.wsgi.conf and PASTE them into file: /etc/httpd/http.conf/.

then run /etc/init.d/httpd restart.

cp /var/www/reviews.example.com/conf/apache-wsgi.conf  /etc/httpd/conf.d/
sudo service httpd restart


7. you should see your reviewboard website now.



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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值