Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

prometheus selinux 설정 #4

Open
kybin opened this issue Nov 24, 2021 · 3 comments
Open

prometheus selinux 설정 #4

kybin opened this issue Nov 24, 2021 · 3 comments

Comments

@kybin
Copy link
Contributor

kybin commented Nov 24, 2021

현재는 journalctl -xe 로그를 보고 일일이 해제 해주고 있으나 시간도 오래걸리고 이를 스크립트화하기 어려움.

@kybin
Copy link
Contributor Author

kybin commented Nov 24, 2021

테스트 해 볼 스크립트

chcon -u system_u -t bin_t /home/prometheus/node_exporter/node_exporter
chcon -u system_u -t bin_t /home/prometheus/prometheus/prometheus 

출처: https://www.howtoforge.com/tutorial/how-to-install-prometheus-and-node-exporter-on-centos-8/

@kybin
Copy link
Contributor Author

kybin commented Dec 3, 2021

잘 됨.

위키에 작성 후 닫을것.

@kybin
Copy link
Contributor Author

kybin commented Jan 3, 2022

chcon의 경우 forge 바이너리가 업데이트(재빌드) 될 때마다 다시 설정을 해주어야함.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant