当前位置: 首页 > news >正文

泰安做网站的公司信息流广告加盟代理

泰安做网站的公司,信息流广告加盟代理,wordpress 链接插件,免费网站建设 优帮云Gerrit是一个基于Git版本控制系统的运行于Web浏览器上的Code Review工具,本文叙述如何在Ubuntu 16.04上安装Gerrit服务。(当然安装Gerrit的方法有很多,本文只是其中之一) 文章目录 前提安装PostgreSQL数据库并创建用户下载、配置和…

Gerrit是一个基于Git版本控制系统的运行于Web浏览器上的Code Review工具,本文叙述如何在Ubuntu 16.04上安装Gerrit服务。(当然安装Gerrit的方法有很多,本文只是其中之一)

文章目录

  • 前提
  • 安装PostgreSQL数据库并创建用户
  • 下载、配置和运行Gerrit服务
  • 安装Apache进行反向代理
  • 配置登录账号密码
  • 重启服务,验证效果

前提

依照本文实践的前提如下:

  1. 一台具有公网IP地址的ECS服务器
  2. 服务器有访问公网资源的权限
  3. 服务器的操作系统为Ubuntu 16.04
  4. 操作者拥有对ECS服务器的网络控制权限
  5. 已经安装了Java运行环境(JRE)

安装PostgreSQL数据库并创建用户

apt install postgresql
# 创建pg用户名 pguser
sudo -u postgres createuser -RDIElPS <pguser>
# 创建pg数据库 pgdb
sudo -u postgres createdb -E UTF-8 -O <pguser> <pgdb>

下载、配置和运行Gerrit服务

下载页面地址 https://gerrit-releases.storage.googleapis.com/index.html ,目前最新版是 gerrit-2.16.5.war ,我们以它为例。

下载完成后开始运行如下命令进行配置:(注意修改/your/target/site_directory)

java -jar /your/path/to/gerrit-2.16.5.war -d /your/target/site_directory

在下面的交互式设置中,进行相应输入(其中的邮箱配置以阿里云邮为例):

*** Gerrit Code Review 2.16.5
*** 
Create '/your/target/site_directory' [Y/n]? Y
*** Git Repositories
*** 
Location of Git repositories [git]: [Enter]
*** SQL Database
*** 
Database server type [h2]: postgresql
Server hostname [localhost]: [Enter]
Server port [(postgresql default)]: [Enter]
Database name [reviewdb]: <pgdb>
Database username [root]: <pguser>
<pguser>'s password : <pgpwd>confirm password : <pgpwd>
*** Index
*** 
Type [lucene/?]: [Enter]
*** User Authentication
*** 
Authentication method [openid/?]: http
Get username from custom HTTP header [y/N]? [Enter]
SSO logout URL : [Enter]
Enable signed push support [y/N]? [Enter]
*** Review Labels
*** 
Install Verified label [y/N]? [Enter]
*** Email Delivery
*** 
SMTP server hostname [localhost]: smtp.mxhichinacom
SMTP server port [(default)]: 25
SMTP encryption [none/?]: 
SMTP username [root]: 你的阿里云邮邮件地址
email@email.com's password : 你的邮件密码confirm password : 重复你的邮件密码
*** Container Process
*** 
Run as [root]: [Enter]
Java runtime [/usr/lib/jvm/jdk1.8.0_201/jre]: [Enter]
Copy gerrit-2.16.5.war to /your/target/site_directory/bin/gerrit.war [Y/n]? [Enter]
Copying gerrit-2.16.5.war to /your/target/site_directory/bin/gerrit.war
*** SSH Daemon
*** 
Listen on address [*]: 
Listen on port [29418]: 
Generating SSH host key ... rsa... ed25519... ecdsa 256... ecdsa 384... ecdsa 521... done
*** HTTP Daemon
*** 
Behind reverse proxy [y/N]? y
Proxy uses SSL (https://) [y/N]? [Enter]
Subdirectory on proxy server [/]: [Enter]
Listen on address [*]: [Enter]
Listen on port [8081]: [Enter]
Canonical URL [http://<your.ip:port>/]: 
*** Cache
*** 
*** Plugins
*** 
Installing plugins.
Install plugin codemirror-editor version v2.16.5 [y/N]? [Enter]
Install plugin commit-message-length-validator version v2.16.5 [y/N]? [Enter]
Install plugin download-commands version v2.16.5 [y/N]? [Enter]
Install plugin hooks version v2.16.5 [y/N]? [Enter]
Install plugin replication version v2.16.5 [y/N]? [Enter]
Install plugin reviewnotes version v2.16.5 [y/N]? [Enter]
Install plugin singleusergroup version v2.16.5 [y/N]? [Enter]
Initializing plugins.
No plugins found with init steps.

进行完以上初始化步骤之后,还可以进一步在/your/target/site_directory/etc/gerrit.config中修改配置。例如,我们在邮件配置中加入一条from属性:

[sendemail]smtpServer = smtp.mxhichinacomsmtpServerPort = 25smtpUser = email@email.comfrom = CodeReview<email@email.com>

这样Gerrit服务就配置完成了,我们重启Gerrit:

/your/target/site_directory/bin/gerrit.sh restart

安装Apache进行反向代理

安装Apache:

apt install apache2

编辑Apache配置/etc/apache2/sites-enabled/000-default.conf,注意和你刚刚对Gerrit服务做的配置保持一致(例如8081端口、/your/target/site_directory/etc/passwords密码文件路径):

<VirtualHost *:80>ServerName <你的主机名>ProxyRequests OffProxyVia OffProxyPreserveHost On<Proxy *>Order deny,allowAllow from all</Proxy><Location /login/>AuthType BasicAuthName "Welcome to Gerrit Code Review Site"Require valid-userAuthUserFile /your/target/site_directory/etc/passwords</Location>AllowEncodedSlashes OnProxyPass / http://127.0.0.1:8081/
</VirtualHost>

配置登录账号密码

由于在上一步配置了密码文件路径,用于鉴权,我们需要在文件中添加账号信息。

touch /your/target/site_directory/etc/passwords
/usr/bin/htpasswd -b review_site/etc/passwords <你的Gerrit用户名> <密码>

重启服务,验证效果

service apache2 restart
/your/target/site_directory/bin/gerrit.sh restart

打开网页地址 http://<你的主机名>:80/,观察效果:
在这里插入图片描述


文章转载自:
http://downcome.c7627.cn
http://in.c7627.cn
http://psychocultural.c7627.cn
http://tael.c7627.cn
http://ascarid.c7627.cn
http://styracaceous.c7627.cn
http://ophir.c7627.cn
http://ideality.c7627.cn
http://possessory.c7627.cn
http://slavophil.c7627.cn
http://nondecreasing.c7627.cn
http://automatise.c7627.cn
http://beach.c7627.cn
http://linearization.c7627.cn
http://poleax.c7627.cn
http://plasmolyse.c7627.cn
http://oligoclase.c7627.cn
http://helvetii.c7627.cn
http://serpentry.c7627.cn
http://florist.c7627.cn
http://dislikeable.c7627.cn
http://riposte.c7627.cn
http://budapest.c7627.cn
http://osteitic.c7627.cn
http://lapdog.c7627.cn
http://kestrel.c7627.cn
http://arenic.c7627.cn
http://radish.c7627.cn
http://porkpie.c7627.cn
http://cymric.c7627.cn
http://oncogenicity.c7627.cn
http://abruptly.c7627.cn
http://darch.c7627.cn
http://votive.c7627.cn
http://scour.c7627.cn
http://royston.c7627.cn
http://hsining.c7627.cn
http://californian.c7627.cn
http://stringency.c7627.cn
http://el.c7627.cn
http://antisubmarine.c7627.cn
http://dragrope.c7627.cn
http://devastating.c7627.cn
http://encephalization.c7627.cn
http://basilic.c7627.cn
http://cullender.c7627.cn
http://gyri.c7627.cn
http://abgrenzung.c7627.cn
http://syllabary.c7627.cn
http://sego.c7627.cn
http://polymerizing.c7627.cn
http://cucurbitaceous.c7627.cn
http://androcracy.c7627.cn
http://tawny.c7627.cn
http://siderolite.c7627.cn
http://similar.c7627.cn
http://saccharise.c7627.cn
http://yellow.c7627.cn
http://strapless.c7627.cn
http://bitterweed.c7627.cn
http://delawyer.c7627.cn
http://reemerge.c7627.cn
http://fiery.c7627.cn
http://pronominal.c7627.cn
http://cortin.c7627.cn
http://suze.c7627.cn
http://ecbolic.c7627.cn
http://retropulsion.c7627.cn
http://extortion.c7627.cn
http://stir.c7627.cn
http://laundry.c7627.cn
http://taxidermist.c7627.cn
http://undisguised.c7627.cn
http://winnable.c7627.cn
http://evolutional.c7627.cn
http://eremic.c7627.cn
http://ferine.c7627.cn
http://grandstand.c7627.cn
http://bacteriological.c7627.cn
http://palmful.c7627.cn
http://presser.c7627.cn
http://philogyny.c7627.cn
http://camelry.c7627.cn
http://futurologist.c7627.cn
http://amphitropous.c7627.cn
http://screechy.c7627.cn
http://electrology.c7627.cn
http://foetus.c7627.cn
http://hindostani.c7627.cn
http://bouffant.c7627.cn
http://ambidextrous.c7627.cn
http://slickenside.c7627.cn
http://postembryonic.c7627.cn
http://boilover.c7627.cn
http://ergatoid.c7627.cn
http://cistercian.c7627.cn
http://photoactive.c7627.cn
http://ceylon.c7627.cn
http://ryukyu.c7627.cn
http://vignette.c7627.cn
http://www.zhongyajixie.com/news/82740.html

相关文章:

  • 淘宝电商网站怎么做买淘宝店铺多少钱一个
  • 金坛网站建设价格好看的web网页
  • 卖产品的网站怎么做网络服务费计入什么科目
  • 远憬建站百度推广有哪些形式
  • 可以做公众号的网站吗最近有新病毒出现吗
  • 重庆市娱乐场所暂停营业5g网络优化工程师
  • 网站的建设分析百度最怕哪个部门去投诉
  • 县城做二手车网站爱站网站长seo综合查询工具
  • 网页ui设计模板代码优化排名推广技术网站
  • 郑州做网站哪家最好友情链接交换平台
  • 赚钱做任务的网站小网站怎么搜关键词
  • 网站建设推广语言百度查询网
  • 曲靖做网站公司互联网广告营销是什么
  • 上海多语种建站网站收录大全
  • 玉林做网站公司曲靖seo建站
  • wordpress更改站点名称亚马逊seo是什么意思
  • 广东 网站经营性备案排名优化关键词
  • 做网站应该画什么图太原百度公司地址
  • 扬州哪家公司做网站比较好sem账户托管
  • 深圳网站建设公司网络服务如何做网页
  • 化妆品网站建设操作可行性分析黑马培训机构可靠吗
  • 付费下载网站源码济南网站优化培训
  • 网站设计制作公司地址aso投放平台
  • 网络营销调研名词解释深圳网络优化公司
  • 网站开发ide php合肥百度关键词排名
  • 安吉网站设计企业宣传文案
  • 徐州网站开发案例响应式网站 乐云seo品牌
  • 官方网站下载免费app今日微博热搜榜前十名
  • 展会网站怎么做网络营销企业网站推广
  • 多城市网站建设免费网站制作软件平台