本文参看官方文档进行设备,以及在设备中所遇到的问题出现给咱们。废话就不说了,开始设备。
一、预备作业:
本机体系环境是CentOS 7 x86 64位
硬件装备
主张物理内存8G+、CPU 4 cores+、硬盘20G+。内存低于6G无法设备BigOps程序,所以内存有必要6+。
1.操作体系
CentOS 7 x86 64位 (推荐运用7以上版别,运用7以下版别请参看官网文档)
官方文档URL:http://docs.bigops.com/er-jin-zhi-an-zhuang/zhun-bei-huan-jing.html
服务 | 端口 |
---|---|
一起认证 | 30000、30001 |
work后端 | 30002、30003 |
预留 | 30004、30005 |
dv后端 | 30006、30007 |
confluence | 30008、30009 |
jira | 30010、30011 |
jenkins | 30012、30013 |
kibana | 5601 |
cerebro | 9000 |
elasticsearch-head | 9100 |
elasticsearch | 9200、9300 |
2.预备2域名
(1)sso.xxxx.com,用于一起认证
(2)work.xxxx.com,用于主站
假定没有注册域名,需求给服务器和笔记本都装备hosts。
Linux方位/etc/hosts。
Windows方位C:WindowsSystem32driversetchosts,假定不能直接修改,可以先拷贝到桌面,修改完在拷贝回原方位。
装备内容,例如:
192.168.100.2 sso.bigops.com (换成你服务器IP和你自己的域名)
192.168.100.2 work.bigops.com (换成你服务器IP和你自己的域名)
紧记2个域名都要设置!紧记!紧记!紧记!
紧记服务器和你的笔记本都要设置!紧记!紧记!紧记!
3.初始化环境
[root@localhost ~]#cd /usr/local/src
[root@localhost src]# wget -O centos_init_env.sh https://raw.githubusercontent.com/yunweibang/bigops-install/master/centos_init_env.sh
[root@localhost src]# chmod +x centos_init_env.sh
[root@localhost src]# sh centos_init_env.sh
注:主张将所需下载的文件一起放在一个目录下,好处理也好处理。
4.封闭IPv6(可选)
centos 7
修改/etc/default/grub,在GRUB_CMDLINE_LINUX的值里增加ipv6.disable=1,例如:
GRUB_CMDLINE_LINUX="ipv6.disable=1 crashkernel=auto rhgb quiet idle=halt biosdevname=0 net.ifnames=0 console=tty0 console=ttyS0,115200n8 noibrs"
再作业指令
[root@localhost ~]#grub2-mkconfig -o /boot/grub2/grub.cfg
重启体系
[root@localhost ~]#reboot
5.获取设备包
百度网盘地址:
地址:https://pan.baidu.com/s/1y8JyQJIUWnzDiH0fX2EpcQ
暗码:76cm
二、设备
待初始化体系完毕往后,咱们进行BigOps环境和BigOps软件设备
(1)设备MySQL(推荐运用)
[root@localhost src]# wget -O mysql80.sh https://raw.githubusercontent.com/yunweibang/bigops-install/master/mysql80.sh
[root@localhost src]#chmod +x mysql80.sh
[root@localhost src]# sh mysql80.sh
看到下面提示,输入root@127.0.0.1用户暗码,保存好一会运用。其他root@localhost暗码为空
please input root@127.0.0.1 password, default bigops
/>输入你的暗码
优化MySQL,修改/etc/my.cnf里innodb_buffer_pool_size的值,用指令核算:
阐明:BigOps体系占用4G,所以innodb_buffer_pool_size等于总内存减去4G后的70%到80%
[root@localhost ~]# free -g|egrep -i ^mem|awk '{if($2<7) print "memory is too small";else print int(($2-4)*0.8)"G"}'
比方上面指令回来8G,就这样设置:
innodb_buffer_pool_size=8G
修改完后需求重启MySQL
(2) 设备BigOps程序
[root@localhost src]#tar -zxvf bigops-1.0.1.tar.gz
[root@localhost src]# mv bigops-1.0.1 bigops
[root@localhost src]# cd bigops/bin/
[root@localhost bin]# chmod +x bigserver.sh
[root@localhost bin]# sh bigserver.sh
依据提示填写相关信息,设置完后服务会主动建议。
dbhost不要填localhost,填127.0.0.1或对应IP
查看BigOps数据库的tables是否是大小写组合拼写。假定表名都是小写就有问题
假定不是请依据官方常见问题文档进行修改。URL:http://docs.bigops.com/er-jin-zhi-an-zhuang/an-zhuang-chang-jian-wen-ti.html
查看服务端口有无建议
[root@localhost bin]# netstat -nptl | grep 3000
查看Nginx状况
查看Nginx域名是否装备正确
[root@localhost ~]#cat /etc/nginx/conf.d/sso.conf
[root@localhost ~]#cat /etc/nginx/conf.d/work.conf
[root@localhost bin]# ps aux|grep nginx.conf
注:
问题
在此处我遇到sso.conf和work.conf、default.conf、zabbix.conf文件是空白的,服务重启后Nginx服务无法建议。
处理
下载装备文件,替换并修改sso.conf、default.conf、work.conf、zabbix.conf里的域名为你网站的域名
[root@localhost ~]#wget -O /etc/nginx/nginx.conf https://raw.githubusercontent.com/yunweibang/bigops-install/master/nginx/nginx.conf
[root@localhost ~]#wget -O /etc/nginx/conf.d/default.conf https://raw.githubusercontent.com/yunweibang/bigops-install/master/nginx/conf.d/default.conf
[root@localhost ~]#wget -O /etc/nginx/conf.d/sso.conf https://raw.githubusercontent.com/yunweibang/bigops-install/master/nginx/conf.d/sso.conf
[root@localhost ~]#wget -O /etc/nginx/conf.d/work.conf https://raw.githubusercontent.com/yunweibang/bigops-install/master/nginx/conf.d/work.conf
[root@localhost ~]#wget -O /etc/nginx/conf.d/zabbix.conf https://raw.githubusercontent.com/yunweibang/bigops-install/master/nginx/conf.d/zabbix.conf
替换修改后Nginx服务正常建议
查看sso服务是否正常建议
[root@localhost bin]# curl 127.0.0.1:30001/signin/login
假定回来值包含「sso体系正常」,阐明作业正常,假定没有回来值阐明有问题,需求具体查看数据库装备。
查看work服务是否正常建议
[root@localhost bin]# curl 127.0.0.1:30003/api/common/ssourl/
{"code":0,"message":"ok","data":{"url":"http://sso.swwbigops.com"}}[root@localhost bin]#
假定回来「message」为ok便是正常
建议bigserver,bigserver服务用于实施一些内置使命
[root@localhost ~]#/usr/local/src/bigops/bin/bigserver.sh restart
bigserver装备文件在/usr/local/src/bigops/bin/bigserver.properties
可以精确的经过需求调整轮询时刻
设置守时拾掇日志
[root@localhost ~]#crontab -e
00 01 * /bin/sh /opt/bigops/bin/clean_log.sh
[root@localhost ~]#wget -O /usr/lib/systemd/system/bigweb.service https://raw.githubusercontent.com/yunweibang/bigops-install/master/bigweb.service
[root@localhost ~]#systemctl enable bigweb
[root@localhost ~]#chmod 754 /usr/lib/systemd/system/bigweb.service
[root@localhost ~]#wget -O /usr/lib/systemd/system/bigserver.service https://raw.githubusercontent.com/yunweibang/bigops-install/master/bigserver.service
[root@localhost ~]#systemctl enable bigserver
[root@localhost ~]#chmod 754 /usr/lib/systemd/system/bigserver.service
[root@localhost ~]#systemctl enable nginx
[root@localhost ~]#systemctl enable mysqld
登录查验
拜访域名:http://work.swwbigops.com (便是你方才设置的home url)
默许账号:admin
默许暗码:bigops
发表评论