소소한 IT 이야기
AWS Bitnami LAMP MySQL my.cnf 파일 위치
글쓰는 개발자
2022. 3. 3. 11:41
반응형
Bitnami에서 제공하는 AWS AMI의 MySQL 외부 접속을 위하여 my.cnf 파일을 찾아봤는데 커스텀 운영이미지이다보니, 기존의 Ubuntu나 다른 리눅스 패키지들과의 기존 위치가 달랐다.
일반적으로는 /etc/mysql 관련 폴더 하위에 설정 파일이 존재하는데, Bitnami AMI (Debian, Seoul)의 경우에는 위치가 다르다.
https://bitnami.com/stack/lamp/cloud/aws/amis
LAMP Public AMIs
Amazon Web Services Public AMIs for LAMP packaged by Bitnami Trademarks: This software listing is packaged by Bitnami. The respective trademarks mentioned in the offering are owned by the respective companies, and use of them does not imply any affiliation
bitnami.com
해당 파일은 /opt/bitnami/mariadb/conf/ 하위에 my.cnf 파일로 위치하고 있으며 외부접속을 허용할 경우 bind-address를 0.0.0.0 으로 설정 후, 모든 Bitnami 서비스를 재시작 시키면 외부 접속이 허용된다.
sudo /opt/bitnami/ctlscript.sh restart
반응형