准备环境

准备环境 点我

安装MySQL

安装MySQL 点我

获取安装包

进QQ交流群,查看置顶公告

解压安装包

把下载的bigops-x.x.x-install.tar.gz文件放到/opt目录,然后解压

cd /opt/

tar zxvf bigops-x.x.x-install.tar.gz

安装bigops到/opt/bigops目录

rm -rf /opt/bigops

mkdir /opt/bigops

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

创建数据库

mysql>create database bigops;

导入MySQL数据

cd /opt/bigops-x.x.x-install/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 http://www.bigops.com/bigops-install/nginx/nginx.conf

wget -O /etc/nginx/conf.d/default.conf http://www.bigops.com/bigops-install/nginx/conf.d/default.conf

wget -O /etc/nginx/conf.d/sso.conf http://www.bigops.com/bigops-install/nginx/conf.d/sso.conf

wget -O /etc/nginx/conf.d/work.conf http://www.bigops.com/bigops-install/nginx/conf.d/work.conf

wget -O /etc/nginx/conf.d/zabbix.conf http://www.bigops.com/bigops-install/nginx/conf.d/zabbix.conf

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

设置bigweb配置文件

vi /opt/bigops/config/bigops.properties,主要是这几个参数,改成你自己的

设置bigserver配置文件

vi /opt/bigops/bigserver/bigserver.properties

启动所有服务

/opt/bigops/bin/bigweb.sh restart

/opt/bigops/bigserver/start.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域名是否配置正确

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

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

重启Nginx并检查状态

service nginx restart 或 systemctl restart nginx

ps aux|grep nginx.conf

检查sso服务是否正常

curl -q 127.0.0.1:30001/signin/login 2>/dev/null |grep sso

如果返回值包括「sso系统正常」,说明运行正常,如果没有返回值说明有问题,需要详细检查数据库配置。

检查work服务是否正常

curl 127.0.0.1:30003/api/common/ssourl/

如果返回「message」为ok就是正常

登录系统

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

默认账号:admin

默认密码:bigops

登陆后请尽快修改密码。

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

/opt/bigops/bigserver/stop.sh (关闭)

/opt/bigops/bigserver/start.sh (启动)

bigserver配置文件位置/opt/bigops/bigserver/bigserver.properties

设置定时清理日志

crontab -e

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

开机自启动

centos 6

wget -O /etc/init.d/bigweb http://www.bigops.com/bigops-install/bigweb

chkconfig --add bigweb

chkconfig --level 345 bigweb on

wget -O /etc/init.d/bigserver http://www.bigops.com/bigops-install/bigserver

chkconfig --add bigserver

chkconfig --level 345 bigserver on

chkconfig --level 345 nginx on

chkconfig --level 345 mysqld on

centos 7

wget -O /usr/lib/systemd/system/bigweb.service http://www.bigops.com/bigops-install/bigweb.service

systemctl enable bigweb

chmod 754 /usr/lib/systemd/system/bigweb.service

wget -O /usr/lib/systemd/system/bigserver.service http://www.bigops.com/bigops-install/bigserver.service

systemctl enable bigserver

chmod 754 /usr/lib/systemd/system/bigserver.service

systemctl enable nginx

systemctl enable mysqld

results matching ""

    No results matching ""