安装过程
更新时间:2024-05-21 10:03:45
1、进入Antdb-CC目录,执行sh脚本文件。
cd antdb-cc-release-8.2.x86_64/Antdb-CC
sh ACC_install.sh
2、默认安装路径为acc用户根目录下,回车键直接使用默认路径,也可输入指定路径安装。
[acc@dsmart Antdb-CC]$ sh ACC_install.sh
get_os_info...
get_os_info...success.
get_hardwareinfo...
get_hardwareinfo...success.
check_hardwareinfo...
check_hardwareinfo...success.
check_SHA256...
basedir=/data/acc/Antdb-CC
check_SHA256...success.
Please enter a valid empty directory to install ACC. r enter "Q/q" to exit the installation.[Default:/data/acc/app/ACC]
3、若安装主机同时存在IPV4,IPV6网段,安装脚本会提示用户选择,默认为IPV4。
Please enter a valid empty directory to install ACC. r enter "Q/q" to exit the installation.[Default:/data/acc/app/ACC]
You input :
Use default install path:[/data/acc/app/ACC]. continue...
check install path...
check install path ...success.
decompress_package...
decompress_package...success.
copy files...
copy files...success.
decompress_jdk...
decompressJDKbin=/data/acc/app/ACC/JDK/jdk1.8.0_131/bin/java
配置JAVA环境变量
set jdk environment...
set jdk environment...success.
配置JAVA环境变量结束
decompress_jdk...success.
检查IP地址类型
IPv4 address: 10.1.206.134
包含 IPv6 地址:
::1
fe80::e42:a1ff:fe7e:c5d8
fe80::42:9cff:fe7f:bd9c
fe80::42:fff:feff:6b45
fe80::c0ba:e4ff:fead:9e70
fe80::8803:14ff:fe2f:2be6
fe80::c401:62ff:feb7:a86c
***************************直接回车将 <默认使用IPV4地址> ***************************
包含 <ipv4><ipv6> 两种地址类型,请确认地址类型. 输入数字:6将使用ipv6地址.默认使用IPV4地址
使用ipv4地址
确认地址类型: 10.1.206.134
4、社区版ACC默认使用内置的H2数据库,用户均选择默认值即可。以下操作会在当前用户的Home路径下创建db文件夹。
set jdbc begin...
未安装默认数据库,使用外部数据库...
Please enter the metrics.db.url or "Q" to exit the installation.[jdbc:h2:file:~/db/dbfile;IGNORECASE=TRUE;MODE=PostgreSQL]
You input(metrics.db.url) :
Use default metrics.db.url:[jdbc:h2:file:~/db/dbfile;IGNORECASE=TRUE;MODE=PostgreSQL]. continue...
Please enter the metrics.db.username or "Q" to exit the installation.[antdb]
You input(metrics.db.username) :
Use default metrics.db.username:[antdb]. continue...
Please enter the metrics.db.password or "Q" to exit the installation.[antdb]
You input(metrics.db.password) :
Use default metrics.db.password:[antdb]. continue...
set jdbc...success.
touch jdbc.properties:/data/ahh/app/ACC/config/jdbc.properties
wirte metrics.db.driverClassName=org.h2.Driver>>/data/ahh/app/ACC/config/jdbc.properties
wirte metrics.db.url=jdbc:h2:file:~/db/dbfile;IGNORECASE=TRUE;MODE=PostgreSQL>>/data/ahh/app/ACC/config/jdbc.properties
metrics.db.username=antdb>>/data/ahh/app/ACC/config/jdbc.properties
set_default_web_port...
default_web_port=8080
set_default_web_port...success
set_web_port...
portInfo=
set_web_port...success
已安装自带jdk...
encrypt dbPassword successful...
metrics.db.password=dLw4Al7vvAq4xYfWJVBeeg==>>/data/ahh/app/ACC/config/jdbc.properties
set_web_deployType...
set_web_deployType...success
decompress_aidbPython...
decompressPythonbin=/data/ahh/app/ACC/Python/Python-3.7.0/bin/python3
set_default_aidbPythonConfig...
default_aidbPython=python
set_default_aidbPythonConfig...success
s:service.AmopsDatabaseLoadReportService.pythonPath=python:service.AmopsDatabaseLoadReportService.pythonPath=/data/ahh/app/ACC/Python/Python-3.7.0/bin/python3:g /data/ahh/app/ACC/config/application.properties
decompress_aidbPython...success.
decompress_awrWork...
set_default_awrWorkConfig...
default_awrWork=/home/amops/amops-united/awr/awrWork
set_default_awrWorkConfig...success
s:service.AmopsDatabaseLoadReportService.aidbScriptPath=/home/amops/amops-united/awr/awrWork:service.AmopsDatabaseLoadReportService.aidbScriptPath=/data/ahh/app/ACC/config/script/aidbAWR:g /data/ahh/app/ACC/config/application.properties
decompress_awrWork...success.
5、ACC web端默认端口为8080(可修改,端口不可被占用),按下回车键继续。
start web begin
APP_ROOT=/data/ahh/app/ACC
find jar file:acc.jar
start web successful!
acc_web_ip=10.1.206.134
===========================================================
ACC-WEB登录页面:http://10.1.206.134:8081/#/login
登录用户名称:admin 密码:admin@123
===========================================================
ACC install ...success.
6、ACC schedule端默认端口为8081(可修改,端口不可被占用),按下回车键继续。
decompress_schedule...
set_default_schedule_port...
default_schedule_port=8081
set_default_schedule_port...success
set_schedule_port...
Please enter a valid PORT to install ACC.schedule. Or enter "Q/q" to exit the installation.[Default:8081]8083
You input(acc_schedule_port) : 8083
portInfo=
set_schedule_port...success
set schedule jdbc begin...
decompressJDKbin:/data/ahh/app/ACC/JDK/jdk1.8.0_131/bin/java,JDK文件存在,修改schedule启动脚本java
decompress_schedule...success.
start schedule begin
find jar file:dbops-schedule-standalone.jar
start schedule successful!
acc_web_url=10.1.206.134:8081
7、检测进程
使用ps命令检查进程是否存在
ps -ef|grep acc.jar |grep /accInstallPath
ps -ef|grep dbops-schedule-standalone.jar |grep /accInstallPath
访问 http://serverIp:port/#/login
问题反馈