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
| WARNING: COMMAND_FAILED: '/usr/sbin/iptables -w10 -D FORWARD -i docker0 -o docker0 -j DROP' failed: iptables: Bad rule (does a matching rule exist in that chain?). | |
| 1-) The firewalld application is updated. | |
| yum update firewalld | |
| 2-) Firewalld rule is added. | |
| firewall-cmd --zone=public --permanent --add-masquerade | |
| 3-) And reload firewall |
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/sh | |
| WORDFILE="/usr/share/dict/words" | |
| messcounst=0 | |
| while true | |
| do | |
| date=$(date +"%Y-%m-%d_%H-%M-%S") | |
| messcounst=`expr $messcounst + 1` | |
| word=$(shuf -n1 /usr/share/dict/words) | |
| echo "$date Arif'in mesaji random word P1 - $messcounst : $word" | /opt/kafka/bin/kafka-console-producer.sh --broker-list [KAFKAHOST]:9092 --topic ArifTestTopic > /dev/null | |
| sleep 15 |
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 | |
| MAİL="mail@mail.com" | |
| # Memory | |
| free -m | awk 'NR==2{printf $3}' > /tmp/memory | |
| if [[ $(free -m | awk 'NR==2{printf $3}') -gt 3600 ]]; |