安裝 Rewiew Board太複雜,依賴不少,嫌麻煩有個一鍵安裝:https://bitnami.com/stack/reviewboard。下面是手動安裝過程python
$ yum install httpd mod_wsgi $ yum install mysql mysql-server mysql-devel $ yum install memcached $ yum install patch $ yum install subversion pysvn $ yum install rpm-build gcc-c++ gcc $ yum install python-setuptools $ yum install python-devel $ easy_install -U setuptools $ easy_install python-memcached $ easy_install mysql-python $ easy_install ReviewBoard
極有可能還要裝mysql
easy_install markdown easy_install docutils easy_install "django-pipeline<1.3" easy_install "Djblets<0.8" easy_install "django-evolution<0.7" easy_install "Django<1.5" easy_install ecdsa
memcached -d -m 64m -p 11211 //不要sudo service httpd start systemctl start mysqld.service
置編碼:http://www.awezome.net/1640/ 建立數據庫 reviewboard mysql> create database reviewboard default charset utf8 collate utf8_general_ci;
安裝linux
rb-site install /var/www/reviewboard
Domain = localhost Root Path = / simple media url=static/ upload Media URL = media/ Database Type = mysql Database Name = reviewboard Database server = localhost Database username = '' Database password = '' Cache Type = memcache Memcache Server = memcached://localhost:11211/ Webserver = apache Python loader = wsgi
配置c++
$ chown -R 777 /var/www/reviewboard/htdocs/media/uploaded $ chown -R 777 /var/www/reviewboard/data cp /var/www/reviewboard/conf/apache-wsgi.conf /etc/httpd/conf.d/reviewboard.conf
問題sql
Setup script exited with error: command 'gcc' failed with exit status 1 $ yum install rpm-build gcc-c++ gcc
pkg_resources.DistributionNotFound: Djblets $ easy_install --upgrade Djblets
Review Board is taking a nap 修改/etc/selinux/config 文件,將SELINUX=enforcing改成SELINUX=disabled .重啓