Bigops 自动化运维平台
官方地址: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>
安装完成,打开浏览器进行配置吧。