官方地址:http://www.bigops.com/
源碼包:bigops-1.0.1.tar.gz (或github下載官網文檔里有)
鏈接:https://pan.baidu.com/s/1NgutWjGdj7oThjtl_bz6cw
提取碼:2zuz
官方文檔:http://docs.bigops.com/
准備一台新服務器進行初始化包括------關閉防火牆和selinux
准備起飛,提前把tar包下載到服務器上/opt目錄里
優化操作系統
rm -f /etc/security/limits.d/* sed -i '/^[^#].*/d' /etc/security/limits.conf echo -e "*\t\tsoft\tnofile\t\t655360">>/etc/security/limits.conf echo -e "*\t\thard\tnofile\t\t655360">>/etc/security/limits.conf echo -e "*\t\tsoft\tmemlock\t\tunlimited">>/etc/security/limits.conf echo -e "*\t\thard\tmemlock \tunlimited">>/etc/security/limits.conf echo -e "*\t\tsoft\tnproc\t\t655360">/etc/security/limits.d/90-nproc.conf echo -e "*\t\thard\tnproc\t\t655360">>/etc/security/limits.d/90-nproc.conf
確認系統時間准確
date
時間如果不准,請同步
/usr/sbin/ntpdate time.nist.gov && /sbin/hwclock --systohc
配置yum安裝源,並安裝相關軟件包
wget -O /etc/yum.repos.d/CentOS-Base.repo https://raw.githubusercontent.com/yunweibang/yum.repos.d/master/CentOS-Base.repo wget -O /etc/yum.repos.d/epel.repo https://raw.githubusercontent.com/yunweibang/yum.repos.d/master/epel.repo wget -O /etc/yum.repos.d/remi.repo https://raw.githubusercontent.com/yunweibang/yum.repos.d/master/remi.repo wget -O /etc/yum.repos.d/nginx.repo https://raw.githubusercontent.com/yunweibang/yum.repos.d/master/nginx.repo
這個有點長,復制全了。
yum -y install nginx ansible openssl openssl-libs openssl-devel make gcc gcc-c++ pam-devel zlib-devel openssl-devel tomcat-native apr-devel apr apr-util subversion-devel subversion freerdp-devel freerdp libssh2-devel libssh2 traceroute dos2unix
腳本安裝MySQL 8.0
wget -O mysql80.sh https://raw.githubusercontent.com/yunweibang/bigops-install/master/mysql80.sh sh mysql80.sh 看到下面提示,輸入root@127.0.0.1用戶密碼,保存好一會使用。另外root@localhost密碼為空 please input root@127.0.0.1 password, default bigops >輸入你的密碼
登錄MySQL
mysql -uroot -p 此處直接回車localhost 沒有密碼
取消密碼復雜度,有的小版本有,有的小版本沒這些變量,沒有就忽略
set global validate_password.policy=0;
set global validate_password.mixed_case_count=0;
set global validate_password.number_count=0;
set global validate_password.special_char_count=0;
set global validate_password.length=6;
修改root@localhost密碼,your_password改成你的密碼
use mysql;
ALTER USER 'root'@'localhost' IDENTIFIED BY 'your_password' PASSWORD EXPIRE NEVER;
ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'your_password';
添加用戶root@127.0.0.1,給用戶授權,重要!重要!重要!
create user 'root'@'127.0.0.1' identified by 'your_password';
grant all privileges on *.* to 'root'@'127.0.0.1';
flush privileges;
重啟MySQL
service mysqld restart
環境安裝完成,解壓bigops.tar.gz
運行安裝腳本 把下載的bigops-x.x.x.tar.gz文件放到/opt目錄,然后運行下面命令 cd /opt/ tar zxvf bigops-x.x.x.tar.gz cd /opt/bigops-x.x.x/install/ chmod +x install.sh ./install.sh
根據提示填寫相關信息,設置完后服務會自動啟動。
檢查服務端口是否啟動
# netstat -nptl|egrep 3000 tcp 0 0 127.0.0.1:30000 0.0.0.0:* LISTEN 32346/java tcp 0 0 127.0.0.1:30001 0.0.0.0:* LISTEN 32346/java tcp 0 0 127.0.0.1:30002 0.0.0.0:* LISTEN 26830/java tcp 0 0 127.0.0.1:30003 0.0.0.0:* LISTEN 26830/java
啟動Nginx,檢查狀態
service nginx restart
ps aux|grep nginx.conf
檢查sso服務是否正常
curl 127.0.0.1:30001/signin/login
如果返回值包括「sso系統正常」,說明運行正常,如果沒有返回值說明有問題,需要詳細檢查數據庫配置。
檢查work服務是否正常
curl 127.0.0.1:30003/api/common/ssourl/
如果返回「message」為ok就是正常
檢查sso服務是否正常
[root@centos7-02 install]# curl 127.0.0.1:30001/signin/login <!DOCTYPE html><html> <head> <meta charset="UTF-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><meta http-equiv="X-UA-Compatible" content="IE=edge"/><link rel="icon" type="image/x-icon" href="/signin/favicon.ico"/><title>登錄</title> </head> <body> <h1>sso系統正常!!</h1> </body> </html>
安裝完成,打開瀏覽器進行配置吧。