In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
Environmental preparation:
Aliyun ecs machine, 2-core 4G100G disk, centos7.6
Software requirements:
Httpd,python,mysql,memcached,ReviewBoard
Installation environment:
Yum install wget vim lrzsz unzip git-y
Update system package
Yum updateyum-y install epel-releaseyum install initscripts-yyum-y install python-pipyum install python-setuptools-yyum install python-devel-yyum install gcc python-devel libffi-devel openssl-devel patch-y
Install httpd
Yum install httpd-yyum install mod_wsgi-y
Install the database
Yum install mysql-devel-yyum install mysql-server-yyum install mariadb*-y
Install memcache
Yum install memcached-yyum install python-memcached-y
Install reviewboard
Pip install-U pip setuptoolspip install mysql-pythonyum install ReviewBoard-y # # pip install ReviewBoard## easy_install mercurial easy_install P4PythonInstaller
Create a database
Systemctl start mariadbmysql > 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
Create a site
Rb-site install / var/www/reviewboardDomain Name: 192.168.4.101 (native ip as a web site) Root Path [/]: / Database Type: mysql Database Name [reviewboard]: reviewboard (using the created database) 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: * (set login page admin Password) E-Mail Address: 111111111@qq.com Company/Organization Name (optional): * (you can fill in your own logo) Allow us to collect support data? [YBO]: (you can enter directly)
Configuration modification
/ var/www/reviewboard/conf/settings_local.py ALLOWED_HOSTS= ['*] # # Let web accept access to 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
Start the service
Service memcached startservice httpd restart
Visit the page: http://192.168.4.101/
Access using https and domain name:
Create the certificate directory mkdir-p / etc/apache2/ssl/cd / etc/apache2/ssl/rz upload the certificate [root@localhost] # ll / etc/apache2/ssl/total 8 RWMurashi-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 install mod_sslyum install mod_ssl openssl-ya2enmod ssla2ensite default-ssl
Modify httpd configuration
AllowOverride All RewriteEngine on RewriteCond% {SERVER_PORT}! ^ 443$ RewriteRule ^ (. *)? $https://%{SERVER_NAME}%{REQUEST_URI} [L R] 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/ " AllowOverride All Options-Indexes + FollowSymLinks Require all granted # Prevent the server from processing or allowing the rendering of # certain file types. 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 php_flag engine off # Force all uploaded media files to download. Header set Content-Disposition "attachment" # 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"
Restart httpd
Systemctl restart httpd
Browser access domain name:
Visit reviewboard.superlee.com automatic Redirect 443
Attached: comprehensive source history record
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
Reference link: https://blog.csdn.net/zhichaosong/article/details/80947011
Reference link: https://blog.csdn.net/fengyishang/article/details/50341643
Page management: https://blog.csdn.net/csfreebird/article/details/7561890
Page management official website reference document: https://www.reviewboard.org/docs/manual/3.0/admin/
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.