wget http://www.cmake.org/files/v2.8/cmake-2.8.4.tar.gz tar zxvf cmake-2.8.4.tar.gz cd cmake-2.8.4 ./bootstrap make make install cd .. wget http://ftp.gnu.org/gnu/bison/bison-2.5.tar.gz tar zxvf bison-2.5.tar.gz cd bison-2.5 ./configure make make install cd .. tar xvf /data/tmp/codecube/mysql-5.5.17.tar.gz cd mysql-5.5.17/ cmake -DCMAKE_INSTALL_PREFIX=/usr/local/mysql \ -DMYSQL_UNIX_ADDR=/tmp/mysql.sock \ -DDEFAULT_CHARSET=utf8 \ -DDEFAULT_COLLATION=utf8_general_ci \ -DWITH_EXTRA_CHARSETS:STRING=utf8,gbk,gb2312 \ -DWITH_MYISAM_STORAGE_ENGINE=1 \ -DWITH_INNOBASE_STORAGE_ENGINE=1 \ -DWITH_MEMORY_STORAGE_ENGINE=1 \ -DWITH_READLINE=1 \ -DENABLED_LOCAL_INFILE=1 \ -DMYSQL_USER=mysql make make install ln -s /usr/local/mysql/lib/libmysqlclient.so.18 /usr/lib/libmysqlclient.so.18 ln -s /usr/local/mysql/bin/* /usr/bin/ cd support-files/ cp my-large.cnf /etc/my.cnf cp mysql.server /etc/rc.d/init.d/mysqld cd ../../ chown -R mysql:mysql /usr/local/mysql chmod +w /usr/local/mysql chmod +x /etc/init.d/mysqld #service mysqld start 失败的话运行下面命令 #/usr/local/mysql/scripts/mysql_install_db --user=mysql --basedir=/usr/local/mysql --datadir=/usr/local/mysql/data &
设置开机启动
chkconfig --add mysqld chkconfig mysqld on
tar xvf /data/tmp/codecube/httpd-2.2.22.tar.gz cd httpd-2.2.22/ ./configure --prefix=/usr/local/apache2 -enable-dav -enable-so -enable-maintainer-mode -enable-rewrite make make install cd ../../
编辑httpd.conf
User daemon Group daemon DocumentRoot "/usr/local/apache2/htdocs" <Directory "/usr/local/apache2/htdocs">改为
User www Group www DocumentRoot "/data/svn" <Directory "/data/svn">服务配置
vim /usr/local/apache2/bin/apachectl在第二行添加两行
# chkconfig: 2345 85 15 # description: Activates/Deactivates Apache Web Server复制脚本文件
ln -s /usr/local/apache2/bin/apachectl /etc/init.d/
设置开机启动
chkconfig --add httpd chkconfig httpd on
wget http://modwsgi.googlecode.com/files/mod_wsgi-2.5.tar.gz tar zxfv mod_wsgi-2.5.tar.gz cd mod_wsgi-2.5 ./configure make make install cd .. cat >> /usr/local/apache2/conf/httpd.conf <<"EOF" LoadModule wsgi_module modules/mod_wsgi.so EOF
yum install subversion
yum install python-setuptools easy_install -U setuptools yum install python-devel easy_install python-memcached yum install patch easy_install ReviewBoard easy_install mysql-python yum install subversion easy_install django-storages
rb-site install /data/www/reviews.example.com chown -R www:www /data/www/reviews.example.com cat >> /usr/local/apache2/conf/httpd.conf <<"EOF" Include /data/www/reviews.example.com/conf/apache-wsgi.conf EOF
http://www.reviewboard.org/docs/manual/dev/admin/installation/linux/