This article refer to the official documentation for installation, and the problems encountered in the installation presented to you. Nonsense is not to say, to start the installation.
I. Preparation:
The machine system environment is CentOS 7 x86 64 bit
hardware configuration
recommended physical memory 8G +, CPU 4 cores +, hard disk 20G +. Memory can not be installed below the 6G BigOps program, so the memory must 6+.
1. Operating System
CentOS 7 x86 64 bit (recommended 7 or later, use the following version 7 See document examiner network)
official documents the URL of: http://docs.bigops.com/er-jin-zhi-an-zhuang/zhun -bei-huan-jing.html
service | port |
---|---|
Unified Authentication | 30000、30001 |
the back-end work | 30002、30003 |
Reserve | 30004、30005 |
dv backend | 30006、30007 |
confluence | 30008、30009 |
jira | 30010、30011 |
jenkins | 30012、30013 |
kibana | 5601 |
brain | 9000 |
elasticsearch-head | 9100 |
elasticsearch | 9200、9300 |
2. Preparation 2 domain
(1) sso.xxxx.com, for unified authentication
(2) work.xxxx.com, for the main station
is not registered with the domain name, you need to configure both the server and notebook hosts.
Linux location of / etc / hosts.
Windows location C: \ Windows \ System32 \ drivers \ etc \ hosts, if you can not directly edit, you can copy to your desktop, you are finished editing the copy back to the original position.
Configure content, for example:
192.168.100.2 sso.bigops.com (IP into your server and your own domain name)
192.168.100.2 work.bigops.com (IP into your server and your own domain name)
remember two domain names to set! Remember! Remember! Remember!
Remember your notebook and server should be set! Remember! Remember! Remember!
3. initialize the environment
[the root @ localhost ~] #cd / usr / local / the src
[the root @ localhost the src] # wget -O centos_init_env.sh https://raw.githubusercontent.com/yunweibang/bigops-install/master/centos_init_env .sh
[the root @ localhost the src] # X centos_init_env.sh the chmod +
[the root @ localhost the src] # SH centos_init_env.sh
NOTE:Document proposes to download the required uniform in a directory, Ye Hao good management process.
4. Close IPv6 (optional)
CentOS. 7
edit / etc / default / grub, add ipv6.disable = 1 GRUB_CMDLINE_LINUX's value, for example:
GRUB_CMDLINE_LINUX = "crashkernel ipv6.disable = 1 = Auto HALT rhgb quiet biosdevname = IDLE = 0 net.ifnames = 0 console = tty0 console = ttyS0,115200n8 "noibrs
run command
[root @ localhost ~] # grub2 -mkconfig -o /boot/grub2/grub.cfg
restart the system
[the root @ localhost ~] #reboot
. 5 . obtain the installation package
Baidu network disk address:
address: https://pan.baidu.com/s/1y8JyQJIUWnzDiH0fX2EpcQ
password: 76cm
Second, the installation
to be completed after the system is initialized, we BigOps environment and BigOps software installation
(1) installation MySQL ( recommended)
[root @ localhost src] # wget -O mysql80.sh https://raw.githubusercontent.com/yunweibang/bigops-install/master/mysql80.sh
[root @ localhost src] + #chmod the X-mysql80.sh
[root @ localhost src] # SH mysql80.sh
see the following prompt, enter [email protected] user password, trying to get use to save. In addition root @ localhost password is blank
the INPUT [email protected] password Please, default bigops
/> enter your password
to optimize MySQL, modify /etc/my.cnf in innodb_buffer_pool_size value, calculated using the command:
Description: BigOps system takes 4G, it is equal to the total memory minus innodb_buffer_pool_size 70% to 80% after 4G
[root@localhost ~]# free -g|egrep -i ^mem|awk '{if($2<7) print "memory is too small";else print int(($2-4)*0.8)"G"}'
Such as the above command returns 8G, so arranged:
innodb_buffer_pool_size = 8G
modifications need to restart after the MySQL
(2) installation program BigOps
[the root @ localhost the src] #tar -zxvf bigops-1.0.1.tar.gz
[the root @ localhost the src] mv bigops-1.0.1 bigops #
[root @ localhost src] # cd bigops / bin /
[root @ localhost bin] # chmod + the X-bigserver.sh
[root @ localhost bin] # SH bigserver.sh
fill out the information as prompted, after setting the service will start automatically.
dbhost do not fill localhost, 127.0.0.1 or fill in the corresponding 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":"<a href="http://sso.swwbigops.com/" }}[root@localhost"="" rel="nofollow" style="-webkit-font-smoothing: antialiased; margin: 0px; padding: 0px; text-decoration-line: none; color: rgb(66, 133, 244); max-width: 100%;">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
Default password: bigops
Please change your password as soon as possible after landing.
Software login screen display