This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| ##reconfig yum | |
| mkdir /etc/yum.repos.d/old | |
| mv /etc/yum.repos.d/CentOS*.repo /etc/yum.repos.d/old/ | |
| mv /etc/yum.repos.d/epel*.repo /etc/yum.repos.d/old/ | |
| echo '[base] | |
| name=CentOS-7.9.2009 - Base |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| #install node exporter | |
| cd /usr/src/ | |
| wget -c "https://github.com/prometheus/node_exporter/releases/download/v1.8.2/node_exporter-1.8.2.linux-amd64.tar.gz" | |
| tar -xvf node_exporter-1.8.2.linux-amd64.tar.gz | |
| cd node_exporter-1.8.2.linux-amd64/; | |
| mv node_exporter /usr/local/bin/ | |
| echo ' |
OlderNewer