[splunk] DB Connect

zyeon·2022년 9월 7일
0

cd /usr/lib
tar zxvf jre-8u341-linux-x64.tar.gz
/usr/lib/jre1.8.0_341/bin/java -version
vi /etc/profile
export JAVA_HOME=/usr/lib/jre1.8.0_341
source /etc/profile
echo $JAVA_HOME
cd /opt/splunk/etc/apps/splunk_app_db_connect/drivers/
unzip mysql-connector-java-8.0.29.zip

yum install docker

systemctl start docker

docker container run -d --name mysqldb -p 3306:3306 -e MYSQL_ROOT_PASSWORD=qwer -v db_data:/var/lib/mysql mysql:latest

https://www.youtube.com/watch?v=617JWrK6LEI
https://mellowlee.tistory.com/entry/Splunk-DB

서버 재시작 했을때
systemctl start docker
docker start 1c2e5ef4d7017349ecae32d0a4c84c447b024baef3e85973d8106a8c03fa8a66

949580e936838c4c751edd09a326dc5980829c5542c35d18b02779f8fb851507

profile
splunk

0개의 댓글