【部署】bitnami快速部署mantis、gerrit
来源:互联网 发布:推广产品的软件 编辑:程序博客网 时间:2024/06/05 06:31
搭建环境:腾讯云ECS + ubuntu14.04 64位LTS系统
1. 下载安装包
mantis
Gerrit
sudo curl -L https://downloads.bitnami.com/files/stacks/mantis/1.3.1-1/bitnami-mantis-1.3.1-1-linux-x64-installer.run -o bitnami-mantis-1.3.1-1-linux-x64-installer.runsudo curl -L http://downloads.bitnami.com/files/download/gerrit/bitnami-gerrit-2.9.1-0-linux-x64-installer.run -o bitnami-gerrit-2.9.1-0-linux-x64-installer.run
2. 安装
chmod +x bitnami-mantis-1.3.1-1-linux-x64-installer.run.run./ bitnami-mantis-1.3.1-1-linux-x64-installer.run.run
安装前需要先停止mysql,sudo service mysql stop,bitnami不会造成依赖软件冲突,但是需要注意端口上的冲突。本机mysql 默认3306端口,那么安装可以改为3307。
安装gerrit之前需要安装好jdk。
chmod +x gerrit/bitnami-gerrit-2.9.1-0-linux-x64-installer.run./ gerrit/bitnami-gerrit-2.9.1-0-linux-x64-installer.run
本机apache 8080,安装时修改为18000。本机ssl port 是8443,修改为8444。本机mysql是3306,修改为3310 port。
配置smtp邮箱,输入邮箱帐号、密码、smtp服务器地址。以QQ邮箱为例。
3. 启动
#启动mantis ./ctlscript.sh (start|stop|restart)./ctlscript.sh (start|stop|restart) mysql./ctlscript.sh (start|stop|restart) tomcat#启动gerrit ./ctlscript.sh (start|stop|restart)./ctlscript.sh (start|stop|restart) mysql./ctlscript.sh (start|stop|restart) apache./ctlscript.sh (start|stop|restart) gerrit
4. 遇到的问题
- 如果服务器内存不足1G,一定要Create A Swap File。 It’s recommended that swap space should be equal to or bigger than the amount of physical memory (RAM). If you have less than 1 GB of RAM, create at least 1 GB of swap space. Follow these steps:
sudo dd if=/dev/zero of=/mnt/swap.0 bs=1024 count=1048576 sudo mkswap /mnt/swap.0 sudo su echo "/mnt/swap.0 swap swap defaults 0 0" >> /etc/fstab swapon /mnt/swap.0 sudo swapon -s su ubuntu
gerrit apache port 不能为8081,实际测试无法访问,修改为18000就可以了。
安装完成后想修改配置怎么办? 直接修改config文件,gerrit-2.9.1-0/apps/gerrit/etc/gerrit.config
- How To Configure The Apache Tomcat Server? The main Apache Tomcat configuration file is at installdir/apache-tomcat/conf/server.xml. Once Apache Tomcat starts, it will create several log files in the installdir/apache-tomcat/logs directory. The main log file is the catalina.out file where you can find error messages.
- How To Change The Apache Tomcat Port? Apache Tomcat will listen for requests on port 8080. To use a different port, edit the server.xml file and modify the value specified in the Port directive.
before:<!-- <Connector port="8080" protocol="HTTP/1.1" connectionTimeout="20000" redirectPort="8443"/>-->after:<Connector port="8090" URIEncoding="UTF-8" protocol="HTTP/1.1"connectionTimeout="20000" redirectPort="8443" />
- 怎么修改端口?server.xml修改port,同时http.conf修改listen port。rtk测试机器tomcat httpd port : 8091,mysql port : 3307,ssl port : 8443。lamp httpd port : 8092,mysql port : 3308。rtk tomcat 第二次安装参数设置:
这个配置安装好像运行不起来SSL Port [8443]: 8445MySQL Server port [3306]: 3312Web Server domain: [http://192.168.133.128/]: 192.168.133.128Tomcat Shutdown Port: [8010]: Tomcat SSL Port [8445]: Tomcat AJP Port: [8016]:
- 未完待续
5. 参考教程
bitnami tomcat docs
search port
0 0
- 【部署】bitnami快速部署mantis、gerrit
- Mantis工具快速部署
- Bitnami快速部署Sugarcrm等应用
- testlink+mantis环境部署
- 1、通过 BitNami 部署 RedMine
- Gerrit 服务器部署
- gerrit 部署手册
- gerrit高可用部署
- 使用xampp安装部署mantis
- Git, TortoiseGit, Gerrit安装部署
- 如何在Linux上部署gerrit 服务?
- 基于bitnami 部署openedx平台,应用自定义主题。
- 懒部署 VS 快速部署
- [部署Mantis]用Administrator注册新用户时设置密码
- 快速部署axis
- weblogic快速部署
- ubuntu 快速部署openvpn
- mysql快速部署
- 从这里开始
- 当活动被回收,再次启动时使数据不丢失
- 美团购买框悬浮效果
- 【15.93%】【codeforces 672D】Robin Hood
- 当在64位linux编译uboot的时候会提示很多so没有
- 【部署】bitnami快速部署mantis、gerrit
- monkey测试环境搭建
- Java中的访问控制符与修饰符浅析
- 421. Maximum XOR of Two Numbers in an Array详解
- java图片文字识别技术
- 【栈应用】迷宫问题
- 在ubuntu14.04上安装mysql
- Redis的哨兵机制
- Spyder3更新和更新后碰到的图标变化问题