codereview工具--ReviewBoard

環(huán)境準(zhǔn)備:

創(chuàng)新互聯(lián)是一家專業(yè)的成都網(wǎng)站建設(shè)公司,我們專注網(wǎng)站制作、成都網(wǎng)站設(shè)計(jì)、網(wǎng)絡(luò)營(yíng)銷、企業(yè)網(wǎng)站建設(shè),買鏈接,一元廣告為企業(yè)客戶提供一站式建站解決方案,能帶給客戶新的互聯(lián)網(wǎng)理念。從網(wǎng)站結(jié)構(gòu)的規(guī)劃UI設(shè)計(jì)到用戶體驗(yàn)提高,創(chuàng)新互聯(lián)力求做到盡善盡美。

阿里云ecs機(jī)器,2核4G100G盤(pán),centos7.6

軟件需求:

httpd,python,MySQL,memcached,ReviewBoard

安裝環(huán)境:

yum?install?wget?vim?lrzsz?unzip?git?-y

更新系統(tǒng)包

yum?update

yum?-y?install?epel-release

yum?install?initscripts?-y

yum?-y?install?python-pip

yum?install?python-setuptools?-y

yum?install?python-devel?-y

yum?install?gcc?python-devel?libffi-devel?openssl-devel?patch?-y

安裝httpd

yum?install?httpd?-y

yum?install?mod_wsgi?-y

安裝數(shù)據(jù)庫(kù)

yum?install?mysql-devel?-y

yum?install?mysql-server?-y

yum?install?mariadb*?-y

安裝?memcache

yum?install?memcached?-y

yum?install?python-memcached?-y

安裝reviewboard

pip?install?-U?pip?setuptools

pip?install?mysql-python

yum?install?ReviewBoard??-y????##pip?install?ReviewBoard

##?easy_install?mercurial???easy_install?P4PythonInstaller

創(chuàng)建數(shù)據(jù)庫(kù)

systemctl?start?mariadb
mysql?>?create?database?reviewboard?default?charset?utf8?collate?utf8_general_ci;
mysql?>?grant?all?privileges?on?reviewboard.*?to?'reviewboard'@'127.0.0.1'?identified?by?'reviewboard';
mysql?>?grant?all?privileges?on?reviewboard.*?to?'reviewboard'@'%'?identified?by?'reviewboard';
mysql?>?flush?privileges;

創(chuàng)建站點(diǎn)

rb-site?install?/var/www/reviewboard
Domain?Name:?192.168.4.101(本機(jī)ip作為web站點(diǎn))?
Root?Path?[/]:?/?
Database?Type:?mysql?
Database?Name?[reviewboard]:?reviewboard?(使用創(chuàng)建的數(shù)據(jù)庫(kù))?
Database?Server?[localhost]:?127.0.0.1?
Database?Username:?reviewboard?
Database?Password:?reviewboard?
Cache?Type:?memcached?
Memcache?Server?[localhost:11211]:?localhost:11211?
Username?[admin]:?admin?
Password:?********?(設(shè)置登錄頁(yè)面admin密碼)?
E-Mail?Address:?111111111@qq.com?
Company/Organization?Name?(optional):?*?(可以填寫(xiě)自己的標(biāo)識(shí))
Allow?us?to?collect?support?data??[Y/n]:?(可以直接回車)

配置修改

/var/www/reviewboard/conf/settings_local.py?
ALLOWED_HOSTS=[?'*']????##讓web接受訪問(wèn)

chown?-R?apache:apache?/var/www/reviewboard/

cp?/var/www/reviewboard/conf/apache-wsgi.conf?/etc/httpd/conf.d/

cat?/var/www/reviewboard/conf/apache-wsgi.conf?>>?/etc/httpd/conf/httpd.conf

啟動(dòng)服務(wù)

service?memcached?start

service?httpd?restart

訪問(wèn)頁(yè)面:http://192.168.4.101/

codereview工具--ReviewBoard

codereview工具--ReviewBoard

codereview工具--ReviewBoard

使用https和域名訪問(wèn):

創(chuàng)建證書(shū)目錄
mkdir?-p?/etc/apache2/ssl/
cd?/etc/apache2/ssl/
rz??上傳證書(shū)
[root@localhost?~]#?ll?/etc/apache2/ssl/
total?8
-rw-r--r--?1?root?root?1679?Nov?13?14:10?superlee.com.key
-rw-r--r--?1?root?root?3912?Nov?13?14:10?superlee.com.pem
安裝mod_ssl
yum?install?mod_ssl?openssl?-y
a2enmod?ssl
a2ensite?default-ssl

修改httpd配置

<Directory?/>
????AllowOverride?All
????RewriteEngine?on
????RewriteCond?%{SERVER_PORT}?!^443$
????RewriteRule?^(.*)?$?https://%{SERVER_NAME}%{REQUEST_URI}?[L,R]
</Directory>


<VirtualHost?*:443>
????????ServerName?reviewboard.tuosuperlee.com
????????DocumentRoot?"/var/www/reviewboard/htdocs"
????????SSLEngine?on
????????SSLCertificateFile??????/etc/apache2/ssl/superlee.com.pem
????????SSLCertificateKeyFile?/etc/apache2/ssl/superlee.com.key
????????#?Error?handlers
????????ErrorDocument?500?/errordocs/500.html

????????WSGIPassAuthorization?On
????????WSGIScriptAlias?"/"?"/var/www/reviewboard/htdocs/reviewboard.wsgi/"

????????<Directory?"/var/www/reviewboard/htdocs">
????????????????AllowOverride?All
????????????????Options?-Indexes?+FollowSymLinks
????????????????Require?all?granted
????????</Directory>

????????#?Prevent?the?server?from?processing?or?allowing?the?rendering?of
????????#?certain?file?types.
????????<Location?"/media/uploaded">
????????????????SetHandler?None
????????????????Options?None

????????????????AddType?text/plain?.html?.htm?.shtml?.php?.php3?.php4?.php5?.phps?.asp
????????????????AddType?text/plain?.pl?.py?.fcgi?.cgi?.phtml?.phtm?.pht?.jsp?.sh?.rb

????????????????<IfModule?mod_php5.c>
????????????????????????php_flag?engine?off
????????????????</IfModule>

????????????????#?Force?all?uploaded?media?files?to?download.
????????????????<IfModule?mod_headers.c>
????????????????????????Header?set?Content-Disposition?"attachment"
????????????????</IfModule>
????????</Location>

????????#?Alias?static?media?requests?to?filesystem
????????Alias?/media?"/var/www/reviewboard/htdocs/media"
????????Alias?/static?"/var/www/reviewboard/htdocs/static"
????????Alias?/errordocs?"/var/www/reviewboard/htdocs/errordocs"
????????Alias?/favicon.ico?"/var/www/reviewboard/htdocs/static/rb/images/favicon.png"
</VirtualHost>

重啟httpd

systemctl?restart?httpd

瀏覽器訪問(wèn)域名:

?
訪問(wèn)reviewboard.superlee.com?自動(dòng)跳轉(zhuǎn)443

codereview工具--ReviewBoard

附:綜合源history記錄

????2??df?-h
????3??yum?install?wget?vim?lrzsz?unzip?-y
????4??yum?install?git?-y
????5??yum?install?httpd?-y
????6??yum?update
????7??yum?install?mod_wsgi?-y
????8??ll?/etc/httpd/conf.d/wsgi.conf
????9??yum?install?initscripts
???10??yum?-y?install?epel-release
???11??yum?-y?install?python-pip
???12??yum?install?python-setuptools
???13??yum?install?python-devel
???14??yum?install?mod_wsgi
???15??yum?install?memcached?-y
???16??yum?install?gcc?python-devel?libffi-devel?openssl-devel?patch?-y
???17??yum?install?mysql-devel?
???18??yum?install?mysql-server?
???19??yum?install?mariadb*
???20??pip?install?-U?pip?setuptools
???21??pip?install?mysql-python
???22??mysql
???23??systemctl?start?mariadb
???24??mysql
???25???yum?install?ReviewBoard
???26???pip?install?ReviewBoard
???27??yum?install?git-core
???28??easy_install?mercurial
???29??easy_install?P4PythonInstaller
???30??rb-site?install?/var/www/reviewboard
???31??chown?-R?apache:apache?/var/www/reviewboard/
???32??cp?/var/www/reviewboard/conf/apache-wsgi.conf?/etc/httpd/conf.d/
???33??cat?/var/www/reviewboard/conf/apache-wsgi.conf?>>?/etc/httpd/conf/httpd.conf
???34??service?memcached?start
???35??service?httpd?restart
???36??history?
???37??ll?/etc/apache2/ssl/
???38??ll?/etc/apache2/ssl
???39??ll?/etc/apache2/
???40??mkdir?-p?/etc/apache2/ssl/
???41??cd?/etc/apache2/ssl/
???42??rz
???43??ll
???44??yum?install?mod_ssl?openssl
???45??a2enmod?ssl
???46??a2ensite?default-ssl
???47??vi?/etc/httpd/conf/httpd.conf?
???48??systemctl?restart?httpd
???49??vi?/var/www/reviewboard/conf/settings_local.py
???50??systemctl?restart?httpd

參考鏈接:?https://blog.csdn.net/zhichaosong/article/details/80947011

參考鏈接:https://blog.csdn.net/fengyishang/article/details/50341643

頁(yè)面管理:https://blog.csdn.net/csfreebird/article/details/7561890

頁(yè)面管理官網(wǎng)參考文檔:https://www.reviewboard.org/docs/manual/3.0/admin/

本文標(biāo)題:codereview工具--ReviewBoard
標(biāo)題路徑:http://muchs.cn/article28/ihjdcp.html

成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供電子商務(wù)、云服務(wù)器、關(guān)鍵詞優(yōu)化、網(wǎng)站建設(shè)、網(wǎng)站導(dǎo)航、

廣告

聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請(qǐng)盡快告知,我們將會(huì)在第一時(shí)間刪除。文章觀點(diǎn)不代表本網(wǎng)站立場(chǎng),如需處理請(qǐng)聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時(shí)需注明來(lái)源: 創(chuàng)新互聯(lián)

微信小程序開(kāi)發(fā)