hipchat因为官方即将废弃,所以现在转用zulip, 11.4k的star . 需要ubuntu server .
hipchat是atlassian的收费但即将不支持的聊天产品, 但是能私服使用.so..盘它.
安装Hipchat (server):
- 下载ova模板(新建虚拟机使用ova部署,直接给下载地址或者上传文件,都可以)
https://s3.amazonaws.com/hipchat-server-stable/HipChat.ova - 注意安装选项里.如果IP校验不过,那么IP选项使用DHCP.
- 部署完成后开启电源.
- 启动完成后,也就是安装完成了.
- 修改IP,掩码,网关,DNS
hipchat network -m static -i 192.168.89.103 -s 255.255.254.0 -g 192.168.88.1 -r 192.168.89.100
重置ubantu的root密码:
- 重启系统.按住shift, 直到进入grub菜单
- 选择recovery mode , 有多个就选择最高版本那个吧. 按enter确认
- 选择root Root Drop to root shell prompt 这一行. 按e确认,不要按enter
- 然后找到linux /boot/vmlinuz-....... 这一行, 末尾是ro recovery nomodeset
- 改成 quiet splash rw init=/bin/bash
- 然后 ctrl +x 或者 F10重启
- 重启以后会进入bash命令行
- 然后修改root密码
passwd root
输入两边密码即可 - 允许root 的 ssh和sftp
vim /etc/ssh/sshd_config
vim /hipchat-scm/chef-repo/cookbooks/openssh/templates/default/sshd_config.erb - 都是修改PermitRootLogin 为 yes ,然后去掉DenyUsers里的root,加入到AllowUsers 里.
至此 可以重启系统.然后使用root登录了.
研(p)究(j)它:
- 访问hipchat. 同意许可以后. 到了填写license的页面. 记录下 SERVER ID
2.1: 不用研(p)究(j)crowd,OVA自带的crowd是已经授权了的. 我在这坑了好久...
2.2: 如果不能成功,请研(p)究(j)crowd的jar, 但请保留原来的jar.等研(p)究(j)成功后还需要替换回去.要不然还会报错.- 主要是修改hipchat的license,位置在
- vim /opt/atlassian/hipchat/sbin/_license.py
- 在save_license方法的# Merge attributes下面加入以下三句话:
btf['license_parameters']['Description'] = btf['license_parameters']['Description'].replace("Evaluation", "Commercial")
btf['license_parameters']['MaintenanceExpiryDate'] = '2099-12-31'
btf['license_parameters']['LicenseExpiryDate'] = '2099-12-31' - 最主要的是有一个license.但是官方已经不方法任何(试用,企业)hipchat的license了.
- 证书生成器我已经上传了. 跃迁: hipchatkeygen.jar
hipchat配置文件包括邮箱,SSL证书,license等 /etc/chef/solo.json
hipchat依赖服务的配置文件包括mysql,redis,crowd,elasticsearch等 /hipchat/config/site.json
hipchat的客户端下载,特别是Linux的,已经转到https://www.atlassian.com/zh/software/hipchat/downloads
相关的文章
官方安装指导:
https://confluence.atlassian.com/hc/deploying-hipchat-server-609944387.html
如果修改密码后 还是验证不过,请参考:
https://confluence.atlassian.com/hipchatkb/login-fails-with-the-email-and-password-you-entered-don-t-match-after-vm-reboot-942841203.html
hipchat配置共有ssl证书,请参考: