准备环境

准备环境 点我

安装MySQL

安装MySQL 8.0 点我

安装MySQL 5.7 点我

安装bigops到/opt/bigops目录

rm -rf /opt/bigops

mkdir /opt/bigops

cp -rf bigops-x.x.x/* /opt/bigops/

创建数据库

mysql>create database bigops;

导入MySQL数据

cd /opt/bigops/install/mysql/

mysql -u db_user -p db_pass -h db_host bigops< bigops-x.x.x.sql

配置Nginx

mkdir /opt/ngxlog

wget -O /etc/nginx/nginx.conf https://raw.githubusercontent.com/yunweibang/bigops-install/master/nginx/nginx.conf

wget -O /etc/nginx/conf.d/default.conf https://raw.githubusercontent.com/yunweibang/bigops-install/master/nginx/conf.d/default.conf

wget -O /etc/nginx/conf.d/sso.conf https://raw.githubusercontent.com/yunweibang/bigops-install/master/nginx/conf.d/sso.conf

wget -O /etc/nginx/conf.d/work.conf https://raw.githubusercontent.com/yunweibang/bigops-install/master/nginx/conf.d/work.conf

wget -O /etc/nginx/conf.d/zabbix.conf https://raw.githubusercontent.com/yunweibang/bigops-install/master/nginx/conf.d/zabbix.conf

修改sso.conf、work.conf、zabbix.conf里的域名为你网站的域名

设置配置文件

vi /opt/bigops/config/bigops.properties

检查数据库大小写敏感

bigops库这几个表名必须驼峰命名(大小写组合),如果表名都是小写就有问题

检查服务端口是否启动

# 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域名是否配置正确

cat /etc/nginx/conf.d/sso.conf

cat /etc/nginx/conf.d/work.conf

检查Nginx状态

ps aux|grep nginx.conf

检查sso服务是否正常

curl 127.0.0.1:30001/signin/login

如果返回值包括「sso系统正常」,说明运行正常,如果没有返回值说明有问题,需要详细检查配文件/opt/bigops/config/bigops.properties里数据库的配置。

检查work服务是否正常

curl 127.0.0.1:30003/api/common/ssourl/

如果返回「message」为ok就是正常,如果没有返回值说明有问题,需要详细检查配文件/opt/bigops/config/bigops.properties里数据库的配置。

登录系统

访问域名:http://work.bigops.com (就是你刚才设置的home url)

默认账号:admin

默认密码:bigops

登陆后请尽快修改密码。

启动bigserver,bigserver服务用于执行一些内置任务

/opt/bigops/bin/bigserver.sh restart

bigserver配置文件在/opt/bigops/bin/bigserver.properties

可以根据需要调整轮询时间

设置定时清理日志

crontab -e

00 01 * * * /bin/sh /opt/bigops/bin/clean_log.sh

开机自启动

centos 6

wget -O /etc/init.d/bigweb https://raw.githubusercontent.com/yunweibang/bigops-install/master/bigweb

chkconfig --add bigweb

chkconfig --level 345 bigweb on

wget -O /etc/init.d/bigserver https://raw.githubusercontent.com/yunweibang/bigops-install/master/bigserver

chkconfig --add bigserver

chkconfig --level 345 bigserver on

centos 7

wget -O /usr/lib/systemd/system/bigweb.service https://raw.githubusercontent.com/yunweibang/bigops-install/master/bigweb.service

systemctl enable bigweb

wget -O /usr/lib/systemd/system/bigserver.service https://raw.githubusercontent.com/yunweibang/bigops-install/master/bigserver.service

systemctl enable bigserver

results matching ""

    No results matching ""