本文參考官方檔案進行安裝,以及在安裝中所遇到的問題呈現給大家,廢話就不說了,開始安裝,
一、準備作業:
本機系統環境是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:\Windows\System32\drivers\etc\hosts,如果不能直接編輯,可以先拷貝到桌面,編輯完在拷貝回原位置,
配置內容,例如:
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
看到下面提示,輸入[email protected]用戶密碼,保存好一會使用,另外root@localhost密碼為空
please input [email protected] 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":"<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
默認密碼:bigops
登陸后請盡快修改密碼,
軟體登錄界面展示
轉載請註明出處,本文鏈接:https://www.uj5u.com/qita/96465.html
標籤:其他
